/* Contact Page - Ram Photography Mangalakaram Theme */

:root {
    --primary-gold: #D4AF37;
    --deep-maroon: #800020;
    --maroon-dark: #5C0017;
    --cream: #F5E6D3;
    --cream-light: #FBF5ED;
    --rich-brown: #3E2723;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #666666;
    --gray-light: #E5E5E5;
    --shadow: rgba(0, 0, 0, 0.3);
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4B7 100%);
    --maroon-gradient: linear-gradient(135deg, #800020 0%, #5C0017 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--maroon-gradient);
    padding: 120px 0 100px;
    text-align: center;
    overflow: hidden;
}

#contactHero {
    background-color: #800020 !important;
    background-image: linear-gradient(135deg, #800020 0%, #5C0017 100%) !important;
}

#contactHero .hero-title,
#contactHero .hero-subtitle,
#contactHero .stat-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

#contactHero .hero-subtitle {
    color: #FBF5ED !important;
    /* cream-light */
    opacity: 1 !important;
}


/* Clear global hero overlay */
#contactHero::before {
    display: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use simpler background if SVG fails, but keep SVG if valid */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23D4AF37" opacity="0.05"/></svg>');
    background-size: 150px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px var(--shadow);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--cream-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.stat-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.stat-text {
    text-align: left;
    color: var(--white);
}

.stat-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.stat-text span {
    font-size: 0.95rem;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Methods Section */
.contact-methods-section {
    padding: 100px 0;
    background: var(--cream-light);
    position: relative;
}

.contact-methods-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--deep-maroon);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    background: var(--cream-light);
    /* Background to mask pattern behind text */
    display: inline-block;
    padding: 0 20px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.method-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.method-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.whatsapp-card {
    border-color: var(--primary-gold);
}

.whatsapp-card:hover {
    border-color: #25D366;
}

.phone-card:hover {
    border-color: var(--deep-maroon);
}

.visit-card:hover {
    border-color: var(--primary-gold);
}

.method-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-card .method-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.phone-card .method-icon {
    background: var(--maroon-gradient);
}

.method-card:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.method-icon svg {
    width: 50px;
    height: 50px;
    color: var(--white);
}

.method-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-maroon);
    margin-bottom: 15px;
}

.method-card p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.method-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-btn svg {
    width: 24px;
    height: 24px;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.phone-btn {
    background: var(--maroon-gradient);
    color: var(--white);
}

.phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
}

.visit-btn {
    background: var(--gold-gradient);
    color: var(--black);
}

.visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.method-note {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
    background: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-container {
    background: var(--cream-light);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-maroon);
    margin-bottom: 15px;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--deep-maroon);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gold-gradient);
    color: var(--black);
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.submit-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

.form-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 20px;
    animation: slideIn 0.4s ease;
}

.form-message svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.success-message {
    background: #D4EDDA;
    border: 2px solid #28A745;
    color: #155724;
}

.success-message svg {
    color: #28A745;
}

.error-message {
    background: #F8D7DA;
    border: 2px solid #DC3545;
    color: #721C24;
}

.error-message svg {
    color: #DC3545;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Container */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--cream);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-maroon);
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 1.05rem;
}

.info-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.testimonial-card {
    background: var(--maroon-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--deep-maroon);
}

.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(212, 175, 55, 0.3);
    line-height: 1;
    margin-bottom: -20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.95;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-links a {
    color: var(--deep-maroon);
    text-decoration: none;
    padding: 12px 18px;
    background: var(--cream-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-links a:hover {
    background: var(--primary-gold);
    color: var(--black);
    padding-left: 25px;
}

/* Location Section */
.location-section {
    padding: 100px 0;
    background: var(--cream-light);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.map-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-gold);
}

.map-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream) 100%);
    text-align: center;
    padding: 40px;
}

.map-placeholder svg {
    width: 100px;
    height: 100px;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 1.3rem;
    color: var(--deep-maroon);
    margin-bottom: 25px;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gold-gradient);
    color: var(--black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    border-color: var(--primary-gold);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.detail-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-maroon);
    margin-bottom: 10px;
}

.detail-content p {
    color: var(--gray);
    line-height: 1.8;
}

.detail-content a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.detail-content a:hover {
    color: var(--deep-maroon);
}

.detail-content em {
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-card {
    background: var(--maroon-gradient);
    border-color: var(--deep-maroon);
}

.highlight-card .detail-icon {
    background: rgba(255, 255, 255, 0.2);
}

.highlight-card .detail-content h4 {
    color: var(--primary-gold);
}

.highlight-card .detail-content p {
    color: var(--white);
    opacity: 0.95;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-gold);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 25px 30px;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-maroon);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--cream-light);
}

.faq-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--cream-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px 30px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* Bottom CTA Section */
.bottom-cta-section {
    background: var(--maroon-gradient);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bottom-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q60 30 50 50 Q40 30 50 10" fill="%23D4AF37" opacity="0.05"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--cream-light);
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 22px 50px;
    background: var(--gold-gradient);
    color: var(--black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.cta-btn svg {
    width: 30px;
    height: 30px;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.cta-note {
    margin-top: 30px;
    font-size: 1.15rem;
    color: var(--white);
    opacity: 0.9;
}

.cta-note a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.cta-note a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .map-placeholder {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .method-card {
        padding: 35px 25px;
    }

    .form-title {
        font-size: 2rem;
    }

    .submit-btn {
        width: 100%;
    }
}