/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

.contact-hero .hero-tablet-screen-viewport {
    background: #fff; 
}

/* Contact Us Section */
.contact-form-section {
    background-color: #fcae1a; /* Brand yellow */
    padding: 80px 5%;
    text-align: center;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-section h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}

.contact-form-section .lead-text {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism Form Wrapper */
.glass-form-wrapper {
    background: rgba(252, 174, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* CF7 Form Elements */
.glass-form-wrapper .form-group {
    margin-bottom: 25px;
}

.glass-form-wrapper .row-align {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 20px;
}

.glass-form-wrapper .row-align.align-top {
    align-items: flex-start;
}

.glass-form-wrapper label {
    font-weight: 600;
    color: #111;
    font-size: 1.1rem;
    margin: 0;
}

.glass-form-wrapper input[type="text"],
.glass-form-wrapper input[type="email"],
.glass-form-wrapper input[type="tel"],
.glass-form-wrapper textarea {
    width: 100%;
    background: rgba(252, 174, 26, 0.5); /* Yellow tinted transparent */
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    color: #111;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.1);
    outline: none;
    transition: all 0.3s ease;
}

.glass-form-wrapper input:focus,
.glass-form-wrapper textarea:focus {
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.15), 0 0 0 2px rgba(255,255,255,0.5);
}

.glass-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox Grid (Choose Services) */
.cf7-checkbox-grid .wpcf7-list-item {
    display: inline-block;
    width: 48%; /* 2 columns */
    margin: 0 0 15px 0;
}

.cf7-checkbox-single .wpcf7-list-item {
    display: inline-block;
    width: 100%;
    margin: 0;
}

/* Custom Checkbox Style */
.glass-form-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
}

.glass-form-wrapper input[type="checkbox"]:checked {
    background: #fcae1a;
    border-color: #fff;
}

.glass-form-wrapper input[type="checkbox"]:checked::after {
    content: '\2714';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
}

.glass-form-wrapper .wpcf7-list-item-label {
    vertical-align: middle;
    color: #111;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Submit Button */
.glass-form-wrapper .submit-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.glass-form-wrapper .submit-row iframe{

height: 80px;
}

.glass-form-wrapper input[type="submit"] {
    background: #fbab17;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 50px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.glass-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Recaptcha Placeholder align */
.recaptcha-row {
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-form-section{
        margin-top: 100px;
        padding-top: 30px;
    }
    .contact-form-section .lead-text{
            font-size: 1rem;
      
    }
    .glass-form-wrapper .row-align {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .glass-form-wrapper label {
        margin-bottom: 5px;
    }
    
    .cf7-checkbox-grid .wpcf7-list-item {
        width: 100%; /* Stack on mobile */
    }
    
    .glass-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-form-section h2 {
        font-size: 2rem;
        margin-bottom: 0px;
    }
    .glass-form-wrapper .recaptcha {
   
            position: relative;
        left: -110px;
    }
    .glass-form-wrapper input[type="submit"]{
            position: relative;
    left: 40px;
    }
    .contact-form-section{
        padding-top: 40px;
        padding-bottom: 60px;
    }
}

/* CF7 Form Elements overrides */
.glass-form-wrapper .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.glass-form-wrapper .row-align {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.contact-form-section p.lead-text {
    width: 100% !important;
    max-width: 900px !important;
    display: block !important;
    padding: 0;
}

/* Force hero tablet background bottom half yellow if needed, though mockup has a yellow block. */
.contact-hero .hero-tablet-screen-viewport {
    background: linear-gradient(to bottom, #fff 50%, #fcae1a 50%); 
}

/* Ensure our services isn't hidden if JS fails */
.buzz-services-section {
    opacity: 1 !important;
    transform: none !important;
}

/* Checkbox fixes */
.cf7-checkbox-grid .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cf7-checkbox-grid .wpcf7-list-item {
    width: 110% !important;
    margin: 0 0 15px 0 !important;
    display: inline-flex !important;
    align-items: center;
}

/* Swiper Slider Overrides */
.contact-projects-slider {
    padding-bottom: 40px !important; 
}
.more-projects-section .swiper-button-next,
.more-projects-section .swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    top: 50%;
    transform: translateY(-50%);
}
.more-projects-section .swiper-button-next:after,
.more-projects-section .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 800;
}

.more-projects-section .contact-swiper-next {
    right: 5px;
}

.more-projects-section .contact-swiper-prev {
    left: 10px;
}

@media (max-width: 1024px) {
    .more-projects-section .contact-swiper-next { right: 10px; }
    .more-projects-section .contact-swiper-prev { left: 10px; }
}

/* Override opacity 0 from global styles for the slider cards */
.contact-projects-slider .more-projects-card {
    opacity: 1 !important;
    transform: none !important;
    height: 330px !important;
}

@media (max-width: 768px) {
    .contact-projects-slider .more-projects-card {
        height: 300px !important;
    }
}

/* Swiper Services Navigation overrides */
.services-swiper-next:after,
.services-swiper-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold !important;
}
.services-swiper-next {
    right: 0px !important;
}
.services-swiper-prev {
    left: 0px !important;
}

/* FORCE VISIBILITY ON ALL SECTIONS - Overrides GSAP opacity 0 defaults if JS fails */
.contact-form-section,
.contact-hero,
.showcases,
.buzz-services-section,
.fade-up,
.more-projects-card,
.buzzworthy-stagger-text {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure Swiper structural CSS is enforced */
.swiper {
    width: 100%;
    
    display: block;
    position: relative;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex !important;
    position: relative;
    width: 100%;
    
    z-index: 1;
    box-sizing: content-box;
    transition-property: transform;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    
    position: relative;
    transition-property: transform;
}

.buzz-circle-wrapper,
.buzz-circle,
.contact-services-slider {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Ensure Swiper buttons are visible above everything */
.swiper-button-next, .swiper-button-prev {
    z-index: 100 !important;
}

.swiper {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex !important;
    position: relative;
    width: 100%;
    z-index: 1;
    box-sizing: content-box;
    transition-property: transform;
    align-items: stretch;
}
.swiper-slide {
    flex-shrink: 0;
    position: relative;
    transition-property: transform;
    display: block;
}

/* Contact Page Specific - Smaller Services Circles */
.contact-services-slider .buzz-circle {
    width: 180px !important;
    height: 180px !important;
}
.contact-services-slider .buzz-circle h3 {
    font-size: 0.85rem !important;
    margin-top: 5px !important;
}
.contact-services-slider .icon-normal,
.contact-services-slider .icon-hover {
    width: 30px !important;
    margin-bottom: 5px !important;
}
.contact-services-slider .plus-icon {
    font-size: 18px !important;
    bottom: 8px !important;
}

/* Force Swiper Arrows to Always Show and Look Like the Mockup */
.services-swiper-next, .services-swiper-prev {
    width: 35px !important;
    height: 35px !important;
    background: #e66432 !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    position: absolute;
    top:60%;
    transform: translateY(-50%);
    z-index: 100 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important; /* prevent swiper from hiding them */
    pointer-events: auto !important;
}

.services-swiper-next:after, .services-swiper-prev:after {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}
.services-swiper-next {
    right: 5px !important;
}
.services-swiper-prev {
    left: 5px !important;
}

/* On mobile, adjust arrows */
@media (max-width: 768px) {
    .services-swiper-next { right: 0px !important; }
    .services-swiper-prev { left: 0px !important; }
    
    .contact-services-slider .buzz-circle {
        width: 110px !important;
        height: 110px !important;
    }
    .contact-services-slider .icon-normal,
    .contact-services-slider .icon-hover {
        width: 35px !important;
    }
    .contact-services-slider .buzz-circle h3 {
        font-size: 0.75rem !important;
    }
}

/* === EXACT MOCKUP GLASSMORPHISM FORM STYLES === */
.glass-form-wrapper {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 20px !important;
    padding: 50px 60px !important;
    max-width: 750px !important;
    margin: 0 auto !important;
    box-shadow: inset 0 1px 8px rgb(255 255 255) !important;
    text-align: left !important;
}

.glass-form-wrapper label {
    font-size: 1rem !important;
    color: #111 !important;
    font-weight: 500 !important;
}
.glass-form-wrapper small {
    font-size: 0.8rem;
    font-weight: 400;
}

.glass-form-wrapper .wpcf7-form-control-wrap {
    width: 100% !important;
    display: block !important;
}
.glass-form-wrapper .recaptcha{
    width: 30% !important;
}

/* Translucent input fields with inner shadow */
.glass-form-wrapper input[type="text"],
.glass-form-wrapper input[type="email"],
.glass-form-wrapper input[type="tel"],
.glass-form-wrapper textarea {
       width: 100% !important;
    background: rgb(255 255 255 / 30%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    color: #111 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}
.glass-form-wrapper textarea {
    height: 120px !important;
    resize: vertical !important;
}

/* File Upload Field */
.glass-form-wrapper .upload-box {
    display: flex;
    align-items: center;
}
.glass-form-wrapper .custom-file-upload {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111;
    font-weight: 500;
}
.glass-form-wrapper .custom-file-upload img {
    width: 30px;
    height: auto;
    margin-right: 15px;
}
.glass-form-wrapper .hidden-file-input {
    display: none !important;
}

/* Checkbox Grid - strictly 2 columns */
.glass-form-wrapper .cf7-checkbox-grid .wpcf7-checkbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    width: 100% !important;
}
.glass-form-wrapper .cf7-checkbox-grid .wpcf7-list-item {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.glass-form-wrapper .cf7-checkbox-grid .wpcf7-list-item-label {
    font-size: 0.85rem !important;
}

/* Grid Layout for Rows */
.glass-form-wrapper .row-align {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    align-items: center !important;
    margin-bottom: 25px !important;
}
.glass-form-wrapper .row-align.align-top {
    align-items: flex-start !important;
}

/* Send Button */
.glass-form-wrapper .submit-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.glass-form-wrapper input[type="submit"] {
    background: #fcae1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(252, 174, 26, 0.4) !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.glass-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(252, 174, 26, 0.6) !important;
}

@media (max-width: 768px) {
    .glass-form-wrapper { padding: 30px 20px !important; }
    .glass-form-wrapper .row-align { grid-template-columns: 1fr !important; gap: 10px !important; }
    .glass-form-wrapper .cf7-checkbox-grid .wpcf7-checkbox { grid-template-columns: 1fr !important; }
}

/* Contact Page Background Color */
.contact-form-section {
    background-color: #f1c03a !important;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* === INLINE STYLE REPLACEMENTS FOR CONTACT PAGE === */
.hero-tablet-screen-viewport { background: #fff; display: flex; flex-direction: column; justify-content: center; }
.phone-card-item img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.more-projects-link { display: block; position: relative; height: 100%; }
.contact-services-slider .buzz-circle-wrapper { display: flex; justify-content: center; }
.contact-lead-text { font-size: 1.2rem; text-align: center; margin-bottom: 50px; line-height: 1.6; max-width: 800px; margin-left: auto; margin-right: auto; }
.contact-main-heading { font-size: 5rem; text-align: center; margin-bottom: 20px; }
.more-projects-card { height: auto; opacity: 1 !important; transform: none !important; }
.contact-services-slider .buzz-circle { margin: 0 auto; }
.more-projects-figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; height: 100%; }
.contact-sub-lead-text { margin-bottom: 0px; }
.contact-form-container-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.contact-services-container { max-width: 1200px; margin: 0 auto; position: relative; }
#post-video-overlay { opacity: 1; visibility: visible; position: relative; }
.contact-showcase-section { overflow: hidden; padding-bottom: 40px;padding-top: 50px; }
.contact-showcase-section .contact-sub-lead-text{color: #000;}
.contact-services-slider-container { padding: 20px 0; overflow: hidden; max-width: 1200px; margin: 0 auto; }
.contact-projects-slider-container { padding: 20px 0; overflow: hidden; width: 100%; }
.contact-services-section-wrapper { padding-bottom: 80px; overflow: hidden;padding-top: 0px; }
.contact-projects-section { padding: 0; background: transparent; max-width: 1300px; margin: 0 auto; position: relative; }
.contact-phone-slider-container { position: relative; width: 50%; height: 350px; perspective: 1000px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.contact-services-title-mod { text-align: center; margin-bottom: 0px; }
.more-projects-image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }

/* Responsive Adjustments for new classes */
@media (max-width: 768px) {
    .contact-main-heading { font-size: 3rem; }
    .contact-lead-text { font-size: 1rem; margin-bottom: 30px; }
    .contact-phone-slider-container { width: 90%; height: 250px; }
}

/* Fix Contact Form 7 Auto-Paragraph (WPCF7_AUTOP) breaking grid */
.glass-form-wrapper .form-group p {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    align-items: center !important;
    margin: 0 !important;
    width: 100% !important;
}

.glass-form-wrapper .form-group.align-top p {
    align-items: flex-start !important;
}

.glass-form-wrapper .form-group p br {
    display: none !important; /* Hide CF7 auto line breaks */
}

/* Redefine grid specifically for the wrapper since CF7 injects P tag */
.glass-form-wrapper .row-align {
    display: block !important; /* Let the P tag handle the grid */
    margin-bottom: 25px !important;
}

/* Ensure checkbox grid handles the P tag too */
.glass-form-wrapper .cf7-checkbox-grid p {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
}

@media (max-width: 768px) {
    .glass-form-wrapper .form-group p {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .glass-form-wrapper .cf7-checkbox-grid p {
        grid-template-columns: 1fr !important;
    }
}

/* File Upload Fixes */
.glass-form-wrapper .upload-box {
    display: inline-flex !important;
    align-items: center;
}
.glass-form-wrapper .custom-file-upload {
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 1rem !important;
    color: #111 !important;
    font-weight: 500 !important;
    white-space: nowrap;
}
.glass-form-wrapper .custom-file-upload img {
    width: 35px !important;
    height: auto !important;
    margin-right: 15px !important;
}
.glass-form-wrapper .hidden-file-input {
    display: none !important;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* ==========================================================
   MOBILE FORCE STYLING FOR PROJECTS SLIDER
========================================================== */
@media (max-width: 768px) {
    /* 1. Ensure the card container holds the absolutely positioned overlay */
.contact-projects-slider-container{
        padding: 0px 0;
}
.showcases p.lead-text{
            padding: 10px 0px;
                    width: 95%;
}
    .more-projects-section .project-card, .more-projects-grid > div:not(h2), .projects-grid > div:not(h2), [class*="more-projects"] [class*="card"], [class*="more-projects"] [class*="col"], [class*="more-projects"] .project-item {
        width: 70% !important;
        max-width: 70% !important;
        flex: 0 0 70% !important;
    }
    .contact-projects-slider .more-projects-card {
        height: 300px !important; /* Give it enough height */
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        border-radius: 15px !important;
        overflow: hidden !important;
    }
    
    /* 2. Ensure the link takes full height */
    .contact-projects-slider .more-projects-link {
        height: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    /* 3. The figure should fill the container */
    .contact-projects-slider .more-projects-figure {
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        border-radius: 15px !important;
    }

    /* 4. The image must fill the figure */
    .contact-projects-slider .more-projects-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 15px !important;
    }

    /* 5. FORCE the glass overlay back onto the image! */
    .contact-projects-slider .glass-overlay-btn {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 30px) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        
        /* Restore the glassmorphism effect */
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        padding: 12px 15px !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
        z-index: 10 !important;
    }

    /* Text inside the glass overlay */
    .contact-projects-slider .glass-text-group h4 {
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        margin: 0 !important;
        text-align: left !important;
        width: auto !important; /* Prevent it from squishing */
    }

    .contact-projects-slider .glass-text-group p {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 11px !important;
        margin: 2px 0 0 0 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    }

    /* The Plus Icon */
    .contact-projects-slider .glass-plus-icon img {
        width: 25px !important;
        height: 25px !important;
    }
}

/* ==========================================================
   MOBILE OVERRIDES FOR SERVICES SLIDER (3 CIRCLES + RIGHT ARROW)
========================================================== */
@media (max-width: 768px) {
    /* 1. Hide the left arrow entirely */
    /* .services-swiper-prev {
        display: block !important;
    } */

    /* 2. Position the right arrow so it overlaps the edge */
    .services-swiper-next {
        right: 0px !important;
        width: 35px !important;
        height: 35px !important;
        z-index: 10 !important;
    }
    
    /* .services-swiper-next:after {
        font-size: 14px !important;
    } */

    /* 3. Scale down the circles so 3 can fit gracefully side-by-side */
    .contact-services-slider .buzz-circle {
        width: 120px !important;
        height: 120px !important;
        padding: 10px !important;
    }

    .contact-services-slider .buzz-circle img {
        width: 30px !important;
        margin-bottom: 5px !important;
    }

    .contact-services-slider .buzz-circle h3 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .contact-services-slider .buzz-circle .plus-icon {
        font-size: 14px !important;
        margin-top: 5px !important;
    }
}
