/* ================================================
   LECARRE STAIRS — Modern Redesign
   ================================================ */

:root {
    --accent: #E1FF05;
    --accent-glow: rgba(225, 255, 5, 0.35);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-muted: rgba(255, 255, 255, 0.55);
    --green: #22c55e;
    --red: #ef4444;
}

/* === BASE — NO PAGE SCROLL === */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #080808;
    color: #fff;
    margin: 0;
}

/* === BACKGROUND SLIDESHOW === */
.main-img {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease;
}

.main-img.fade-out { opacity: 0; }
.main-img.fade-in  { opacity: 1; }

.main-img.slide-1 { background-image: url(slide-1.webp); }
.main-img.slide-2 { background-image: url(slide-2.webp); }
.main-img.slide-3 { background-image: url(slide-3.webp); }
.main-img.slide-4 { background-image: url(slide-4.webp); }
.main-img.slide-5 { background-image: url(slide-5.webp); }

/* === DARK OVERLAY === */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(5, 5, 15, 0.80) 50%,
        rgba(0, 0, 0, 0.92) 100%
    );
}

/* === BRAND TAG === */
.brand-tag {
    position: fixed;
    top: 22px;
    left: 24px;
    z-index: 20;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.brand-tag span {
    color: var(--accent);
}

/* === FUNNEL WRAPPER — INTERNAL SCROLL, NO PAGE SCROLL === */
.funnel-wrapper {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.funnel-wrapper::-webkit-scrollbar {
    display: none;
}

/* === UTILITY === */
.d-none { display: none !important; }

/* === PROGRESS BAR === */
.progress-bar-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 68px 24px 16px;
    flex-shrink: 0;
}

.progress-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-item.active .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.progress-item.completed .step-dot {
    background: rgba(225, 255, 5, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.step-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.progress-item.active .step-label {
    color: var(--accent);
    font-weight: 600;
}

.step-connector {
    flex: 1;
    max-width: 80px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
    margin-top: 16px; /* aligns with center of 34px dot */
    border-radius: 1px;
    transition: background 0.3s;
    flex-shrink: 1;
}

/* === SLIDE LIST === */
#slide-list {
    width: 100%;
    max-width: 900px;
    padding: 0 12px;
}

/* === SLIDE ENTER ANIMATION === */
.main-slide {
    animation: fadeUp 0.35s ease both;
}

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

/* === HERO SLIDE (s-0) === */
.hero-slide {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(225, 255, 5, 0.1);
    border: 1px solid rgba(225, 255, 5, 0.35);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    color: white;
    max-width: 700px;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.text-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-note {
    margin-top: 22px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

/* === CTA BUTTON === */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    padding: 16px 36px;
    cursor: pointer;
    transition: all 0.22s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 28px var(--accent-glow);
    outline: none;
    white-space: nowrap;
    -webkit-appearance: none;
}

.btn-cta:hover:not([disabled]):not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(225, 255, 5, 0.55);
    background: #eeff44;
}

.btn-cta:active:not([disabled]):not(.disabled) {
    transform: translateY(-1px);
}

.btn-cta.disabled,
.btn-cta[disabled] {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
}

/* === SLIDE HEADER === */
.slide-header {
    padding: 24px 0 16px;
}

.slide-header h2 {
    font-size: clamp(1.45rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.slide-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* === CUSTOM CARDS === */
.card-list {
    margin: 0 -6px;
}

.custom-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease,
                background 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--glass-hover);
}

.custom-card.selected {
    border-color: var(--accent);
    background: rgba(225, 255, 5, 0.07);
    box-shadow: 0 0 0 2px var(--accent), 0 10px 36px rgba(225, 255, 5, 0.18);
    transform: translateY(-5px);
}

.custom-card .card-img {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-card .card-img.wood          { background-image: url(wood.webp); }
.custom-card .card-img.metal         { background-image: url(metal.webp); }
.custom-card .card-img.concrete      { background-image: url(concrete.webp); }
.custom-card .card-img.wood-railing  { background-image: url(wood-railing.webp); }
.custom-card .card-img.glass-railing { background-image: url(glass-railin.webp); }
.custom-card .card-img.metal-railing { background-image: url(metal-railin.webp); }

.card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.85rem;
    gap: 8px;
}

.custom-card.selected .card-label {
    color: var(--accent);
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 11px;
    font-weight: 900;
    color: transparent;
}

.check-icon::after {
    content: '✓';
}

.custom-card.selected .check-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* === CENTER SLIDES (s-3, s-4, s-5) === */
.main-slide.center {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 16px 40px;
}

/* === INPUT WRAPPER === */
.input-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
}

.input-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.92rem;
}

input:focus {
    border-color: rgba(225, 255, 5, 0.5);
    background: rgba(225, 255, 5, 0.04);
    box-shadow: 0 0 0 4px rgba(225, 255, 5, 0.08);
}

input.input-valid {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
}

input.input-invalid {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* === PHONE HINT === */
.phone-hint {
    display: block;
    font-size: 11.5px;
    margin-top: 7px;
    min-height: 18px;
    font-weight: 500;
    transition: color 0.2s;
}

.phone-hint.hint-progress {
    color: rgba(255, 255, 255, 0.38);
}

.phone-hint.hint-valid {
    color: var(--green);
}

/* === THANK YOU (s-5) === */
.thank-you-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 50px 40px;
    max-width: 460px;
    width: 100%;
}

.thank-you-icon {
    width: 72px;
    height: 72px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    color: #000;
    margin: 0 auto 24px;
    box-shadow: 0 0 48px rgba(225, 255, 5, 0.5);
}

.thank-you-icon.icon-repeat {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
    font-size: 26px;
}

.thank-you-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.thank-you-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.55;
}

/* === SUBMISSION DETAILS === */
.submission-details {
    margin: 18px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: left;
}

.submission-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 12px;
}

.submission-details .detail-row:last-child {
    border-bottom: none;
}

.submission-details .detail-key {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.submission-details .detail-val {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-align: right;
}

/* === SOCIAL BLOCK === */
.social-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-block p {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
}

.instagram-link:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(253, 29, 29, 0.4);
}

/* === TOAST NOTIFICATION === */
.toast-notification {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(15, 15, 15, 0.96);
    border: 1px solid rgba(225, 255, 5, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(225,255,5,0.1);
    white-space: nowrap;
}

.toast-notification.toast-show {
    bottom: 28px;
}

.toast-check {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #000;
    flex-shrink: 0;
}

.toast-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-body strong {
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
}

.toast-body span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* === RESPONSIVE — TABLET (≤768px) === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-slide {
        padding: 70px 20px 50px;
    }

    .custom-card .card-img {
        height: 145px;
    }

    .card-label {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .slide-header {
        padding: 16px 0 12px;
    }

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

    .thank-you-card {
        padding: 36px 22px;
    }

    .thank-you-card h2 {
        font-size: 1.5rem;
    }

    .progress-bar-wrapper {
        padding: 62px 16px 12px;
    }

    .step-connector {
        max-width: 50px;
        margin: 0 3px;
        margin-top: 16px;
    }
}

/* === RESPONSIVE — MOBILE (≤480px) === */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.65rem;
        letter-spacing: -0.015em;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
    }

    .btn-cta {
        padding: 14px 26px;
        font-size: 0.9rem;
    }

    .brand-tag {
        font-size: 12px;
        top: 18px;
        left: 18px;
    }

    .custom-card .card-img {
        height: 120px;
    }

    .card-label {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 9px;
    }

    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .step-connector {
        max-width: 32px;
        margin-top: 13px;
    }

    .progress-bar-wrapper {
        padding: 56px 12px 10px;
    }

    input {
        padding: 13px 16px;
        font-size: 0.95rem;
    }

    .main-slide.center {
        padding: 16px 12px 32px;
        min-height: calc(100vh - 80px);
    }

    .slide-header h2 {
        font-size: 1.3rem;
    }

    .thank-you-card {
        padding: 28px 16px;
        border-radius: 22px;
    }

    .thank-you-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .thank-you-card h2 {
        font-size: 1.35rem;
    }

    .toast-notification {
        min-width: 260px;
        max-width: calc(100vw - 32px);
        padding: 12px 16px;
    }
}

/* === RESPONSIVE — SMALL MOBILE (≤360px) === */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .custom-card .card-img {
        height: 105px;
    }

    .step-connector {
        max-width: 20px;
    }
}
