/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* Contact Intro Section */
.contact-intro {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.contact-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.intro-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h1 {
    font-size: 60px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-content p {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
}

/* Contact Main Section */
.contact-main {
    padding: 80px 20px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    color: #2d2d2d;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #666;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 24px;
    color: #d4af37;
}

.info-card h3 {
    font-size: 20px;
    color: #2d2d2d;
    margin-bottom: 5px;
}

.info-card p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Contact Map Section */
.contact-map {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.contact-map h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* CTA Section */
.cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
}

.cta h2 {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Button Styles */
.btn.primary {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d4af37, #b8972e);
    color: #fff;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.6);
}

.btn.primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn.primary:hover::after {
    width: 200px;
    height: 200px;
}

.btn.primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Animations */
.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-reveal[data-delay] {
    transition-delay: var(--delay);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-main {
        flex-direction: column;
        gap: 20px;
    }
    .contact-intro h1,
    .contact-form h2,
    .contact-info h2,
    .contact-map h2,
    .cta h2 {
        font-size: 32px;
    }
    .intro-content p,
    .cta p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .contact-intro {
        padding: 60px 20px;
    }
    .contact-main,
    .contact-map,
    .cta {
        padding: 60px 15px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    .btn.primary {
        padding: 10px 25px;
        font-size: 14px;
    }
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-intro h1 {
        font-size: 36px;
    }
    .contact-form h2,
    .contact-info h2,
    .contact-map h2,
    .cta h2 {
        font-size: 28px;
    }
    .intro-content p,
    .cta p {
        font-size: 16px;
    }
    .info-card h3 {
        font-size: 18px;
    }
    .info-card p {
        font-size: 14px;
    }
}

/* Popup Styles */
.thankpopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.thankpopup.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.thankpopup-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.thankpopup.show .thankpopup-content {
    transform: translateY(0);
}

.thankpopup-content h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin-bottom: 10px;
}

.thankpopup-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* Ensure popup animation uses existing fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}