/* ── CONTACT PAGE ── */

.contact-page {
    padding: 2.5rem 1.2rem 3rem;
    background: #f5f7fb;
    min-height: 100vh;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 24px;
    align-items: flex-start;
}

/* ── LEFT PANEL ── */

.contact-profile-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.contact-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.contact-panel-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.contact-phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s, border-color 0.18s;
}

.contact-phone-block:hover {
    background: #dcfce7;
    border-color: #10b981;
}

.contact-phone-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-phone-block div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-phone-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.contact-phone-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.contact-audience h3,
.contact-steps h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #10b981;
    margin: 0 0 8px;
}

.contact-audience ul,
.contact-steps ol {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.84rem;
    color: #4b5563;
    line-height: 1.7;
}

.contact-reassure {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── RIGHT: FORM CARD ── */

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    padding: 28px 32px 32px;
}

/* ── STEP INDICATOR ── */

.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #9ca3af;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.step-item.done .step-circle {
    background: #d1fae5;
    color: #059669;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: #0f172a;
}

.step-item.done .step-label {
    color: #059669;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    border-radius: 999px;
    transition: background 0.3s;
}

.step-line.done {
    background: #10b981;
}

/* ── STEP CONTENT ── */

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.step-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── FORM FIELDS ── */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label:not(.radio-option):not(.consent-label) {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-input,
.text-area,
.form-field select {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.text-input:focus,
.text-area:focus,
.form-field select:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.text-input::placeholder,
.text-area::placeholder {
    color: #9ca3af;
}

.text-area {
    resize: vertical;
    min-height: 120px;
}

/* ── RADIO BUTTONS (Preferred contact) ── */

.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    background: #f9fafb;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option.selected,
.radio-option:has(input:checked) {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
    font-weight: 600;
}

/* ── CHIPS (size, budget, timeline) ── */

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 0.45rem 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #4b5563;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}

.chip:hover {
    border-color: #10b981;
    color: #059669;
}

.chip.selected {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
    font-weight: 600;
}

/* ── FILE UPLOAD ── */

.file-upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
}

.file-upload-label:hover {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
}

.file-upload-icon { font-size: 1.2rem; }

.file-upload-hint {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
}

.file-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #374151;
}

.file-list-size { color: #9ca3af; }

.field-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ── CONSENT ── */

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #10b981;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-label.has-error {
    color: #b91c1c;
}

.consent-label a {
    color: #10b981;
    text-decoration: underline;
}

/* ── CONFIG SUMMARY ── */

.config-summary {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.config-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.config-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.config-summary-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.config-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.config-summary-list li {
    font-size: 0.8rem;
    color: #374151;
    padding-left: 1em;
    position: relative;
}

.config-summary-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 0.72rem;
}

/* ── VALIDATION SUMMARY ── */

.validation-summary {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1.5px solid #f87171;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #b91c1c;
    font-weight: 500;
    list-style: none;
}

.validation-summary li {
    margin-bottom: 2px;
}

/* ── STEP NAVIGATION BUTTONS ── */

.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

.btn-primary {
    padding: 0.75rem 2rem;
    border-radius: 999px;
    border: none;
    background: #10b981;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}

.btn-back {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-back:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* ── SUCCESS STATE ── */

.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.success-state h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0;
}

.success-state p {
    color: #4b5563;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.success-sub {
    color: #9ca3af !important;
    font-size: 0.85rem !important;
}

/* ── ERROR ── */

.submit-error {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #dc2626;
    text-align: center;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-profile-card {
        position: static;
    }

    .contact-form-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }

    .step-line {
        margin: 0 4px;
    }

    .contact-form-card {
        padding: 16px;
    }

    .chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .btn-primary {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
}
