/* ================= Contact Page Styles ================= */

/* ── Form Status Animations ── */
#contact-status {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Spinner Animation ── */
@keyframes contact-spin {
    to { transform: rotate(360deg); }
}
#contact-spinner:not(.hidden) {
    animation: contact-spin 0.75s linear infinite;
}

/* ── Contact Info Card Hover & Reveal ── */
.contact-info-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}
.contact-info-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* ── Icon container subtle hover ── */
.contact-info-card:hover .icon-wrapper {
    background-color: rgba(16, 185, 129, 0.12) !important;
    transform: scale(1.05);
}
.contact-info-card .icon-wrapper {
    transition: all 0.3s ease;
}

/* ── Submit button hover micro-interaction ── */
#contact-submit-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#contact-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}
#contact-submit-btn:not(:disabled):active {
    transform: translateY(0);
}

/* ── Social button hover ── */
.social-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-btn:hover {
    transform: translateY(-2px);
}

/* ── Character counter ── */
#char-counter {
    transition: color 0.2s ease;
}

/* ── Input/textarea focus improvements ── */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ── Responsive ── */

/* Tablet: reduce padding */
@media (max-width: 1024px) {
    .lg\:col-span-5,
    .lg\:col-span-7 {
        padding: 0;
    }
    .p-8 {
        padding: 1.5rem !important;
    }
}

/* Mobile: stack full-width, tighten spacing */
@media (max-width: 767px) {
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .mb-16 {
        margin-bottom: 2.5rem !important;
    }

    .p-8 {
        padding: 1.25rem !important;
        border-radius: 1.5rem !important;
    }

    .grid-cols-1.sm\:grid-cols-2 {
        gap: 0.75rem !important;
    }

    /* Contact info cards: ensure full-width on mobile */
    .lg\:col-span-5 .p-5 {
        padding: 1rem !important;
    }

    /* Form inputs: full width */
    input, select, textarea {
        padding: 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Submit button */
    #contact-submit-btn {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

}

/* Very small screens (320px - 375px) */
@media (max-width: 375px) {
    h1.font-outfit {
        font-size: 1.75rem !important;
    }

    .gap-10 {
        gap: 1.5rem !important;
    }

    .space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }

    .space-y-5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.75rem !important;
    }
}

/* ── Dark mode overrides ── */
.dark #contact-form input,
.dark #contact-form select,
.dark #contact-form textarea {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.dark #contact-form input:focus,
.dark #contact-form select:focus,
.dark #contact-form textarea:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dark .contact-info-card:hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.06);
}

