/* ==========================================================================
   Intake Form — Section & Layout Styles
   ========================================================================== */

.intake-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

/* --- Section blocks --- */
.intake-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.intake-section:last-of-type {
    border-bottom: none;
}

.intake-section__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intake-section__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--eg-dark-blue), var(--eg-navy));
    color: var(--eg-green);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.intake-section__title {
    font-size: 1.35rem !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.intake-section__badge {
    display: inline-block;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.intake-section__badge--optional {
    background: rgba(0, 230, 118, 0.1);
    color: var(--eg-green-dark);
}

.intake-section__note {
    color: var(--eg-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

/* --- Form hints (below inputs) --- */
.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--eg-text-muted);
    margin-top: 0.35rem;
    padding-left: 0.1rem;
}

/* --- OR divider --- */
.intake-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--eg-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.intake-divider::before,
.intake-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* --- File inputs --- */
.form-input[type="file"] {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    background: #fafafa;
    border-style: dashed;
}

.form-input[type="file"]:hover {
    border-color: var(--eg-green);
    background: rgba(0, 230, 118, 0.03);
}

/* --- Submit area --- */
.intake-submit {
    text-align: center;
    padding-top: 1.5rem;
}

.intake-submit__note {
    color: var(--eg-text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .intake-form-wrapper {
        max-width: 100%;
    }

    .intake-section__header {
        flex-wrap: wrap;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Data callout box --- */
.intake-callout {
    background: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.intake-callout strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1565c0;
}

.intake-callout ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.intake-callout ul li {
    padding: 0.2rem 0;
}

.intake-callout p {
    margin-top: 0.75rem;
    color: #555;
    font-size: 0.9rem;
}


/* 4-column grid for address fields */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 .form-group[style*="span 2"] {
        grid-column: span 2;
    }
}
@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .grid-4 .form-group[style*="span 2"] {
        grid-column: span 1;
    }
}
