.contact-section {
    background: var(--background-light, #f8f9fa);
    color: var(--text-primary, #002C5F);
    padding: 5rem 2rem 4rem;
}

.contact-section .section-header h2 {
    color: var(--cpc-blue-primary, #002C5F);
}

/* --- Two-column layout: form + sidebar --- */

.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

/* --- Form card --- */

.contact-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 2rem 2.5rem 2.5rem;
    border: 1px solid var(--border-color, #e1e5e9);
}

.contact-form h3 {
    color: var(--cpc-blue-primary, #002C5F);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color, #e1e5e9);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    color: var(--text-primary, #002C5F);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.625rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    color: var(--text-primary, #002C5F);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cpc-blue-secondary, #0066CC);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    color: #667085;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.email-link-intro {
    color: #667085;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.checkbox-label {
    align-items: flex-start;
    color: var(--text-primary, #002C5F);
    display: flex;
    font-size: 0.875rem;
    gap: 0.5rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0.15rem 0 0;
    width: auto;
}

.checkbox-label a {
    color: var(--cpc-blue-secondary, #0066CC);
    text-decoration: underline;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.field-error {
    color: #991b1b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc2626;
}

.form-message {
    border-radius: 6px;
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
}

.form-message.success {
    background-color: #ecfdf3;
    border: 1px solid #a6f4c5;
    color: #065f46;
}

.form-message.error {
    background-color: #fef3f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* --- Sidebar --- */

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e1e5e9);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-card h4 {
    color: var(--cpc-blue-primary, #002C5F);
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.sidebar-card p {
    font-size: 0.85rem;
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem 3rem;
    }

    .contact-page-layout {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.75rem;
    }

    .sidebar-card {
        min-width: 200px;
        flex-shrink: 0;
    }
}
