/* ========================================
   Contact Page Premium Redesign
   Matching Homepage Styling & Aesthetics
   ======================================== */

/* Color Palette - Matching Homepage */
:root {
    --contact-bg: #FAFAFD;
    --pastel-purple: #cf171f; /* Using theme-color from main style */
    --pastel-pink: #ffc4d6;
    --pastel-mint: #80c141; /* Using secondary-color from main style */
    --pastel-yellow: #fff4cc;
    --soft-lavender: #f9f6ef; /* Using smoke-color from main style */
    --text-dark: #103741; /* Using title-color from main style */
    --text-body: #74787c; /* Using body-color from main style */
    --card-white: #ffffff;
    --glow-purple: rgba(207, 23, 31, 0.3); /* Using theme-color with opacity */
}

/* ========================================
   1. HEADER GLASSMORPHISM
   ======================================== */
.sticky-active .header-menu-area {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Book A Visit Button Glow Effect */
.header-button .vs-btn.wave-btn {
    box-shadow: 0 8px 24px var(--glow-purple),
        0 4px 12px rgba(207, 23, 31, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-button .vs-btn.wave-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--glow-purple),
        0 6px 16px rgba(207, 23, 31, 0.2);
}

/* Rounded Icon Buttons */
.header-button .icon-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: rgba(249, 246, 239, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-button .icon-btn:hover {
    background: var(--soft-lavender);
    transform: rotate(15deg) scale(1.1);
}

/* ========================================
   2. CONTACT SECTION BACKGROUND
   ======================================== */
.contact-section {
    background: linear-gradient(180deg, var(--contact-bg) 0%, var(--soft-lavender) 100%);
    position: relative;
    padding: 100px 0 120px;
    overflow: visible;
}

/* Floating Doodles - Stars */
.contact-section::before {
    content: '✨';
    position: absolute;
    top: 80px;
    left: 5%;
    font-size: 48px;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.contact-section::after {
    content: '⭐';
    position: absolute;
    top: 200px;
    right: 8%;
    font-size: 36px;
    opacity: 0.35;
    animation: float 5s ease-in-out infinite 1s;
    z-index: 1;
}

/* Additional Floating Doodles */
.contact-section .container::before {
    content: '○';
    position: absolute;
    bottom: 150px;
    left: 10%;
    font-size: 80px;
    color: var(--pastel-mint);
    opacity: 0.2;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.contact-section .container::after {
    content: '◇';
    position: absolute;
    top: 50%;
    right: 5%;
    font-size: 60px;
    color: var(--pastel-pink);
    opacity: 0.25;
    animation: float 7s ease-in-out infinite 2s;
    z-index: 1;
}

/* ========================================
   3. SECTION TITLE - MATCHING HOMEPAGE
   ======================================== */
.contact-section .title-area {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

/* "Get In Touch" - Pastel Purple Micro Text */
.contact-section .sub-title {
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pastel-purple);
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

/* Add sparkle decorations */
.contact-section .sub-title::before {
    content: '✦';
    position: absolute;
    left: -25px;
    top: -2px;
    font-size: 16px;
    color: var(--pastel-pink);
    animation: twinkle 2s ease-in-out infinite;
}

.contact-section .sub-title::after {
    content: '✦';
    position: absolute;
    right: -25px;
    top: -2px;
    font-size: 16px;
    color: var(--pastel-mint);
    animation: twinkle 2s ease-in-out infinite 0.5s;
}

/* "We are always here to help you" - Bold, Clean, Centered */
.contact-section .sec-title {
    font-family: var(--title-font);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* ========================================
   4. CONTACT INFO CARDS
   ======================================== */
.contact-media {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--card-white);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(16, 55, 65, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.contact-media:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(155, 135, 245, 0.15);
}

.media-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pastel-purple) 0%, var(--pastel-pink) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-icon i {
    color: white;
    font-size: 24px;
}

.media-body .media-label {
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.media-body .media-info {
    margin: 0;
    color: var(--text-body);
    font-size: 16px;
}

.media-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.media-info a:hover {
    color: var(--pastel-purple);
}

/* ========================================
   5. CONTACT FORM STYLING
   ======================================== */
.contact-form-box {
    background: var(--card-white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--pastel-purple) 0%, var(--pastel-pink) 100%);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-dark);
    background: #fafafa;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--pastel-purple);
    background: white;
    box-shadow: 0 5px 15px rgba(155, 135, 245, 0.1);
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 45px;
    color: var(--pastel-purple);
    font-size: 18px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b87f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
}

/* Wave Button for Form Submit */
.contact-form-box .vs-btn.wave-btn {
    background: linear-gradient(135deg, var(--pastel-purple) 0%, var(--pastel-pink) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(155, 135, 245, 0.3);
}

.contact-form-box .vs-btn.wave-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(155, 135, 245, 0.4);
}

/* ========================================
   6. CONTACT IMAGE STYLING
   ======================================== */
.contact-img {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.contact-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(155, 135, 245, 0.1) 0%, rgba(255, 196, 214, 0.1) 100%);
    z-index: 1;
}

.contact-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.contact-img:hover img {
    transform: scale(1.05);
}

/* ========================================
   7. MAP SECTION
   ======================================== */
.map-sec {
    padding: 0;
    margin: 0;
}

.map-sec iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ========================================
   8. ANIMATIONS
   ======================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Staggered fade-in for contact items */
.contact-media,
.contact-form-box,
.contact-img {
    animation: fadeInUp 0.6s ease-out backwards;
}

.contact-media:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-media:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-media:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   9. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .contact-section .sec-title {
        font-size: 36px;
    }

    .contact-form-box {
        padding: 40px 30px;
    }

    .contact-img {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 80px 0 100px;
    }

    .contact-section .sec-title {
        font-size: 32px;
    }

    .contact-form-box {
        padding: 30px 20px;
    }

    .form-control {
        padding: 12px 15px 12px 45px;
    }

    .form-group i {
        left: 15px;
        top: 42px;
    }

    .media-icon {
        width: 50px;
        height: 50px;
    }

    .media-icon i {
        font-size: 20px;
    }

    /* Hide some floating doodles on mobile */
    .contact-section .container::before,
    .contact-section .container::after {
        display: none;
    }

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