/* ═══════════════════════════════════════════════════════════
   VMSGuru – Book a Demo Page Styles
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    height: 100%;
    overflow-y: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
}

/* ═══════════════ LAYOUT ═══════════════ */
.demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    overflow: hidden;
}

/* ═══════════════ LEFT PANEL ═══════════════ */
.d-left {
    background: linear-gradient(155deg, #1a2c4a 0%, #0f1e35 55%, #0b3a3a 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 36px 48px 36px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.d-left::-webkit-scrollbar {
    display: none;
}

.d-left::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(143, 180, 31, 0.16) 0%, transparent 65%);
    top: -120px;
    right: -130px;
    border-radius: 50%;
    pointer-events: none;
}

.d-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(143, 180, 31, 0.09) 0%, transparent 65%);
    bottom: 60px;
    left: -80px;
    border-radius: 50%;
    pointer-events: none;
}

.d-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    z-index: 2;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.d-logo em {
    color: #8fb41f;
    font-style: normal;
}

.d-left-body {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.d-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(143, 180, 31, 0.15);
    border: 1px solid rgba(143, 180, 31, 0.3);
    padding: 5px 12px;
    border-radius: 100px;
    color: #a8cf2f;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
    width: fit-content;
}

.d-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fb41f;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.d-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
}

.d-left h1 em {
    color: #8fb41f;
    font-style: normal;
}

.d-left>.d-left-body>p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 380px;
}

.d-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.d-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.d-bicon {
    width: 38px;
    height: 38px;
    background: rgba(143, 180, 31, 0.12);
    border: 1px solid rgba(143, 180, 31, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fb41f;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.d-btext strong {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.d-btext span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

/* Testimonial */
.d-testimonial {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid #8fb41f;
    border-radius: 14px;
    padding: 16px 18px 16px 20px;
    margin-bottom: 18px;
    position: relative;
}

.d-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.d-testimonial-stars i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.d-testimonial p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 12px;
    font-style: italic;
}

.d-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.d-testimonial-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8fb41f, #4a6612);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
}

.d-testimonial-info strong {
    display: block;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
}

.d-testimonial-info span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Social proof */
.d-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    margin-bottom: 20px;
}

.d-avatars {
    display: flex;
}

.d-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0f1e35;
    margin-left: -9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.d-av:first-child {
    margin-left: 0;
    background: linear-gradient(135deg, #8fb41f, #4a6612);
}

.d-av:nth-child(2) {
    background: linear-gradient(135deg, #2C3E5C, #121820);
}

.d-av:nth-child(3) {
    background: linear-gradient(135deg, #5a7a10, #2C3E5C);
}

.d-av:nth-child(4) {
    background: linear-gradient(135deg, #121820, #8fb41f);
}

.d-trust-text strong {
    display: block;
    color: white;
    font-size: 0.86rem;
    font-weight: 700;
}

.d-trust-text span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.73rem;
}

/* ═══════════════ RIGHT PANEL ═══════════════ */
.d-right {
    background: white;
    padding: 48px 56px 56px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.d-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.d-back:hover {
    color: #8fb41f;
}

.d-form-header {
    margin-bottom: 32px;
}

.d-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f1e35;
    margin-bottom: 6px;
}

.d-form-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Progress */
.d-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

.d-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

.d-progress-step.active {
    color: #8fb41f;
}

.d-progress-step.done {
    color: #0f1e35;
}

.d-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
}

.d-progress-step.active .d-progress-dot {
    border-color: #8fb41f;
    background: rgba(143, 180, 31, 0.1);
    color: #8fb41f;
}

.d-progress-step.done .d-progress-dot {
    border-color: #8fb41f;
    background: #8fb41f;
    color: white;
}

.d-progress-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 6px;
}

.d-progress-line.done {
    background: #8fb41f;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.f-full {
    margin-bottom: 18px;
}

.f-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.f-label .req {
    color: #ef4444;
    margin-left: 2px;
}

.f-label .opt {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.f-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.f-wrap input,
.f-wrap textarea,
.f-wrap select {
    width: 100%;
    padding: 12px 42px 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #0f1e35;
    transition: all 0.22s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.f-wrap textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.f-wrap input:focus,
.f-wrap textarea:focus,
.f-wrap select:focus {
    border-color: #8fb41f;
    background: white;
    box-shadow: 0 0 0 3px rgba(143, 180, 31, 0.12);
}

.f-wrap input.valid {
    border-color: #22c55e;
}

.f-wrap input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.f-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.2s;
}

.f-wrap textarea~.f-icon {
    top: 14px;
    transform: none;
}

.f-wrap:focus-within .f-icon {
    color: #8fb41f;
}

.f-check {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-size: 0.88rem;
    pointer-events: none;
    display: none;
}

input.valid~.f-check {
    display: block;
}

input.valid~.f-icon {
    display: none;
}

/* Phone prefix */
.phone-pre {
    background: #0f1e35;
    color: white;
    padding: 12px 13px;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.f-wrap.phone input {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

/* Platform chips */
.platform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.22s;
    cursor: default;
}

.platform-chips:focus-within {
    border-color: #8fb41f;
    box-shadow: 0 0 0 3px rgba(143, 180, 31, 0.12);
    background: white;
}

.chip-toggle {
    display: none;
}

.chip-label {
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: white;
}

.chip-toggle:checked+.chip-label {
    background: #0f1e35;
    border-color: #0f1e35;
    color: white;
}

/* Order count quick-select */
.order-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-btn {
    padding: 9px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.order-btn:hover {
    border-color: #8fb41f;
    color: #8fb41f;
}

.order-btn.sel {
    background: #0f1e35;
    border-color: #0f1e35;
    color: white;
}

/* Message toggle (legacy, kept for compat) */
.msg-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #8fb41f;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}

.msg-toggle-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.msg-toggle-btn.open i {
    transform: rotate(180deg);
}

/* Message and address always visible */
#msg-field {
    display: block;
}

/* Submit */
.d-submit-wrap {
    margin-top: 6px;
}

.d-submit {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #8fb41f 0%, #6b8a15 100%);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.28s;
    box-shadow: 0 6px 20px rgba(143, 180, 31, 0.35);
    letter-spacing: 0.01em;
}

.d-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(143, 180, 31, 0.45);
}

.d-submit:active {
    transform: translateY(0);
}

.d-submit-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.d-response-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.d-response-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.d-privacy {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.d-privacy i {
    color: #8fb41f;
}

/* Inline error */
.f-error {
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
    margin-top: 3px;
}

.f-error.show {
    display: block;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* ── Tablet: 961px–1200px ── */
@media (max-width: 1200px) and (min-width: 961px) {
    .d-left {
        padding: 36px 36px;
    }

    .d-right {
        padding: 36px 40px 56px;
    }

    .d-left h1 {
        font-size: 2rem;
    }
}

/* ── Stack layout at tablet ── */
@media (max-width: 960px) {

    html,
    body {
        height: auto;
        overflow-y: auto;
    }

    .demo-wrap {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .d-left {
        position: static;
        height: auto;
        min-height: auto;
        padding: 36px 32px 40px;
        overflow: visible;
    }

    .d-left h1 {
        font-size: 2rem;
    }

    .d-benefits {
        display: none;
    }

    .d-testimonial {
        margin-bottom: 20px;
    }

    .d-right {
        height: auto;
        overflow-y: visible;
        padding: 36px 32px 56px;
    }

    .d-progress-step {
        font-size: 0.75rem;
    }
}

/* ── Mobile: ≤ 640px ── */
@media (max-width: 640px) {

    .d-left::before,
    .d-left::after {
        display: none;
    }

    .d-left {
        padding: 28px 20px 32px;
    }

    .d-right {
        padding: 24px 16px 48px;
    }

    .d-logo {
        font-size: 1.45rem;
        margin-bottom: 20px;
    }

    .d-pill {
        font-size: 0.68rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .d-left h1 {
        font-size: 1.65rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .d-left>.d-left-body>p {
        font-size: 0.82rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .d-benefits {
        display: none;
    }

    .d-testimonial {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .d-testimonial p {
        font-size: 0.78rem;
    }

    .d-testimonial-info strong {
        font-size: 0.78rem;
    }

    .d-testimonial-info span {
        font-size: 0.68rem;
    }

    .d-trust {
        gap: 10px;
        margin-bottom: 0;
    }

    .d-av {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }

    .d-trust-text strong {
        font-size: 0.78rem;
    }

    .d-trust-text span {
        font-size: 0.66rem;
    }

    .d-form-header {
        margin-bottom: 20px;
    }

    .d-form-header h2 {
        font-size: 1.4rem;
    }

    .d-form-header p {
        font-size: 0.82rem;
    }

    .d-progress {
        margin-bottom: 24px;
    }

    .d-progress-step {
        font-size: 0.68rem;
        gap: 5px;
    }

    .d-progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .d-progress-line {
        margin: 0 4px;
    }

    .f-row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .f-full {
        margin-bottom: 14px;
    }

    .f-wrap input,
    .f-wrap textarea,
    .f-wrap select {
        padding: 13px 40px 13px 14px;
        font-size: 0.9rem;
    }

    .phone-pre {
        padding: 13px 11px;
        font-size: 0.8rem;
    }

    .platform-chips {
        gap: 6px;
        padding: 8px;
    }

    .chip-label {
        padding: 5px 10px;
        font-size: 0.73rem;
    }

    .order-btns {
        gap: 6px;
    }

    .order-btn {
        padding: 9px 12px;
        font-size: 0.78rem;
        flex: 1 1 calc(33.33% - 6px);
        text-align: center;
    }

    .d-submit {
        height: 52px;
        font-size: 0.95rem;
    }

    .d-submit-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 12px;
    }

    .d-back {
        margin-bottom: 20px;
    }
}

/* ── Very small phones: ≤ 380px ── */
@media (max-width: 380px) {
    .d-left {
        padding: 22px 16px 28px;
    }

    .d-right {
        padding: 20px 14px 44px;
    }

    .d-left h1 {
        font-size: 1.45rem;
    }

    .d-form-header h2 {
        font-size: 1.25rem;
    }

    .order-btn {
        padding: 8px 8px;
        font-size: 0.72rem;
    }

    .chip-label {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}
/* Component override styles to preserve marketing UI layout */
.f-wrap>div:not(.phone-pre) {
    flex: 1;
    width: 100%;
}

.f-wrap input,
.f-wrap textarea {
    background-color: #f8fafc !important;
    padding: 12px 42px 12px 15px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    min-height: 48px;
}

.f-wrap.phone input {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
}

.f-wrap input:focus,
.f-wrap textarea:focus {
    border-color: #8fb41f !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(143, 180, 31, 0.12) !important;
}

.f-wrap input.valid {
    border-color: #22c55e !important;
}

.f-wrap input.error,
.f-wrap textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.f-wrap.textarea-wrap .f-icon {
    top: 14px !important;
    transform: none !important;
}
