/* ============================================
   Tathagat Tour and Travels — Contact Page
   Self-contained styles (no styles.css dependency)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF8C42;
    --primary-dark: #FF6B35;
    --text: #333333;
    --text-light: #636e72;
    --bg: #f8f9fa;
    --white: #ffffff;
    --dark: #1f2937;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.header.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.03); }

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo h1 {
    font-size: 1.4rem;
    color: #222;
    white-space: nowrap;
    font-weight: 600;
}

.nav-content {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    border-radius: 2rem;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover { color: #222; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary-dark); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    background: #333;
    height: 2px;
    width: 24px;
    position: absolute;
    left: 8px;
    transition: transform 0.3s ease;
}

.menu-icon { top: 19px; }
.menu-icon::before, .menu-icon::after { content: ''; }
.menu-icon::before { transform: translateY(-7px); }
.menu-icon::after { transform: translateY(7px); }

.mobile-menu.active .menu-icon { background: transparent; }
.mobile-menu.active .menu-icon::before { transform: rotate(45deg); background: var(--primary); }
.mobile-menu.active .menu-icon::after { transform: rotate(-45deg); background: var(--primary); }

/* ===== HERO ===== */
.contact-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(255, 140, 66, 0.8)),
        url('https://images.unsplash.com/photo-1596524430615-b46475ddff6e?w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.contact-hero-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero-content p {
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: start;
}

/* Info Cards */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.15rem;
}

.info-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.35rem;
}

.info-body p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.info-body a {
    color: var(--text-light);
    transition: color 0.2s;
}

.info-body a:hover {
    color: var(--primary-dark);
}

/* Social Row */
.social-row {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.social-row a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1rem;
    transition: var(--transition);
}

.social-row a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

/* Form Card */
.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-card h3 {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 0.9rem;
    transition: color 0.3s;
    pointer-events: none;
}

.textarea-wrap i {
    top: 18px;
    transform: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #fafafa;
    transition: var(--transition);
    outline: none;
}

.input-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2bec3' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
}

.input-wrap textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: #b2bec3;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.12);
}

.form-group:focus-within .input-wrap i {
    color: var(--primary);
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.submit-btn:hover i {
    transform: translateX(4px);
}

.submit-btn i {
    transition: transform 0.3s;
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.submit-btn.success {
    background: #10B981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.submit-btn.error {
    background: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* ===== MAP ===== */
.map-section {
    padding: 0 0 5rem;
    background: var(--bg);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: #f3f4f6;
    padding: 4rem 1.5rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-section > p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.92rem;
}

.footer-section a {
    display: block;
    color: #9ca3af;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
    min-width: 16px;
}

.footer-contact a {
    display: inline;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 0;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .nav-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1001;
    }

    .nav-content.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links a {
        padding: 0.9rem 0;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-links a::after { display: none; }

    .mobile-menu {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 300px;
        padding: 7rem 1.25rem 3rem;
    }

    .contact-hero-content h2 {
        font-size: 1.8rem;
    }

    .contact-hero-content p {
        font-size: 0.95rem;
    }

    .contact-section {
        padding: 3rem 0;
    }

    .form-card {
        padding: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 260px;
        padding: 6.5rem 1rem 2.5rem;
    }

    .contact-hero-content h2 {
        font-size: 1.5rem;
    }

    .section-tag {
        font-size: 0.65rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-card h3 {
        font-size: 1.3rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .social-row a {
        width: 40px;
        height: 40px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }

    .footer {
        padding: 3rem 1.25rem 0;
    }
}