/* ========================================
   INTAKE POPUP FORM STYLES
   ======================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.popup-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e9ecef;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.popup-close:hover {
    background: #dee2e6;
    color: #0D1B2A;
}

.popup-header {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.popup-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.popup-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-header .accent {
    color: #1dc9be;
}

.popup-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: #0D1B2A;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    letter-spacing: 0.05em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1B263B;
    margin-bottom: 0.4rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    color: #0D1B2A;
    background: #ffffff;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    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='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1dc9be;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
}

.form-group .error-message {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group {
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1B263B;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #1dc9be;
    border-color: #1dc9be;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.form-submit {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-submit .btn {
    flex: 1;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.form-submit .btn-secondary {
    background: #e9ecef;
    color: #1B263B;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-submit .btn-secondary:hover {
    background: #dee2e6;
}

.form-privacy {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.form-privacy a {
    color: #3db8b0;
    text-decoration: none;
}

.form-privacy a:hover {
    text-decoration: underline;
}

.popup-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.popup-success.active {
    display: block;
}

.popup-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1dc9be 0%, #3db8b0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.popup-success .success-icon svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
}

.popup-success h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    color: #0D1B2A;
    margin-bottom: 0.75rem;
}

.popup-success p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .popup-container {
        max-height: 95vh;
        border-radius: 20px;
    }

    .popup-header {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px 20px 0 0;
    }

    .popup-header h2 {
        font-size: 1.6rem;
    }

    .popup-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit {
        flex-direction: column;
    }
}
