/* =============================================================
   TUTORMATCH REDESIGNED CONTACT PAGE (contact.css)
============================================================= */

.tm-contact-page {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

/* 1. HERO SECTION */
.tm-contact-hero {
    position: relative;
    padding: 80px 0 60px;
    background: #0f172a;
    text-align: center;
    overflow: hidden;
}

/* Video Background Styling */
.tm-hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tm-hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65; /* Opacity kam karke video ki transparency badha di hai */
}

.tm-hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* White overlay gradient badha diya hai taaki video ke upar clean white finish aaye */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(248, 250, 252, 0.85) 100%);
}
/* Ensure text stays on top of video */
.tm-contact-hero .tm-container {
    position: relative;
    z-index: 2;
}

.tm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}


.tm-contact-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
}

.tm-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tm-contact-hero p {
    font-size: 17px;
    color: #1b1f24;
    line-height: 1.6;
}

/* 2. SPLIT CARD CONTAINER */
.tm-contact-wrapper-section {
    padding-bottom: 90px;
}

.tm-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    overflow: hidden;
}

/* LEFT FORM SIDE */
.tm-contact-form-side {
    padding: 48px;
}

.tm-form-header {
    margin-bottom: 28px;
}

.tm-form-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.tm-form-header p {
    font-size: 14px;
    color: #64748b;
}

/* Alert Box */
.tm-alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.tm-alert-box i {
    font-size: 20px;
    color: #16a34a;
}

.tm-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.tm-alert-error i {
    color: #dc2626;
}

.tm-hidden {
    display: none !important;
}

/* Form Styling */
.tm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tm-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tm-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.tm-field-group label span {
    color: #ef4444;
}

.tm-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.tm-input-box i {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.tm-input-box input,
.tm-input-box select,
.tm-input-box textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.tm-textarea-box textarea {
    padding-top: 12px;
    resize: vertical;
}

.tm-input-box input:focus,
.tm-input-box select:focus,
.tm-input-box textarea:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tm-input-box input:focus + i,
.tm-input-box select:focus + i {
    color: #2563eb;
}

.tm-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.tm-btn-submit:focus,
.tm-btn-submit:focus-visible,
.tm-btn-submit:active {
    color: #ffffff;
}

/* RIGHT INFO SIDE */
.tm-contact-info-side {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    padding: 48px 36px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-info-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tm-info-header p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 32px;
}

.tm-info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.tm-info-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
}

.tm-info-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.tm-tile-icon {
    width: 42px;
    height: 42px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tm-tile-whatsapp .tm-tile-icon {
    background: #25d366;
}

.tm-tile-text {
    display: flex;
    flex-direction: column;
}

.tm-tile-text small {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;

}

.tm-tile-text strong {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

.tm-info-socials span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.tm-social-links {
    display: flex;
    gap: 12px;
}

.tm-social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
}

.tm-social-links a:hover {
    background: #2563eb;
}

/* 3. FAQ SECTION */
.tm-contact-faq {
    padding: 70px 0 90px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.tm-section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.tm-section-heading .tm-sub {
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tm-section-heading h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0;
}

.tm-section-heading p {
    color: #64748b;
    font-size: 15px;
}

.tm-faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tm-faq-item.active {
    border-color: #2563eb;
}

.tm-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.tm-faq-question i {
    font-size: 20px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.tm-faq-item.active .tm-faq-question i {
    transform: rotate(180deg);
    color: #2563eb;
}

.tm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.tm-faq-item.active .tm-faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}

.tm-faq-answer p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .tm-contact-card {
        grid-template-columns: 1fr;
    }
    .tm-contact-form-side {
        padding: 32px 24px;
    }
    .tm-contact-info-side {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .tm-form-grid {
        grid-template-columns: 1fr;
    }
    .tm-contact-hero h1 {
        font-size: 32px;
    }
}