:root {
    --brand: #05ad8f;
    --brand-light: rgba(5, 173, 143, 0.08);
    --brand-dark: #049478;
    --brand-dim: #037a62;
    --brand-deep: #025e4b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #e0f7fb;
    --accent-purple-light: #ede9fe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-soft-alt: #e2e8f0;
    --border: #e2e8f0;
    --nav-h: 64px;
    --max-w: 1400px;
    --sidebar-w: 280px;
    --font-heading: "Lexend", sans-serif;
    --font-ui: "Google Sans", sans-serif;
    --shadow: 0 4px 24px rgba(5, 173, 143, 0.08);
    --shadow-lg: 0 8px 40px rgba(5, 173, 143, 0.14);

    --globe-size: 420px;
    --ring1-inset: -80px;
    --ring2-inset: -160px;
}

@font-face {
    font-family: "Lexend";
    src: url(../16740061ad8290aae214.otf) format("opentype");
    font-weight: bold;
}

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

body {
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

button,
a,
select,
input,
textarea {
    cursor: pointer;
    font-family: "Google Sans", sans-serif;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: "Lexend", sans-serif;
}

.title-highlight {
    color: var(--brand);
}

.demo-hero {
    position: relative;
    min-height: 420px;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--text-dark);
}

.demo-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 80% at 80% 50%,
            rgba(5, 173, 143, 0.18) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 40% 60% at 10% 80%,
            rgba(139, 92, 246, 0.12) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 50% at 50% -10%,
            rgba(6, 182, 212, 0.1) 0%,
            transparent 60%
        );
    z-index: 0;
}

.demo-hero-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.13;
    filter: grayscale(1);
}

.demo-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(5, 173, 143, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 173, 143, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        black 40%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        black 40%,
        transparent 100%
    );
}

.demo-hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.demo-hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.demo-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
}

.demo-hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.demo-hero-title .demo-hero-title-accent {
    color: var(--brand);
    position: relative;
    display: inline-block;
}

.demo-hero-title .demo-hero-title-accent::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent-cyan));
    border-radius: 2px;
}

.demo-hero-desc {
    font-weight: 300;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    animation: fadeUp 0.6s 0.2s ease both;
}

.demo-form-section {
    background: var(--bg-soft);
    min-height: 100vh;
    padding: 80px 40px;
    position: relative;
}

.demo-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--brand),
        var(--accent-cyan),
        transparent
    );
}

.demo-form-container {
    max-width: 920px;
    margin: 0 auto;
}

.demo-form-head {
    text-align: center;
    margin-bottom: 56px;
}

.demo-form-head h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.demo-form-head p {
    font-weight: 300;
    font-size: 0.97rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.demo-form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
    row-gap: 12px;
}

.demo-form-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-form-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.demo-form-step-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.demo-form-step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.demo-form-step.active .demo-form-step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(5, 173, 143, 0.15);
}

.demo-form-step.active .demo-form-step-label {
    color: var(--brand-dim);
}

.demo-form-step.done .demo-form-step-num {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

.demo-form-step.done .demo-form-step-label {
    color: var(--text-muted);
}

.demo-form-step.done + .demo-form-step-line {
    background: var(--brand);
}

.demo-form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-form-section-block {
    padding: 36px 40px;
    /* border-bottom: 1px solid var(--border); */
    display: none;
}

.demo-form-section-block.active {
    display: block;
}

.demo-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.demo-form-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 17px;
    flex-shrink: 0;
}

.demo-form-section-icon--order {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
}

.demo-form-section-icon--payment {
    background: var(--accent-cyan-light);
    color: var(--accent-cyan);
}

.demo-form-section-title h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.demo-form-section-title p {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 1px;
}

.demo-form-section-title-end {
    margin-left: auto;
}

.demo-form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.demo-form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.demo-form-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.demo-form-row.cols-5 {
    grid-template-columns: 1.2fr 1.5fr 1fr 1.8fr 1fr;
}

.demo-form-row.cols-2-3 {
    grid-template-columns: 2fr 3fr;
}

.demo-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.demo-form-label {
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-form-label .req {
    color: var(--brand);
    font-size: 14px;
}

.demo-form-label .demo-form-note {
    font-size: 10.5px;
    font-weight: 400;
    font-family: var(--font-ui);
    color: var(--accent-purple);
    background: var(--accent-purple-light);
    padding: 2px 7px;
    border-radius: 100px;
    margin-left: 4px;
}

.demo-form-input,
.demo-form-select,
.demo-form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.demo-form-input::placeholder,
.demo-form-textarea::placeholder {
    color: var(--text-light);
}

.demo-form-input:focus,
.demo-form-select:focus,
.demo-form-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(5, 173, 143, 0.1);
    background: #fff;
}

.demo-form-input.error,
.demo-form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.demo-form-input.valid {
    border-color: var(--brand);
    background: rgba(5, 173, 143, 0.02);
}

.demo-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2394a3b8%27 stroke-width=%272.5%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.demo-form-textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.6;
}

.demo-form-error-msg {
    font-size: 11px;
    color: #ef4444;
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.demo-form-error-msg.show {
    display: flex;
}

.demo-form-field-wrap {
    position: relative;
}

.demo-form-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.demo-form-field-wrap .demo-form-input {
    padding-left: 38px;
}

.demo-form-field-wrap:focus-within .demo-form-field-icon {
    color: var(--brand);
}

.demo-form-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--brand-light);
    border: 1px solid rgba(5, 173, 143, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.demo-form-check-wrap:hover {
    background: rgba(5, 173, 143, 0.12);
}

.demo-form-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.demo-form-check.checked {
    background: var(--brand);
    border-color: var(--brand);
}

.demo-form-check.checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.demo-form-check-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--brand-dim);
}

.demo-form-check-label strong {
    font-weight: 700;
}

.demo-form-card-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-form-card-logo {
    padding: 3px 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.demo-form-card-logo.visa {
    color: #1a1f71;
}

.demo-form-card-logo.mc {
    color: #eb001b;
}

.demo-form-card-logo.amex {
    color: #007bc1;
}

.demo-form-footer {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--bg-soft);
}

.demo-form-footer-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-form-btn-back {
    padding: 12px 24px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.demo-form-btn-back:hover {
    border-color: var(--text-muted);
    color: var(--text-dark);
}

.demo-form-btn-next {
    padding: 12px 32px;
    border: none;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(5, 173, 143, 0.3);
}

.demo-form-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(5, 173, 143, 0.4);
}

.demo-form-btn-next:active {
    transform: translateY(0);
}

.demo-form-btn-pay {
    padding: 13px 36px;
    border: none;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(5, 173, 143, 0.35);
    position: relative;
    overflow: hidden;
}

.demo-form-btn-pay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.demo-form-btn-pay:hover::before {
    opacity: 1;
}

.demo-form-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(5, 173, 143, 0.45);
}

.demo-form-btn-pay.loading {
    pointer-events: none;
    background: var(--brand-dim);
}

.demo-form-btn-pay .spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.demo-form-btn-pay.loading .spinner {
    display: block;
}

.demo-form-btn-pay.loading .pay-label {
    display: none;
}

.demo-form-success {
    display: none;
    padding: 64px 40px;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.demo-form-success.show {
    display: flex;
}

.demo-form-success-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--brand-light);
    border: 2px solid rgba(5, 173, 143, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--brand);
    margin-bottom: 24px;
    animation: successPop 0.5s ease both;
}

.demo-form-success h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.demo-form-success p {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.demo-form-success-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.demo-form-success-ref strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-dim);
}

.demo-form-btn-reset {
    padding: 11px 28px;
    border: 1.5px solid var(--brand);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--brand);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-form-btn-reset:hover {
    background: var(--brand);
    color: #fff;
}

.demo-form-btn-back--hidden {
    display: none;
}

.demo-form-btn-next--hidden {
    display: none;
}

.demo-form-btn-pay--hidden {
    display: none;
}

#demoFormBack {
    display: none;
}

#demoFormPay {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

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

@keyframes successPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.demo-form-section-block.active {
    animation: slideIn 0.3s ease both;
}

@media (max-width: 1024px) {
    .demo-form-row.cols-5 {
        grid-template-columns: 1fr 1fr;
    }

    .demo-form-row.cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .demo-hero-container {
        padding: 80px 24px;
    }

    .demo-form-section {
        padding: 60px 20px;
    }

    .demo-form-section-block {
        padding: 28px 24px;
    }

    .demo-form-footer {
        padding: 20px 24px;
    }

    .demo-form-row.cols-2 {
        grid-template-columns: 1fr;
    }

    .demo-form-row.cols-3 {
        grid-template-columns: 1fr;
    }

    .demo-form-row.cols-5 {
        grid-template-columns: 1fr 1fr;
    }

    .demo-form-row.cols-2-3 {
        grid-template-columns: 1fr;
    }

    .demo-form-footer-btns {
        flex-direction: column;
        width: 100%;
    }

    .demo-form-btn-next,
    .demo-form-btn-pay,
    .demo-form-btn-back {
        width: 100%;
        justify-content: center;
    }

    .demo-form-steps {
        gap: 0;
    }

    .demo-form-step-line {
        width: 24px;
    }

    .demo-form-success {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .demo-form-row.cols-5 {
        grid-template-columns: 1fr;
    }
}

