/**
 * Smartclass Group
 * Book Demo Page
 *
 * File: assets/css/book-demo.css
 */

/* =========================================================
   PAGE VARIABLES
========================================================= */

.book-demo-page {
    --demo-primary: #155eef;
    --demo-primary-dark: #104bcc;
    --demo-primary-soft: #eaf1ff;

    --demo-navy: #0f2344;
    --demo-navy-light: #173660;

    --demo-surface: #ffffff;
    --demo-background: #f4f7fb;

    --demo-text: #172033;
    --demo-text-light: #475569;
    --demo-muted: #64748b;

    --demo-border: #d9e2ee;
    --demo-border-dark: #c5d1df;

    --demo-success: #166534;
    --demo-success-bg: #dcfce7;
    --demo-success-border: #bbf7d0;

    --demo-danger: #b91c1c;
    --demo-danger-bg: #fee2e2;
    --demo-danger-border: #fecaca;

    --demo-radius-small: 9px;
    --demo-radius: 14px;
    --demo-radius-large: 20px;

    --demo-shadow:
        0 12px 38px
        rgba(15, 35, 68, 0.09);

    --demo-shadow-large:
        0 22px 60px
        rgba(15, 35, 68, 0.14);

    --demo-transition: 0.22s ease;

    color: var(--demo-text);
    background: var(--demo-background);
}

/* =========================================================
   BASIC ELEMENTS
========================================================= */

.book-demo-page *,
.book-demo-page *::before,
.book-demo-page *::after {
    box-sizing: border-box;
}

.book-demo-page img {
    display: block;
    max-width: 100%;
}

.book-demo-page button,
.book-demo-page input,
.book-demo-page select,
.book-demo-page textarea {
    font: inherit;
}

.book-demo-page .container {
    width:
        min(
            1180px,
            calc(100% - 32px)
        );

    margin-right: auto;
    margin-left: auto;
}

.book-demo-page .section {
    padding:
        clamp(
            60px,
            8vw,
            100px
        ) 0;
}

.book-demo-page .section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;

    color: var(--demo-primary);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-demo-page .section-label::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
}

/* =========================================================
   PAGE HERO
========================================================= */

.demo-hero {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    padding:
        clamp(
            85px,
            11vw,
            145px
        ) 0;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            rgba(7, 23, 49, 0.98),
            rgba(15, 52, 99, 0.94)
        );
}

.demo-hero::before {
    content: "";

    position: absolute;
    z-index: -1;
    top: -170px;
    right: -130px;

    width: 460px;
    height: 460px;

    border:
        80px solid
        rgba(255, 255, 255, 0.035);

    border-radius: 50%;
}

.demo-hero::after {
    content: "";

    position: absolute;
    z-index: -1;
    bottom: -190px;
    left: -130px;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(21, 94, 239, 0.4),
            rgba(21, 94, 239, 0)
        );
}

.demo-hero-content {
    max-width: 790px;
}

.demo-hero .section-label {
    color: #9fc2ff;
}

.demo-hero-content h1 {
    max-width: 820px;

    margin: 0 0 20px;

    color: #ffffff;

    font-size:
        clamp(
            2rem,
            5.5vw,
            4.35rem
        );

    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.demo-hero-content p {
    max-width: 690px;

    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size:
        clamp(
            1rem,
            2vw,
            1.16rem
        );

    line-height: 1.8;
}

/* =========================================================
   BOOKING SECTION
========================================================= */

.demo-booking-section {
    position: relative;
    background:
        linear-gradient(
            180deg,
            #f8fbff,
            var(--demo-background)
        );
}

.demo-booking-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.88fr)
        minmax(0, 1.12fr);

    align-items: start;
    gap:
        clamp(
            35px,
            6vw,
            75px
        );
}

/* =========================================================
   DEMO INFORMATION
========================================================= */

.demo-information {
    position: sticky;
    top: 105px;
}

.demo-information h2 {
    margin: 0 0 19px;

    color: var(--demo-navy);

    font-size:
        clamp(
            1.75rem,
            4vw,
            2.75rem
        );

    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.demo-information > p {
    margin: 0 0 30px;

    color: var(--demo-text-light);

    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   BENEFITS
========================================================= */

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

.demo-benefit {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: start;
    gap: 15px;

    padding: 18px;

    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow:
        0 5px 20px
        rgba(15, 35, 68, 0.04);

    transition:
        border-color var(--demo-transition),
        box-shadow var(--demo-transition),
        transform var(--demo-transition);
}

.demo-benefit:hover {
    border-color: #b8cdf5;

    box-shadow:
        0 11px 28px
        rgba(15, 35, 68, 0.09);

    transform: translateY(-3px);
}

.demo-benefit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 13px;

    color: var(--demo-primary);
    background: var(--demo-primary-soft);

    font-size: 0.82rem;
    font-weight: 900;
}

.demo-benefit h3 {
    margin: 1px 0 6px;

    color: var(--demo-navy);

    font-size: 1rem;
    font-weight: 900;
}

.demo-benefit p {
    margin: 0;

    color: var(--demo-muted);

    font-size: 0.88rem;
    line-height: 1.65;
}

/* =========================================================
   CONTACT CARD
========================================================= */

.demo-contact-card {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;

    margin-top: 24px;
    padding: 24px;

    border-radius: var(--demo-radius-large);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--demo-navy),
            #164178
        );

    box-shadow:
        0 15px 36px
        rgba(15, 35, 68, 0.2);
}

.demo-contact-card::after {
    content: "";

    position: absolute;
    z-index: -1;
    right: -45px;
    bottom: -55px;

    width: 160px;
    height: 160px;

    border:
        30px solid
        rgba(255, 255, 255, 0.04);

    border-radius: 50%;
}

.demo-contact-card small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
}

.demo-contact-card strong {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.demo-contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #cfe0ff;

    font-size: 0.9rem;
    font-weight: 700;

    transition: color var(--demo-transition);
}

.demo-contact-card a:hover {
    color: #ffffff;
}

/* =========================================================
   FORM CARD
========================================================= */

.demo-form-card {
    overflow: hidden;

    padding:
        clamp(
            20px,
            4vw,
            34px
        );

    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius-large);

    background: var(--demo-surface);

    box-shadow: var(--demo-shadow-large);
}

.form-heading {
    margin-bottom: 25px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--demo-border);
}

.form-heading h2 {
    margin: 0 0 7px;

    color: var(--demo-navy);

    font-size:
        clamp(
            1.45rem,
            3vw,
            1.9rem
        );

    font-weight: 900;
}

.form-heading p {
    margin: 0;
    color: var(--demo-muted);
    line-height: 1.65;
}

/* =========================================================
   FORM MESSAGES
========================================================= */

.form-message {
    margin-bottom: 22px;
    padding: 15px 16px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 0.9rem;
    line-height: 1.6;

    animation: demoMessage 0.35s ease;
}

@keyframes demoMessage {
    from {
        opacity: 0;
        transform: translateY(-9px);
    }

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

.success-message {
    color: var(--demo-success);
    border-color: var(--demo-success-border);
    background: var(--demo-success-bg);
}

.success-message strong {
    display: block;
}

.success-message p {
    margin: 7px 0 3px;
}

.success-message p span {
    display: inline-block;

    padding: 2px 8px;

    border-radius: 5px;

    color: #ffffff;
    background: var(--demo-success);

    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.success-message small {
    display: block;
}

.error-message {
    color: var(--demo-danger);
    border-color: var(--demo-danger-border);
    background: var(--demo-danger-bg);
    font-weight: 700;
}

/* =========================================================
   FORM GRID
========================================================= */

.demo-form {
    width: 100%;
}

.demo-form .form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}

.demo-form .form-group {
    min-width: 0;
}

.demo-form .form-group.full-width {
    grid-column: 1 / -1;
}

.demo-form label {
    display: block;
    margin-bottom: 7px;

    color: var(--demo-text);

    font-size: 0.87rem;
    font-weight: 800;
}

.demo-form label span {
    color: var(--demo-danger);
}

/* =========================================================
   INPUTS
========================================================= */

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;

    border: 1px solid var(--demo-border-dark);
    border-radius: var(--demo-radius-small);

    padding: 11px 12px;

    color: var(--demo-text);
    background: #ffffff;

    outline: none;

    transition:
        border-color var(--demo-transition),
        box-shadow var(--demo-transition),
        background var(--demo-transition);
}

.demo-form input,
.demo-form select {
    min-height: 46px;
}

.demo-form textarea {
    min-height: 125px;

    line-height: 1.65;
    resize: vertical;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: #94a3b8;
}

.demo-form select {
    cursor: pointer;
}

.demo-form input:hover,
.demo-form select:hover,
.demo-form textarea:hover {
    border-color: #9fb0c5;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    border-color: var(--demo-primary);

    box-shadow:
        0 0 0 3px
        rgba(21, 94, 239, 0.12);
}

.demo-form input.invalid,
.demo-form select.invalid,
.demo-form textarea.invalid {
    border-color: var(--demo-danger);

    box-shadow:
        0 0 0 3px
        rgba(185, 28, 28, 0.1);
}

.demo-form input:disabled,
.demo-form select:disabled,
.demo-form textarea:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* =========================================================
   FIELD ERROR
========================================================= */

.field-error {
    display: block;

    margin-top: 6px;

    color: var(--demo-danger);

    font-size: 0.76rem;
    font-weight: 700;
}

/* =========================================================
   PRIVACY NOTE
========================================================= */

.privacy-note {
    margin-top: 18px;
    padding: 12px 14px;

    border-left: 3px solid var(--demo-primary);
    border-radius: 0 8px 8px 0;

    color: var(--demo-muted);
    background: #f8fafc;

    font-size: 0.78rem;
    line-height: 1.6;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.demo-form .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin-top: 18px;
    padding: 12px 20px;

    border: 1px solid var(--demo-primary);
    border-radius: 10px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--demo-primary),
            #3978f4
        );

    font-size: 0.95rem;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 8px 21px
        rgba(21, 94, 239, 0.24);

    transition:
        background var(--demo-transition),
        box-shadow var(--demo-transition),
        transform var(--demo-transition),
        opacity var(--demo-transition);
}

.demo-form .submit-button:hover {
    background:
        linear-gradient(
            135deg,
            var(--demo-primary-dark),
            var(--demo-primary)
        );

    box-shadow:
        0 11px 27px
        rgba(21, 94, 239, 0.3);

    transform: translateY(-2px);
}

.demo-form .submit-button:active {
    transform: translateY(0);
}

.demo-form .submit-button:disabled {
    opacity: 0.68;
    cursor: wait;
    transform: none;
}

/* =========================================================
   LOADING SPINNER
========================================================= */

.demo-form .submit-button.loading::before {
    content: "";

    width: 17px;
    height: 17px;

    margin-right: 9px;

    border:
        2px solid
        rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;
    border-radius: 50%;

    animation: demoSpinner 0.75s linear infinite;
}

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

/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 950px) {
    .demo-booking-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .demo-information {
        position: static;
    }

    .demo-information > p {
        max-width: 760px;
    }

    .demo-benefits {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

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

    .demo-contact-card {
        max-width: 600px;
    }
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 700px) {
    .book-demo-page .container {
        width: calc(100% - 22px);
    }

    .book-demo-page .section {
        padding: 55px 0;
    }

    .demo-hero {
        padding: 72px 0;
    }

    .demo-hero::before {
        top: -170px;
        right: -200px;
    }

    .demo-hero-content h1 {
        font-size: 2.15rem;
    }

    .demo-hero-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .demo-information h2 {
        font-size: 1.75rem;
    }

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

    .demo-benefit {
        grid-template-columns: 44px 1fr;
        padding: 16px;
    }

    .demo-benefit > span {
        width: 44px;
        height: 44px;
    }

    .demo-form-card {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .demo-form .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-form .form-group.full-width {
        grid-column: auto;
    }

    .demo-form input,
    .demo-form select {
        min-height: 48px;
    }

    .demo-form .submit-button {
        min-height: 50px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .book-demo-page .container {
        width: calc(100% - 16px);
    }

    .demo-hero-content h1 {
        font-size: 1.85rem;
    }

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

    .demo-form-card {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .book-demo-page *,
    .book-demo-page *::before,
    .book-demo-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .demo-hero,
    .demo-information,
    .demo-form,
    header,
    nav,
    footer {
        display: none !important;
    }

    .demo-booking-section {
        padding: 0;
        background: #ffffff;
    }

    .demo-booking-grid {
        display: block;
    }

    .demo-form-card {
        border: 0;
        box-shadow: none;
    }

    .form-message {
        border: 1px solid #000000;
        color: #000000;
        background: #ffffff;
    }
}