/* Schedule Demo — unique split-panel modal */
#freeDemoModal .modal-dialog {
    max-width: 920px;
    margin: 1rem auto;
}

#freeDemoModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
}

.ld-demo-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 520px;
}

/* Left panel */
.ld-demo-aside {
    background: linear-gradient(160deg, #0f2744 0%, #0c3d5c 50%, #0077b6 100%);
    padding: 36px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ld-demo-aside::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 260px;
    height: 260px;
    background: rgba(0, 175, 240, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.ld-demo-aside::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.ld-demo-aside-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ld-demo-aside-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.ld-demo-aside-badge i {
    color: #00aff0;
}

.ld-demo-aside h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ld-demo-aside > .ld-demo-aside-inner > p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 28px;
}

.ld-demo-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.ld-demo-perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 14px;
    line-height: 1.45;
}

.ld-demo-perks li i {
    color: #00aff0;
    margin-top: 3px;
    flex-shrink: 0;
}

.ld-demo-aside-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.ld-demo-aside-footer strong {
    display: block;
    color: #00aff0;
    font-size: 13px;
    margin-bottom: 4px;
}

/* Right panel — form */
.ld-demo-main {
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ld-demo-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 0;
    flex-shrink: 0;
}

.ld-demo-main-header h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ld-demo-main-header span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ld-demo-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-demo-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.ld-demo-scroll {
    overflow-y: auto;
    padding: 20px 28px 28px;
    flex: 1;
}

/* Error summary */
.ld-demo-summary {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ld-demo-summary.show {
    display: block;
}

.ld-demo-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 8px;
}

.ld-demo-summary ul {
    margin: 0;
    padding-left: 18px;
}

.ld-demo-summary li {
    font-size: 12px;
    color: #991b1b;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Form sections */
.ld-demo-section {
    margin-bottom: 24px;
}

.ld-demo-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.ld-demo-section-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f7fd;
    color: #00aff0;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-demo-section-head h6 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ld-demo-grid {
    display: grid;
    gap: 16px;
}

.ld-demo-grid--2 { grid-template-columns: 1fr 1fr; }
.ld-demo-grid--3 { grid-template-columns: 1fr 1fr 1fr; }

.ld-demo-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ld-demo-field label .req {
    color: #ef4444;
    margin-left: 2px;
}

.ld-demo-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ld-demo-control:focus {
    border-color: #00aff0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.12);
}

.ld-demo-control.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ld-demo-control.is-valid {
    border-color: #22c55e;
    background: #fff;
}

.ld-demo-control::placeholder {
    color: #94a3b8;
}

textarea.ld-demo-control {
    min-height: 72px;
    resize: vertical;
}

select.ld-demo-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ld-demo-error {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #dc2626;
    margin-top: 5px;
    font-weight: 600;
}

.ld-demo-error.show {
    display: flex;
}

.ld-demo-error::before {
    content: '\f06a';
    font-family: FontAwesome;
    font-size: 11px;
}

/* Document upload */
.ld-demo-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.ld-demo-upload-box:hover,
.ld-demo-upload-box.is-dragover {
    border-color: #00aff0;
    background: #f0f9ff;
}

.ld-demo-upload-box.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.ld-demo-upload-box.has-file {
    border-color: #22c55e;
    border-style: solid;
    background: #f0fdf4;
}

.ld-demo-upload-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e8f7fd;
    color: #00aff0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.ld-demo-upload-box.has-file .ld-demo-upload-icon {
    background: #dcfce7;
    color: #16a34a;
}

.ld-demo-upload-box p {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px;
}

.ld-demo-upload-box span {
    font-size: 12px;
    color: #94a3b8;
}

.ld-demo-upload-box input[type="file"] {
    display: none;
}

.ld-demo-file-preview {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    text-align: left;
}

.ld-demo-file-preview.show {
    display: flex;
}

.ld-demo-file-preview i {
    color: #16a34a;
    font-size: 18px;
}

.ld-demo-file-preview .name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    word-break: break-all;
}

.ld-demo-file-preview .remove {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.ld-demo-file-preview .remove:hover {
    color: #ef4444;
}

/* Footer actions */
.ld-demo-footer {
    padding: 16px 28px 22px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
}

.ld-demo-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ld-demo-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.ld-demo-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00aff0, #0077b6);
    border-radius: 100px;
    transition: width 0.35s ease;
}

.ld-demo-progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.ld-demo-actions {
    display: flex;
    gap: 10px;
}

.ld-demo-submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #00aff0 0%, #0077b6 100%);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(0, 175, 240, 0.3);
}

.ld-demo-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 175, 240, 0.4);
}

.ld-demo-submit:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.ld-demo-cancel {
    padding: 13px 22px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.ld-demo-cancel:hover {
    border-color: #cbd5e1;
    color: #334155;
}

@media (max-width: 767px) {
    #freeDemoModal .modal-dialog {
        max-width: calc(100% - 16px);
        margin: 8px auto;
    }

    .ld-demo-shell {
        grid-template-columns: 1fr;
    }

    .ld-demo-aside {
        padding: 24px 20px;
    }

    .ld-demo-perks {
        display: none;
    }

    .ld-demo-grid--2,
    .ld-demo-grid--3 {
        grid-template-columns: 1fr;
    }

    .ld-demo-scroll,
    .ld-demo-main-header,
    .ld-demo-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ld-demo-actions {
        flex-direction: column;
    }
}
