/* Registration Popup Styles */

.registration-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.registration-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.4s ease;
}

/* Header area with gradient */
.registration-popup-content .registration-popup-title {
    background: linear-gradient(135deg, #0F5A7E 0%, #1A7BA8 100%);
    color: #fff !important;
    margin: 0;
    padding: 22px 30px 18px;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    letter-spacing: 0.3px;
}

.registration-popup-divider {
    display: none;
}

/* Close button */
.registration-popup-close {
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    line-height: 1;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.registration-popup-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Form body */
.registration-popup-content form {
    padding: 24px 28px 28px;
}

/* Field rows */
.registration-popup-field {
    position: relative;
    margin-bottom: 14px;
    text-align: left;
}

.registration-popup-field i.material-icons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0F5A7E;
    font-size: 20px;
    z-index: 3;
    pointer-events: none;
}

/* Inputs and selects - high specificity to beat Materialize */
.registration-popup .registration-popup-field input[type="text"],
.registration-popup .registration-popup-field input[type="email"],
.registration-popup .registration-popup-field select {
    padding: 13px 14px 13px 46px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    width: 100% !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fafbfc !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
    box-sizing: border-box !important;
    height: auto !important;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important;
    box-shadow: none !important;
}

.registration-popup .registration-popup-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* Override Materialize select wrapper (replaces native <select> with custom dropdown) */
.registration-popup .registration-popup-field .select-wrapper {
    position: relative !important;
}

.registration-popup .registration-popup-field .select-wrapper input.select-dropdown {
    padding: 13px 36px 13px 46px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    width: 100% !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fafbfc !important;
    transition: border-color 0.25s, box-shadow 0.25s !important;
    box-sizing: border-box !important;
    height: auto !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: normal !important;
}

.registration-popup .registration-popup-field .select-wrapper input.select-dropdown:focus {
    border-color: #0F5A7E !important;
    box-shadow: 0 0 0 3px rgba(15, 90, 126, 0.1) !important;
    background-color: #fff !important;
}

/* Hide Materialize caret, use our own */
.registration-popup .registration-popup-field .select-wrapper .caret {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    fill: #888 !important;
    pointer-events: none !important;
}

.registration-popup .registration-popup-field input:focus,
.registration-popup .registration-popup-field select:focus {
    border-color: #0F5A7E !important;
    box-shadow: 0 0 0 3px rgba(15, 90, 126, 0.1) !important;
    background-color: #fff !important;
}

.registration-popup .registration-popup-field input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Submit button */
.registration-popup-btn {
    background: linear-gradient(135deg, #0F5A7E 0%, #1A7BA8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    box-shadow: 0 4px 15px rgba(15, 90, 126, 0.3);
}

.registration-popup-btn:hover {
    background: linear-gradient(135deg, #0A4560 0%, #0F5A7E 100%);
    box-shadow: 0 6px 20px rgba(15, 90, 126, 0.4);
    transform: translateY(-1px);
}

.registration-popup-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .registration-popup-content {
        margin: 10px;
        max-height: 85vh;
        border-radius: 14px;
    }

    .registration-popup-content .registration-popup-title {
        padding: 18px 20px 14px;
        font-size: 1.15rem;
        border-radius: 14px 14px 0 0;
    }

    .registration-popup-content form {
        padding: 18px 18px 22px;
    }

    .registration-popup .registration-popup-field input[type="text"],
    .registration-popup .registration-popup-field input[type="email"],
    .registration-popup .registration-popup-field select {
        padding: 11px 12px 11px 40px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .registration-popup .registration-popup-field .select-wrapper input.select-dropdown {
        padding: 11px 36px 11px 40px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .registration-popup-field i.material-icons {
        font-size: 18px;
        left: 12px;
    }

    .registration-popup-close {
        top: 8px;
        right: 10px;
        font-size: 24px;
    }

    .registration-popup-btn {
        padding: 12px;
        font-size: 14px;
    }
}
