:root {
    --bg: #0c0f16;
    --panel: #0f1426;
    --ink: #e9eef5;
    --muted: #9aa3b2;
    --brand: #7f00ff;
    --brand2: #ff6a00;
    --border: #222a46;
    --radius: 18px;
    --shadow: 0 16px 48px rgba(0, 0, 0, .28);
}

html,
body {
    background: #F3F8FA;
    color: #23223a;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    border-radius: 10px;
    z-index: 99999;
}

.cm-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(120deg, #ffffff 60%, #e6eaff 100%);
    min-height: 460px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 64px 16px 48px 16px;
    box-shadow: 0 8px 34px rgba(60, 60, 120, .12);
}

.cm-hero-inner {
    max-width: 980px;
    display: grid;
    gap: 16px;
    align-items: center;
    justify-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    color: #4b4b6b;
    opacity: .9;
}

.cm-hero h1 {
    font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
    margin: 0;
    font-weight: 900;
    line-height: 1.15;
    color: #142a63;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.cm-hero .lead {
    color: #4b4b6b;
    max-width: 760px;
    line-height: 1.7;
}

.cm-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
}

.btn.primary {
    background: linear-gradient(135deg, #6ea8fe, #8b88ff);
    color: #0c0f18;
}

/* Make only the Next buttons orange like index5's orange CTA */
.btn.primary.next,
.btn.primary.submit {
    background: linear-gradient(135deg, #ff8a00, #ff7a00);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35);
}
.btn.primary.next:hover,
.btn.primary.submit:hover {
    filter: brightness(1.05);
}

.btn.ghost {
    background: transparent;
    color: #3a2fff;
    border-color: #b9c0ff;
}

.btn:hover {
    filter: brightness(1.04);
}

/* Cloud background animation */
.clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cm-hero { position: relative; z-index: 0; }
.cm-hero-inner { position: relative; z-index: 1; }
.cloud { position: absolute; opacity: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.08)); will-change: transform; }
/* Faster cloud drift: reduce durations to increase speed */
.cloud.c1 { width: 552px; top: 10%; left: -6%; animation: drift-right 30s linear infinite; }
.cloud.c2 { width: 480px; top: 58%; right: -8%; animation: drift-left 36s linear infinite; animation-delay: 4s; }
.cloud.c3 { width: 432px; top: 26%; left: -7%; animation: drift-right 32s linear infinite; animation-delay: 8s; }
.cloud.c4 { width: 624px; top: 72%; right: -10%; animation: drift-left 40s linear infinite; animation-delay: 12s; }

@keyframes drift-right {
    0%   { transform: translateX(0); }
    100% { transform: translateX(140%); }
}
@keyframes drift-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-140%); }
}

@media (max-width: 640px) {
            .cloud.c1 { width: 360px; top: 8%; left: -3%; }
            .cloud.c2 { width: 312px; top: 58%; right: -5%; }
            .cloud.c3 { width: 288px; top: 24%; left: -4%; }
            .cloud.c4 { width: 408px; top: 72%; right: -6%; }
}

.cm-section {
    max-width: 1200px;
    margin: 54px auto;
    padding: 0 16px;
}

.cm-section.alt {
    background: #f7f8ff;
    border: 1px solid #e6eaff;
    border-radius: 22px;
    padding: 34px 16px;
}

.section-head {
    text-align: center;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: clamp(1.4rem, 2.4vw + .6rem, 2rem);
    margin: 0 0 6px 0;
    color: #23223a;
}

.section-head p {
    color: #55577a;
    margin: 0 auto;
    max-width: 760px;
}

.cm-progress {
    position: relative;
    background: #eef1ff;
    border: 1px solid #dbe1ff;
    border-radius: 14px;
    padding: 14px;
    overflow: hidden;
}

.cm-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #d09660, #ee6d10);
    border-radius: 6px;
}

.cm-progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    color: #4b4b6b;
    font-weight: 700;
}

.cm-progress-steps li {
    position: relative;
    padding: 6px 10px;
    border-radius: 10px;
}

.cm-progress-steps li.active {
    color: #3a2fff;
    background: #e9ecff;
}

.cm-form {
    margin-top: 18px;
}

.cm-step {
    background: #ffffff;
    border: 1px solid #e8ebff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 28px rgba(60, 60, 120, .08);
}

.cm-step+.cm-step {
    margin-top: 12px;
}

legend {
    font-weight: 800;
    color: #23223a;
}

.hint {
    color: #666897;
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 14px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (max-width: 900px) {
    .grid.two {
        grid-template-columns: 1fr;
    }

    .grid.three {
        grid-template-columns: 1fr;
    }
}

.field {
    display: grid;
    gap: 6px;
}

.field>span {
    font-weight: 700;
    color: #23223a;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="color"],
.field select,
.field textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #d1d5fa;
    font-size: 1rem;
    background: #f7f8ff;
    color: #23223a;
    transition: border .2s;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #3a2fff;
    outline: none;
}

.field .error {
    color: #e60023;
    min-height: 1.1em;
}

.muted {
    color: #74779b;
}

.style-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.style-card {
    display: block;
}

.style-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.style-card .card {
    display: grid;
    gap: 6px;
    text-align: center;
    border: 1.5px solid #d1d5fa;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.style-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

.style-card strong {
    color: #23223a;
}

.style-card small {
    color: #666897;
}

.style-card input:checked+.card {
    border-color: #3a2fff;
    box-shadow: 0 8px 24px rgba(58, 47, 255, .14);
    transform: translateY(-2px);
}

.estimator {
    margin-top: 6px;
    background: #0f1426;
    color: #e9eef5;
    border: 1px solid #222a46;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.est-amount {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .5px;
}

.dropzone {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed #b1b5e0;
    border-radius: 14px;
    background: #f7f8ff;
    color: #6b6b8b;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.dropzone:hover,
.dropzone:focus {
    border-color: #3a2fff;
    background: #eef1ff;
    outline: none;
}

.dropzone i {
    font-size: 1.8rem;
    color: #3a2fff;
}

.previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e6ff;
    background: #fff;
    box-shadow: 0 4px 16px rgba(60, 60, 120, .08);
}

.preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview button {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    border-radius: 20px;
    padding: 6px 8px;
    background: #ffffffee;
    color: #e60023;
    cursor: pointer;
    font-weight: 700;
}

.review {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.review-col {
    background: #ffffff;
    border: 1px solid #e8ebff;
    border-radius: 16px;
    padding: 12px;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: #23223a;
}

.review-est {
    display: grid;
    gap: 6px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox input {
    transform: translateY(3px);
}

.captcha-placeholder {
    margin: 8px 0;
    background: #f7f8ff;
    border: 1px dashed #b1b5e0;
    border-radius: 8px;
    padding: 10px;
    color: #6b6b8b;
    text-align: center;
}

.form-msg {
    min-height: 1.2em;
    margin: 6px 0;
}

.nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.cm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.cm-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(60, 60, 120, .10);
}

.cm-info {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e8ebff;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: #3a2fff;
    font-size: 1.05rem;
}

.cm-info i {
    color: #3a2fff;
    margin-right: 6px;
}

@media (max-width: 900px) {
    .review {
        grid-template-columns: 1fr;
    }
}

/* Minimal cart pieces for visual parity on this page */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 98vw);
    height: 100dvh;
    background: linear-gradient(180deg, #121623 0%, #0e1220 100%);
    color: #e9eef5;
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    z-index: 9999;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-left: 1px solid #222736;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.icon-btn {
    background: transparent;
    border: 1px solid #222736;
    color: #9aa3b2;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {

    .floating-shapes .orb,
    .btn,
    .style-card .card {
        animation: none !important;
        transition: none !important;
    }
}