/**
 * Contact page styles. Targets the markup in the contact-us static
 * page (.contact-hero, .contact-info-card, .contact-form-card, etc.).
 *
 * Matches the site's purple branding (#9667E0 / #7c3aed) used in
 * theme.css / mice.css so the page feels consistent across the
 * editor canvas and the published frontend.
 */

/* =========================================================
 * Hero
 * ========================================================= */
.contact-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.contact-hero-title {
    color: #6d28d9;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.contact-hero-subtitle {
    color: #4b5563;
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.6;
}

/* =========================================================
 * Main section
 * ========================================================= */
.contact-section {
    padding: 64px 0 96px;
    background: #ffffff;
}

/* =========================================================
 * "Get in Touch" card
 * ========================================================= */
.contact-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.contact-info-heading {
    color: #6d28d9;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 4px;
}

.contact-info-list li:first-child {
    margin-top: 0;
}

.contact-info-list li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #9667E0 0%, #7c3aed 100%);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-info-list a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin: 4px 0 0 42px;
    transition: color 0.15s ease;
}

.contact-info-list a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

.contact-info-list > div {
    color: #4b5563;
    font-weight: 400;
    margin: 4px 0 0 42px;
}

/* Social row — visually mirrors `.footer-social .social-link` so the
   contact card and the footer feel like the same family. Saved page
   content uses empty <a aria-label="…"> anchors; the icon glyph is
   injected via Font Awesome 6 Brands using the aria-label as the
   selector, so the page stays clean and we don't have to keep
   re-editing it to fix the markup. */
.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f3ff;
    color: #7c3aed;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.contact-social a:hover {
    background: linear-gradient(135deg, #9667E0 0%, #7c3aed 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Brand-glyph injection. Targets the aria-label that's already in the
   saved markup so we don't have to fix the HTML to add <i> tags. */
.contact-social a::before {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    display: inline-block;
}
.contact-social a[aria-label="Facebook"]::before {
    content: "\f39e"; /* fa-facebook-f */
}
.contact-social a[aria-label="Instagram"]::before {
    content: "\f16d"; /* fa-instagram */
}
.contact-social a[aria-label="TikTok"]::before {
    content: "\e07b"; /* fa-tiktok */
}

/* If the admin later re-edits the page to add an explicit <i class="fab fa-…">
   icon (matching the footer pattern), suppress the pseudo-element so we
   don't end up with two icons. */
.contact-social a:has(.fab)::before,
.contact-social a:has(.fa-brands)::before {
    content: none;
}

/* =========================================================
 * "Send us a Message" card
 * ========================================================= */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.contact-form-heading {
    color: #6d28d9;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Hook the dynamic form output to match the card */
.contact-form-card .dynamic-form-wrapper {
    margin: 0;
}

.contact-form-card .dynamic-form-group {
    margin-bottom: 18px;
}

.contact-form-card .dynamic-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.contact-form-card .dynamic-form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-card .dynamic-form-input:focus {
    outline: none;
    border-color: #9667E0;
    box-shadow: 0 0 0 3px rgba(150, 103, 224, 0.18);
}

.contact-form-card .dynamic-form-input::placeholder {
    color: #9ca3af;
}

.contact-form-card .dynamic-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-card .dynamic-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #9667E0 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-card .dynamic-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.contact-form-card .dynamic-form-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

.contact-form-card .dynamic-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #166534;
}

.contact-form-card .dynamic-form-success i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* =========================================================
 * Responsive
 * ========================================================= */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 60px 0 40px;
    }

    .contact-section {
        padding: 48px 0 64px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .contact-hero-title {
        font-size: 1.75rem;
    }

    .contact-info-list a,
    .contact-info-list > div {
        margin-left: 42px;
    }
}
