/* RareBreed University - Homepage Enquiry Modal & Floating Trigger
   Styling uses RareBreed's signature Ice Blue shade (#0392ae / #00e5ff) from the website */

/* Floating 'Enquire Now' Button */
.rbu-enquiry-floating-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    background: #ffffff;
    color: #000000;
    font-family: 'Thicccboi', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1.5rem;
    padding: 12px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.rbu-enquiry-floating-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #000000;
}

.rbu-enquiry-floating-btn:active {
    transform: scale(0.96);
    background: #f1f5f9;
}

.rbu-enquiry-pulse {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    animation: rbu-pulse 1.8s infinite;
}

@keyframes rbu-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 229, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

/* Responsive Floating Button for Tablet & Mobile */
@media (max-width: 768px) {
    .rbu-enquiry-floating-btn {
        bottom: 22px;
        right: 20px;
        padding: 11px 18px;
        font-size: 12px;
        letter-spacing: 0.8px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .rbu-enquiry-floating-btn {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        padding: 9px 15px;
        font-size: 11.5px;
        letter-spacing: 0.7px;
        gap: 7px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .rbu-enquiry-pulse {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 360px) {
    .rbu-enquiry-floating-btn {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        padding: 8px 13px;
        font-size: 11px;
        letter-spacing: 0.5px;
        gap: 6px;
    }
}

/* Modal Overlay */
.rbu-enquiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rbu-enquiry-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.rbu-enquiry-card {
    background: #0b0c10;
    border: 1px solid rgba(3, 146, 174, 0.4);
    border-radius: 1.2em;
    width: 100%;
    max-width: 520px;
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(3, 146, 174, 0.22);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    font-family: 'Thicccboi', 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.rbu-enquiry-overlay.active .rbu-enquiry-card {
    transform: translateY(0) scale(1);
}

.rbu-enquiry-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a3a3a3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.rbu-enquiry-close:hover {
    background: rgba(3, 146, 174, 0.25);
    border-color: rgba(3, 146, 174, 0.5);
    color: #00e5ff;
}

/* Header */
.rbu-enquiry-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(3, 146, 174, 0.2);
    background: linear-gradient(180deg, rgba(3, 146, 174, 0.16) 0%, rgba(11, 12, 16, 0) 100%);
}

.rbu-enquiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(3, 146, 174, 0.15);
    color: #00d2ee;
    border: 1px solid rgba(3, 146, 174, 0.45);
    margin-bottom: 10px;
}

.rbu-enquiry-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
    line-height: 1.3;
}

.rbu-enquiry-subtitle {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* Body / Form */
.rbu-enquiry-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.rbu-enquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .rbu-enquiry-overlay {
        padding: 12px;
    }

    .rbu-enquiry-card {
        max-height: 92vh;
        border-radius: 1.1em;
    }

    .rbu-enquiry-header {
        padding: 18px 18px 12px;
    }

    .rbu-enquiry-title {
        font-size: 18px;
    }

    .rbu-enquiry-subtitle {
        font-size: 12px;
    }

    .rbu-enquiry-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .rbu-enquiry-body {
        padding: 14px 18px;
    }

    .rbu-enquiry-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rbu-enquiry-group {
        margin-bottom: 11px;
    }

    .rbu-enquiry-input,
    .rbu-enquiry-select,
    .rbu-enquiry-textarea {
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .rbu-enquiry-submit {
        padding: 12px 20px;
        font-size: 13px;
    }
}

.rbu-enquiry-group {
    margin-bottom: 14px;
}

.rbu-enquiry-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.rbu-enquiry-label span.req {
    color: #ef4444;
}

.rbu-enquiry-input,
.rbu-enquiry-select,
.rbu-enquiry-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.rbu-enquiry-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2300e5ff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.rbu-enquiry-select option {
    background: #0f172a;
    color: #ffffff;
    padding: 10px;
}

.rbu-enquiry-textarea {
    resize: vertical;
    min-height: 70px;
}

/* Focused input styling - ice-blue highlight matching website */
.rbu-enquiry-input:focus,
.rbu-enquiry-select:focus,
.rbu-enquiry-textarea:focus {
    border-color: #0392ae;
    background: rgba(3, 146, 174, 0.08);
    box-shadow: 0 0 0 3px rgba(3, 146, 174, 0.28);
}

.rbu-enquiry-input::placeholder,
.rbu-enquiry-textarea::placeholder {
    color: #64748b;
}

.rbu-enquiry-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.rbu-enquiry-input.is-invalid,
.rbu-enquiry-select.is-invalid,
.rbu-enquiry-textarea.is-invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.rbu-enquiry-input.is-valid,
.rbu-enquiry-select.is-valid,
.rbu-enquiry-textarea.is-valid {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.rbu-field-error {
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
}

.rbu-field-error.active {
    display: flex;
}

.rbu-field-error::before {
    content: '⚠️';
    font-size: 10px;
}

/* Submit Button - Ice-blue signature style */
.rbu-enquiry-submit {
    width: 100%;
    background: linear-gradient(135deg, #0392ae 0%, #02748b 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 1em;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(3, 146, 174, 0.4);
}

.rbu-enquiry-submit:hover {
    background: linear-gradient(135deg, #04a5c5 0%, #038da8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 146, 174, 0.65), 0 0 15px rgba(0, 229, 255, 0.35);
}

.rbu-enquiry-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.rbu-enquiry-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rbu-spin 0.8s linear infinite;
    display: none;
}

@keyframes rbu-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Card */
.rbu-enquiry-success {
    text-align: center;
    padding: 34px 24px 28px;
    display: none;
}

.rbu-enquiry-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(3, 146, 174, 0.15);
    border: 2px solid #0392ae;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #00e5ff;
    font-size: 30px;
    box-shadow: 0 0 25px rgba(3, 146, 174, 0.35);
}

.rbu-enquiry-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.rbu-enquiry-success-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.rbu-enquiry-btn-done {
    background: linear-gradient(135deg, #0392ae 0%, #02748b 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 1em;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(3, 146, 174, 0.35);
}

.rbu-enquiry-btn-done:hover {
    background: linear-gradient(135deg, #04a5c5 0%, #038da8 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(3, 146, 174, 0.6);
}