/* Redesigned Book Demo Modal Styles */

#bookDemoModal .modal-dialog {
    max-width: 1040px;
}

#bookDemoModal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
    background: #0f1522;
    background-clip: padding-box;
    box-shadow: 0 18px 60px -10px rgba(15, 21, 34, .55), 0 8px 24px -6px rgba(15, 21, 34, .35);
}

/* Left Panel */
.modal-info.gradient-panel {
    width: 46%;
    padding: 52px 48px 56px;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gradient-panel {
    background: radial-gradient(circle at 18% 24%, #4f9bff 0%, #2f5bff 42%, #142449 100%);
}

.gradient-panel:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.brand-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 28px;
}

.brand-cluster .tagline {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.modal-info h2 {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    background: linear-gradient(90deg, #fff, #d7e9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-info .lead-copy {
    font-size: 1rem;
    line-height: 1.55;
    color: #ffffff;
    opacity: 1;
    margin-bottom: 28px;
}

.info-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    font-weight: 500;
    background: rgba(255, 255, 255, .07);
    padding: 10px 14px 10px 12px;
    border-radius: 14px;
    position: relative;
    backdrop-filter: blur(4px);
}

.info-features li i {
    font-size: 1.15rem;
    color: #fff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}

.info-features li span {
    flex: 1;
}

.trust-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 18px;
}

.badge-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.04) contrast(1.04);
    background: #fff;
    padding: 6px 12px;
    border-radius: 14px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35);
    transition: .35s cubic-bezier(.4, .2, .2, 1);
}

.badge-img:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .42);
}

.privacy-note {
    font-size: .7rem;
    opacity: .65;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.privacy-note i {
    font-size: .85rem;
}

/* Floating shapes for subtle motion */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .16;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
    animation: float 12s linear infinite;
}

.floating-shape.shape-1 {
    width: 180px;
    height: 180px;
    top: 8%;
    right: -40px;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 14%;
    left: -30px;
    animation-delay: 3s;
}

.floating-shape.shape-3 {
    width: 90px;
    height: 90px;
    bottom: 4%;
    right: 8%;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Right Panel / Form */
.modal-form-container.glass-panel {
    width: 54%;
    position: relative;
    padding: 54px 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Lightened background */
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

#bookDemoModal .btn-close {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 30;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .92);
    border: 2px solid rgba(15, 21, 34, .15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: .35s cubic-bezier(.4, .2, .2, 1);
    color: #0f1522;
    font-weight: 600;
    box-shadow: 0 6px 16px -4px rgba(15, 21, 34, .28), 0 2px 6px -2px rgba(15, 21, 34, .25);
}

#bookDemoModal .btn-close:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(15, 21, 34, .38), 0 3px 10px -3px rgba(15, 21, 34, .3);
}

#bookDemoModal .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(79, 107, 255, .45), 0 6px 16px -4px rgba(15, 21, 34, .28);
}

#bookDemoModal .btn-close:active {
    transform: translateY(0);
}

#bookDemoModal .btn-close::before {
    content: '\2715';
    font-size: 18px;
    line-height: 1;
}

#bookDemoModal .btn-close span,
#bookDemoModal .btn-close svg {
    display: none;
}

#bookDemoModal .modal-body {
    padding: 0;
}

/* Form Elements */
#demo-form {
    width: 100%;
}

#demo-form .form-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    color: #10192c;
}

#demo-form .form-intro {
    font-size: .95rem;
    margin: 0 0 32px;
    color: #4b5567;
}

#demo-form .ud-form-group {
    position: relative;
    margin-bottom: 22px;
}

#demo-form .ud-form-group.with-icon input,
#demo-form .ud-form-group.with-icon textarea {
    padding-left: 46px;
}

#demo-form .ud-form-group .input-icon {
    position: absolute;
    top: 38px;
    left: 14px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5575ff;
    opacity: .9;
}

#demo-form .ud-form-group.textarea-group .input-icon {
    top: 44px;
}

#demo-form .ud-form-group label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

#demo-form input,
#demo-form textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d9e2f2;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: .95rem;
    line-height: 1.35;
    color: #1e293b;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

#demo-form textarea {
    resize: vertical;
    min-height: 120px;
}

#demo-form input:focus,
#demo-form textarea:focus {
    outline: none;
    border-color: #4f6bff;
    box-shadow: 0 0 0 3px rgba(79, 107, 255, .25);
}

#demo-form input.is-invalid,
#demo-form textarea.is-invalid {
    border-color: #e03131;
    background: #fff5f5;
}

#demo-form input.is-valid,
#demo-form textarea.is-valid {
    border-color: #2f9e44;
    background: #f3fff6;
}

/* Submit Button */
.btn-gradient {
    --start: #4f9bff;
    --mid: #385bff;
    --end: #7f5bff;
    background: linear-gradient(92deg, var(--start), var(--mid) 52%, var(--end));
    color: #fff;
    font-weight: 600;
    border: 0;
    padding: 16px 26px;
    font-size: 1.05rem;
    border-radius: 16px;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -8px rgba(47, 91, 255, .55), 0 4px 12px -6px rgba(47, 91, 255, .45);
    transition: .4s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -12px rgba(47, 91, 255, .65), 0 6px 14px -6px rgba(47, 91, 255, .55);
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-gradient.loading {
    cursor: wait;
}

.btn-gradient .btn-loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-gradient.loading .btn-loader {
    display: inline-flex;
}

.btn-gradient.loading .btn-text {
    opacity: .55;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.trust-caption {
    color: #5c6c85;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 12px;
}

/* Logo */
.modal-logo {
    width: 118px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}

/* Accessibility focus */
#demo-form input:focus-visible,
#demo-form textarea:focus-visible {
    outline: 2px solid #4f6bff;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1100px) {
    #bookDemoModal .modal-dialog {
        max-width: 94%;
    }
}

@media (max-width: 992px) {
    .modal-info.gradient-panel {
        width: 42%;
        padding: 42px 34px;
    }

    .modal-form-container.glass-panel {
        width: 58%;
        padding: 48px 42px 56px;
    }

    .modal-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 820px) {
    #bookDemoModal .modal-content {
        flex-direction: column;
    }

    .modal-info.gradient-panel,
    .modal-form-container.glass-panel {
        width: 100%;
    }

    .modal-info.gradient-panel {
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        padding: 44px 40px 36px;
    }

    .modal-form-container.glass-panel {
        padding: 46px 40px 56px;
    }

    .trust-row {
        order: 10;
    }

    /* Reorder: show form first, info after on mobile */
    .modal-form-container.glass-panel {
        order: 1;
    }

    .modal-info.gradient-panel {
        order: 2;
    }
}

@media (max-width: 600px) {
    .modal-info h2 {
        font-size: 1.85rem;
    }

    .brand-cluster .tagline {
        font-size: .68rem;
    }

    .modal-form-container.glass-panel {
        padding: 42px 30px 52px;
    }

    #demo-form .form-title {
        font-size: 1.7rem;
    }
}

/* (Removed mobile-intro-block styles reverted) */