/* modal.css */
.sz-demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10100;
    backdrop-filter: blur(10px);
}

.sz-demo-container {
    background: #072b61;
    /* Brand Dark Blue */
    width: 95%;
    max-width: 1000px;
    border-radius: 20px;
    padding: 50px 60px;
    position: relative;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
}

.sz-demo-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sz-demo-close:hover {
    transform: rotate(90deg);
}

.sz-demo-title {
    font-size: 32px;
    font-weight: 700;
    color: #8cd1ff;
    margin-bottom: 50px;
    margin-top: 0;
}

.sz-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
}

.sz-demo-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Floating label groups */
.sz-demo-float-group,
.sz-demo-dropdown-box {
    position: relative;
}

.sz-demo-float-group label,
.sz-static-label {
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s;
    pointer-events: none;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

/* Static labels for dropdowns (Country/City) */
.sz-static-label {
    top: -25px;
    font-size: 18px;
    color: #fff;
}

.sz-demo-float-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #fff;
    background: transparent;
    padding: 10px 0;
    color: #fff;
    outline: none;
    font-size: 18px;
    height: 45px;
}

/* Floating label movement */
.sz-demo-float-group input:focus+label,
.sz-demo-float-group input:not(:placeholder-shown)+label {
    top: -25px;
    font-size: 18px;
    color: #fff;
}

/* Select2 "Line" style customization */
.sz-demo-container .select2-container--default .select2-selection--single {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #fff !important;
    border-radius: 0 !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.sz-demo-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    font-size: 18px !important;
    padding-left: 0 !important;
}

.sz-demo-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
    right: 0 !important;
}

.sz-demo-container .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
    border-width: 7px 7px 0 7px !important;
}

.sz-demo-star {
    color: #8cd1ff;
    margin-left: 5px;
}

/* Submit Button Logic */
.sz-demo-submit-wrap {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.sz-demo-submit-btn {
    background: linear-gradient(to bottom, #8cd1ff, #3775ff);
    color: #fff;
    font-size: 24px;
    padding: 10px 60px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    /* Perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sz-demo-submit-btn:hover {
    color: #132880;
    /* Blue text on hover */
}

@media (max-width: 900px) {
    .sz-demo-container {
        padding: 40px 30px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .sz-demo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Select2 Dropdown Customization */
.sz-demo-overlay .select2-dropdown {
    background-color: #073b72 !important;
    /* Brand Dark Blue */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.sz-demo-overlay .select2-results__option {
    color: #fff !important;
    background-color: transparent !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    transition: background 0.2s ease;
}

/* Hover/Selected state */
.sz-demo-overlay .select2-results__option--highlighted[aria-selected],
.sz-demo-overlay .select2-results__option[aria-selected="true"] {
    background-color: #3775ff !important;
    /* Accent Blue */
    color: #fff !important;
}

/* Search input inside dropdown */
.sz-demo-overlay .select2-search--dropdown {
    padding: 15px !important;
    background: #05264a !important;
    /* Deeper blue for search area */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sz-demo-overlay .select2-search--dropdown .select2-search__field {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    outline: none !important;
}

.sz-demo-overlay .select2-search--dropdown .select2-search__field:focus {
    border-color: #8cd1ff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Fix for dropdown positioning and scrollbar */
.sz-demo-overlay .select2-results__options {
    max-height: 250px !important;
}

.sz-demo-overlay .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.sz-demo-overlay .select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Ensure container doesn't clip dropdown */
.sz-demo-column {
    overflow: visible !important;
}


/* Royal Blue Glass Design System - Ultra Premium */
:root {
    --brand-blue: #073b72;
    --brand-blue-deep: #05264a;
    --brand-blue-light: #8cd1ff;
    --glass-bg: rgba(7, 59, 114, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-pure: #ffffff;
    --text-info: rgba(255, 255, 255, 0.8);
    --accent-glow: #3775ff;
}

.webinar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 14, 33, 0.88);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.webinar-modal-overlay.active {
    opacity: 1;
}

.webinar-modal-container {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    width: 90%;
    max-width: 1050px;
    border-radius: 35px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    display: flex;
    position: relative;
    max-height: 88vh;
    transform: scale(0.92) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.webinar-modal-overlay.active .webinar-modal-container {
    transform: scale(1) translateY(0);
}

/* Moving Blue Atmosphere */
.webinar-modal-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(55, 117, 255, 0.15) 0%, transparent 60%);
    animation: rotateAtmosphere 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotateAtmosphere {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.webinar-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.webinar-modal-close:hover {
    background: #fff;
    color: var(--brand-blue);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.webinar-modal-content {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 5;
}

.webinar-modal-left {
    width: 40%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(26 48 140 / 75%);
    border-right: 1px solid var(--glass-border);
}

.webinar-hero-image {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    }

    50% {
        transform: translateY(-15px) scale(1.03);
        filter: drop-shadow(0 40px 60px rgba(55, 117, 255, 0.3));
    }
}

.webinar-modal-right {
    width: 60%;
    padding: 0;
    /* Changed from 60px 70px to 0 for sticky to work correctly */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #132880;
    position: relative;
}

.webinar-modal-right>* {
    padding-left: 70px;
    padding-right: 70px;
    padding-bottom: 30px;
}

.webinar-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    padding-top: 60px;
    padding-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    background: #132880;
    /* Match parent bg */
    z-index: 10;
    /* Add a subtle fade at the bottom of the sticky area */
    box-shadow: 0 10px 30px rgba(19, 40, 128, 0.95);
}

.guide-subtitle {
    font-size: 19px;
    color: var(--brand-blue-light);
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    background: #132880;
    position: sticky;
    top: 80px;
    /* Adjust based on title height */
    z-index: 9;
    padding-bottom: 20px;
    box-shadow: 0 15px 30px rgba(19, 40, 128, 0.95);
}

.webinar-text {
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff !important;
    margin-bottom: 30px;
    opacity: 0.95;
    padding-top: 10px;
}

/* Explicitly fix paragraph visibility in Guide and News */
.webinar-modal-right p,
.guide-section p,
.news-item p {
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
}

.webinar-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 25px;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.webinar-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.webinar-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-blue-light);
    box-shadow: 0 0 20px rgba(140, 209, 255, 0.3);
    outline: none;
}

.webinar-cta-btn {
    width: 100%;
    padding: 20px;
    background: var(--brand-blue-light);
    color: var(--brand-blue-deep);
    border-radius: 15px;
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.webinar-cta-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Style */
.webinar-modal-right::-webkit-scrollbar {
    width: 5px;
}

.webinar-modal-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Content Specifics */
.guide-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.guide-section h5 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.guide-list li {
    font-size: 17px;
    color: #ffffff !important;
    margin-bottom: 12px;
    list-style: none;
    padding-left: 25px;
    position: relative;
    opacity: 1;
}

.guide-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-blue-light);
    font-weight: 900;
}

.outcome-box {
    background: rgba(140, 209, 255, 0.15);
    padding: 18px 25px;
    border-radius: 12px;
    margin-top: 25px;
    color: var(--brand-blue-light);
    font-size: 15px;
    font-weight: 600;
    border-left: 4px solid var(--brand-blue-light);
}

.guide-tag {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--brand-blue-light);
    color: var(--brand-blue-deep);
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
}

.news-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--brand-blue-light);
    transition: 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.news-date {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-blue-light);
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 900px) {
    .webinar-modal-container {
        flex-direction: column;
        max-height: 92vh;
    }

    .webinar-modal-left {
        width: 100%;
        height: 180px;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .webinar-modal-right {
        width: 100%;
        padding: 30px 25px;
    }

    .webinar-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {

    .news-scroll-content,
    .guide-scroll-area {
        max-height: 350px;
    }
}

/* White Paper Modal Specific Styles */
.whitepaper-modal,
.whitepaper-modal * {
    box-sizing: border-box;
}

.whitepaper-modal {
    width: 95% !important;
    max-width: 800px !important;
    background: #072b61 !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    /* Ensure nothing leaks out */
}

.whitepaper-content {
    flex-direction: column !important;
    width: 100%;
}

.whitepaper-scroll-area {
    padding: 40px 50px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    box-sizing: border-box;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

/* WebKit Custom Thin Scrollbar */
.whitepaper-scroll-area::-webkit-scrollbar {
    width: 6px;
    display: block;
    /* Ensure it's visible */
}

.whitepaper-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.whitepaper-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.whitepaper-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .whitepaper-scroll-area {
        padding: 30px 20px;
    }
}

.wp-image-stack {
    position: relative;
    width: 100%;
    height: 350px;
    margin-top: -30px;
}

.wp-image-1 {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 65%;
    z-index: 1;
}

.wp-image-1 img {
    /* width: 300px; */
    height: auto;
    border-radius: 4px;
    width: 300px;
    position: relative;
    right: 60px;
    top: 10px;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); */
}

.wp-image-2 img {
    /* width: 300px; */
    height: auto;
    border-radius: 4px;
    width: 300px;
    position: relative;
    right: 60px;
    bottom: 50px;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); */
}

.wp-image-2 {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    z-index: 2;
}

/* .wp-image-2 img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
} */

.whitepaper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
    width: 100%;
}

.whitepaper-header-left {
    flex: 1;
    min-width: 0;
    /* Prevents flex children from overflowing */
}

.wp-logo-area {
    margin-bottom: 25px;
}

.whitepaper-logo {
    width: 250px;
    margin-bottom: 25px;
}

.whitepaper-main-title {
    font-size: 52px;
    font-weight: 900;
    color: #fff !important;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.whitepaper-subtitle {
    font-size: 19px;
    color: #8cd1ff !important;
    margin-top: 20px;
    font-weight: 600;
    line-height: 1.5;
    opacity: 1;
    background: transparent !important;
    position: static !important;
    padding: 0 !important;
    box-shadow: none !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.whitepaper-header-right {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whitepaper-top-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
}

.whitepaper-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #fff !important;
    margin-bottom: 45px;
    opacity: 0.95;
}

.whitepaper-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.whitepaper-list {
    list-style: none;
    padding: 0;
    margin-bottom: 45px;
}

.whitepaper-list li {
    font-size: 15px;
    color: #fff !important;
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.whitepaper-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8cd1ff;
    font-weight: 900;
    font-size: 22px;
    top: -2px;
}

.whitepaper-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 50px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.whitepaper-footer-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 35px;
    text-align: center;
}

.whitepaper-form-wrap {
    max-width: 450px;
    margin: 0 auto;
}

.whitepaper-input {
    text-align: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    height: 55px;
}

.whitepaper-submit-btn {
    background: linear-gradient(to right, #3498db, #2980b9) !important;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.whitepaper-submit-btn:hover {
    background: linear-gradient(to right, #2980b9, #3498db) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.5);
}

@media (max-width: 900px) {
    .whitepaper-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .whitepaper-header-left,
    .whitepaper-header-right {
        width: 100%;
    }

    .whitepaper-header-right {
        margin-top: 20px;
    }

    .whitepaper-top-img {
        max-width: 300px;
        margin: 0 auto;
        transform: none;
    }

    .whitepaper-logo {
        margin: 0 auto 20px;
    }

    .whitepaper-main-title {
        font-size: 42px;
    }
}