/* Fonts handled via wp_enqueue_style in PHP */

/* --- WRAPPER (Blue BG) --- */
.ids-wrapper {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, #2c5ba3 0%, #1e3c66 100%);
    /* Adjusted gradient center to left */
    font-family: 'Outfit', sans-serif !important;
    color: #fff;
    /* Global White Text Default */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all children inherit the font */
.ids-wrapper * {
    font-family: 'Outfit', sans-serif !important;
}

/* --- SHARED HERO IMAGE (LEFT) --- */
/* Stays on the left side always */
.ids-hero-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 45vw;
    /* Fixed width (~45%) */
    height: 100vh;
    background-size: cover;
    background-position: center top;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 20;
    transition: width 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.ids-wrapper.ids-mode-active .ids-hero-image {
    width: 40vw;
    /* Slight shrink to active sidebar width? Or keep same? Let's go 40vw for sidebar std */
}

.ids-panel-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 1s;
}

.ids-wrapper.ids-mode-active .ids-panel-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ids-panel-name {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 48, 135, 0.8);
    padding: 10px 25px;
    border-radius: 4px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* --- LANDING LAYER (RIGHT) --- */
.ids-landing-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 55vw;
    /* Occupy Right Side */
    height: 100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ids-wrapper.ids-mode-active .ids-landing-layer {
    opacity: 0;
    pointer-events: none;
    /* transform: translateY(-20px);  Optional fade up */
}

/* Landing Content Centered in Right Panel */
.ids-landing-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally in right panel */
    padding: 0 50px;
    width: 100%;
}

.ids-landing-text {
    max-width: 600px;
    text-align: left;
    /* Text aligns left within its block, block is centered */
}

.ids-landing-pre {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 1;
    display: block;
    text-transform: lowercase;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff !important;
}

.ids-landing-name {
    font-size: 5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #fff !important;
}

.ids-landing-title {
    font-size: 3.5rem;
    font-weight: 300;
    opacity: 1;
    margin: 0 0 50px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff !important;
}

#ids-enter-site-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.ids-mobile-helper {
    display: none;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
    margin-top: 15px;
    font-weight: 300;
    line-height: 1.4;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

#ids-enter-site-btn:hover {
    background: #fff;
    color: #003087;
    border-color: #fff;
}

/* --- BOTTOM BLOCKS (Full Width, on top of everything) --- */
.ids-info-blocks {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55vw;
    /* Match Right Panel Width */
    height: 200px;
    /* Taller */
    display: flex;
    z-index: 35;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.ids-wrapper.ids-mode-active .ids-info-blocks {
    transform: translateY(100%);
    /* Slide Down/Out */
}

.ids-info-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
}

.ids-info-block.white {
    background: #F8F9FA;
    color: #231f20;
}

.ids-info-block.blue {
    background: #151e32;
    color: #fff;
}

a.ids-info-block {
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

a.ids-info-block:hover {
    transform: translateY(-3px) !important;
    filter: brightness(110%);
}

.ids-ib-icon img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Larger icon for featured (blue) block */
.ids-info-block.blue .ids-ib-icon img {
    height: 80px;
}

.ids-ib-text {
    display: flex;
    flex-direction: column;
}

.ids-ib-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: lowercase;
    margin-bottom: 5px;
}

.ids-ib-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}


/* --- MAIN APP CONTENT (Replacing Landing on Right) --- */
.ids-main-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vw;
    /* Take up 60% (Hero moves to 40%) */
    height: 100%;
    z-index: 10;
    /* Below Landing initially */
    background: #F8F9FA;
    opacity: 0;
    pointer-events: none;
    /* No slide, just fade in? Or slide up? */
    /* Let's do a subtle scale/fade to feel like it's taking place */
    transform: scale(0.95);
    transition: all 0.8s ease 0.4s;
    /* Delay slightly */
}

.ids-wrapper.ids-mode-active .ids-main-content {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.ids-right-panel-inner {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    color: #333;
    /* Reset text color for app content */
    position: relative;
}

#ids-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    color: #768692;
    cursor: pointer;
    z-index: 200;
    transition: color 0.3s ease, transform 0.3s ease;
}

#ids-close-btn:hover {
    color: #003087;
    transform: rotate(90deg);
}

/* --- 3D Gallery --- */
.ids-coverflow-swiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 80px;
    overflow: hidden;
    perspective: 1200px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    /* Much larger */
    height: 400px;
    /* Landscape */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-radius: 16px;
    /* Deep shadow for pop */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    /* Glass border effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Modern reflection */
    -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Dim inactive slides for focus */
.swiper-slide:not(.swiper-slide-active) {
    filter: brightness(0.4) saturate(0);
}

.swiper-slide-active {
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.8);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    /* Slightly less than container to fit border */
}

/* Dark theme for gallery overlay with glassmorphism */
#ids-overlay-content:has(.ids-coverflow-swiper) {
    background: radial-gradient(circle at center, #2c3e50 0%, #1a252f 100%);
    backdrop-filter: blur(20px) saturate(180%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .swiper-slide {
        width: 450px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .swiper-slide {
        width: 300px;
        height: 250px;
    }
}

/* --- NAVIGATION: Suspended Glass Rail (2026 World Class) --- */
.ids-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    /* Connected Rail */
    margin: 0 auto 80px auto;
    /* Increased Padding as requested */
    padding: 5px;
    position: sticky;
    /* Fixed access while scrolling */
    top: 20px;
    z-index: 100;

    /* The Rail Look */
    background: rgba(255, 255, 255, 0.98);
    /* Almost solid to hide scroll content */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 100px;
    /* Full Rail */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Crisp edge */

    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ids-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Nav Item */
.ids-nav-btn {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    /* Bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95a5a6;
    cursor: pointer;
    padding: 16px 32px;
    /* Generous touch */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    font-family: 'Outfit', sans-serif;
    position: relative;
    white-space: nowrap;
}

/* Hover State */
.ids-nav-btn:hover {
    color: #4a5c60;
    background: rgba(0, 0, 0, 0.02);
}

/* Active State - High Contrast Pill */
.ids-nav-btn.active {
    color: #fff;
    background: #005EB8;
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.3);
    transform: scale(1.05);
}

.ids-nav-btn.active:hover {
    color: #fff;
    background: #005EB8;
}

/* Remove old underline */
.ids-nav-btn.active::after {
    display: none;
}

/* --- CONTENT AREA UX (Divi Compatible Card) --- */
.ids-tabs-wrapper {
    position: relative;
    width: 100%;
    /* Create a polished stage for the content */
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    min-height: 500px;
    /* Establishes presence */
    padding: 40px;
    /* Internal breathing room */
    /* Fade In Animation for Content Switch */
    transition: opacity 0.3s ease;
}

/* Ensure Divi Layouts are full width within the padding */
.ids-tab-content {
    animation: fadeUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- COPYRIGHT FOOTER (Desktop) --- */
.ids-desktop-footer {
    margin-top: auto;
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    opacity: 0.8;
}

.ids-desktop-footer p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.ids-footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.ids-footer-links a {
    font-size: 0.8rem;
    color: #b0bec5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ids-footer-links a:hover {
    color: #005EB8;
}

/* Mobile Bottom Bar (Hidden Desktop) */
#ids-mobile-bottom-bar,
#ids-mobile-active-header {
    display: none;
}

#ids-mobile-nav-wrapper {
    display: none;
    /* Desktop default */
}

/* Dropdown Container */
#ids-mobile-nav-wrapper {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ids-mobile-nav-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #768692;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ids-mobile-select-container {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ids-mobile-select-container:active {
    transform: scale(0.98);
}

#ids-mobile-nav-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    font-size: 1.1rem;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #003087;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    outline: none;
    height: 100%;
}

.ids-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #003087;
    border-bottom: 2px solid #003087;
    transform: translateY(-65%) rotate(45deg);
    /* Chevron */
    pointer-events: none;
}


/* --- TABS & CONTENT --- */
.ids-tab-content {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.ids-tab-content.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.ids-tab-heading {
    font-size: 2.2rem;
    color: #005EB8;
    margin-bottom: 30px;
    font-weight: 700;
}

.ids-typing-header {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #231f20;
}

#ids-typing-target {
    color: #005EB8;
}

.ids-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ids-service-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8edee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ids-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 94, 184, 0.15);
    border-color: #005EB8;
}

.ids-service-icon {
    width: 60px;
    height: 60px;
    background-size: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ids-service-card h4 {
    margin: 0 0 15px 0;
    color: #003087;
    font-size: 1.3rem;
}

.ids-service-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* MAPS */
.ids-map-view {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #eee;
}

/* Responsive */
/* Responsive */
/* --- MOBILE RESPONSIVENESS (Consolidated) --- */
@media (max-width: 900px) {

    /* 1. Hero / Landing Adjustments */
    .ids-hero-image {
        width: 100% !important;
        height: 45vh !important;
        left: 0 !important;
        top: 0 !important;
        background-position: center 35% !important;
    }

    .ids-landing-layer {
        top: 45vh;
        width: 100%;
        height: 55vh;
        display: block;
        overflow-y: auto;
        padding-bottom: 40px;
    }

    .ids-landing-content {
        display: block;
        padding: 30px 20px;
        width: 100%;
        height: auto;
    }

    .ids-info-blocks {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        bottom: auto;
        margin-top: 30px;
        z-index: 35;
    }

    .ids-info-block {
        padding: 20px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: flex-start;
    }

    .ids-info-block.blue {
        border-bottom: none;
    }

    .ids-landing-text {
        padding: 0;
        text-align: center;
        max-width: 100%;
    }

    .ids-landing-name {
        font-size: 3rem;
    }

    #ids-enter-site-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .ids-mobile-helper {
        display: block !important;
    }

    .ids-wrapper.ids-mode-active .ids-hero-image {
        display: none !important;
    }

    #ids-close-btn {
        display: none !important;
    }

    /* 2. Mobile App Shell (Overrides Desktop) */
    body,
    html {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .ids-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100vw !important;
        overflow: hidden !important;
    }

    .ids-main-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: 140px !important;
        padding-bottom: 120px !important;
        box-sizing: border-box;
        z-index: 50;
        background: #F8F9FA;
    }

    /* Header */
    .ids-wrapper.ids-mode-active #ids-mobile-active-header {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 110px;
        background: radial-gradient(circle at 30% 30%, #2c5ba3 0%, #1e3c66 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: 15px;
    }

    .ids-mobile-header-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
    }

    .ids-mobile-avatar {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .ids-mobile-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #ids-mobile-contact-btn,
    #ids-mobile-home-btn {
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

    #ids-mobile-contact-btn {
        right: 20px;
    }

    #ids-mobile-home-btn {
        left: 20px;
    }

    #ids-mobile-contact-btn:active {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(0.95);
    }

    #ids-mobile-home-btn:active {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(0.95);
    }

    #ids-mobile-contact-btn svg,
    #ids-mobile-home-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Bottom Bar */
    #ids-mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 80px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 99999;
        align-items: center;
        justify-content: space-around;
        box-sizing: border-box;
    }

    .ids-nav {
        display: none !important;
    }

    .ids-desktop-footer {
        display: none !important;
    }

    /* Content Tweaks */
    .ids-right-panel-inner {
        padding: 0 !important;
    }

    .ids-tabs-wrapper {
        padding: 20px !important;
        border-radius: 16px;
    }

    .ids-contact-wrapper {
        padding: 0;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ids-contact-welcome h3 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .ids-contact-type-switch {
        margin: 20px 0;
        background: #F0F2F5;
        padding: 6px;
        border-radius: 16px;
        height: 60px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .ids-switch-btn {
        font-size: 1.1rem;
        z-index: 5;
    }

    .ids-switch-bg {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .ids-fields-group {
        background: transparent;
        border: none;
        gap: 20px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .ids-form-row {
        background: #FFFFFF;
        border-radius: 20px;
        margin: 0;
        padding: 0;
        height: 75px;
        display: flex;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        border: 2px solid transparent;
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .ids-form-row:focus-within {
        border-color: #005EB8;
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 94, 184, 0.15);
    }

    .ids-row-icon {
        width: 60px;
        height: 100%;
        color: #005EB8;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 94, 184, 0.04);
        border-radius: 20px 0 0 20px;
        flex-shrink: 0;
    }

    .ids-row-icon svg {
        width: 28px;
        height: 28px;
    }

    .ids-form-row input,
    .ids-form-row textarea {
        height: 100%;
        text-align: center;
        font-size: 1.3rem !important;
        font-weight: 500;
        padding: 0 15px 0 0;
        border-radius: 0 20px 20px 0;
        color: #111;
        width: 100%;
    }

    .ids-form-row textarea {
        text-align: left;
        padding: 20px;
        min-height: 150px;
        font-size: 1.2rem !important;
    }

    .ids-form-row:has(textarea) {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .ids-form-row:has(textarea) .ids-row-icon {
        width: 100%;
        height: 50px;
        border-radius: 20px 20px 0 0;
        background: #F8FAFB;
    }

    .ids-form-row:has(textarea) textarea {
        border-radius: 0 0 20px 20px;
        text-align: center;
    }

    .ids-submit-btn {
        width: 100%;
        margin: 30px 0;
        padding: 22px;
        border-radius: 25px;
        font-size: 1.4rem;
        font-weight: 800;
        box-shadow: 0 15px 40px rgba(0, 48, 135, 0.4);
    }

    .ids-mobile-bar-item {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: #999;
        transition: all 0.2s ease;
        padding-top: 5px;
    }

    .ids-mobile-bar-item.active {
        color: #003087;
    }

    .ids-bar-icon svg {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .ids-mobile-bar-item.active .ids-bar-icon svg {
        transform: translateY(-2px) scale(1.1);
    }

    .ids-bar-label {
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
}

/* --- OVERLAY STYLES (Global) --- */
#ids-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Mobile fix */
    background: #fff;
    z-index: 100000;
    /* Higher than everything */
    transform: translateY(101%);
    /* Start hidden */
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

#ids-overlay-container.active {
    transform: translateY(0);
}

#ids-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 50px;
    line-height: 1;
    color: #003087;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

#ids-overlay-close:hover {
    transform: rotate(90deg);
    color: #e63946;
}

#ids-overlay-content {
    flex: 1;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    /* Ensure it fills */
}

/* Loading State */
.ids-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #999;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Make overlay trigger cursor interact */
.ids-overlay-trigger {
    cursor: pointer;
}

/* --- CONTACT FORM STYLES --- */
.ids-contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Type Switcher */
.ids-contact-type-switch {
    display: flex;
    position: relative;
    background: #E8EDEE;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
    user-select: none;
}

.ids-contact-type-switch input {
    display: none;
}

.ids-switch-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    z-index: 2;
    cursor: pointer;
    font-weight: 600;
    color: #768692;
    transition: color 0.3s ease;
}

.ids-switch-bg {
    position: absolute;
    width: 50%;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    z-index: 1;
    top: 4px;
    left: 4px;
}

#type_private:checked~.ids-switch-bg {
    transform: translateX(100%);
}

#type_nhs:checked+label {
    color: #005EB8;
    /* NHS Blue */
}

#type_private:checked+label {
    color: #2c3e50;
    /* Private Dark */
}

/* Form Fields */
.ids-fields-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ids-form-row {
    position: relative;
}

.ids-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #231f20;
    font-size: 0.95rem;
}

.ids-form-row input,
.ids-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.ids-form-row input:focus,
.ids-form-row textarea:focus {
    border-color: #005EB8;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
    outline: none;
}

.ids-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.ids-submit-btn {
    background: linear-gradient(135deg, #005EB8 0%, #003087 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    /* Full width submit */
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 48, 135, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ids-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.3);
}

.ids-submit-btn:active {
    transform: translateY(1px);
}

/* Ensure Content Expands (Global) */
.ids-tabs-wrapper {
    height: auto !important;
    min-height: 500px;
    overflow: visible !important;
    display: block;
    padding-bottom: 60px;
    /* Extra buffer */
    box-sizing: border-box;
    flex-shrink: 0 !important;
}

.ids-tab-content {
    display: none;
    /* Hidden by default */
    width: 100%;
    height: auto !important;
    /* Force expansion */
    box-sizing: border-box;
}

.ids-tab-content.active {
    display: block;
    /* Shown when active */
    animation: fadeUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
}