/* =========================================
   WIZARD FORM (CONTACT PAGE) — V11 PREMIUM IMMERSIVE
   ========================================= */

/* Container */
.wizard-container {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: clamp(1rem, 3vw, 2.5rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Contact Cards V11 (Bottom) */
.contact-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.contact-card h4 {
    color: #fff !important;
}

.contact-card p,
.contact-card li {
    color: rgba(255, 255, 255, 0.6) !important;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--clr-accent) !important;
}


/* Light beam effect topping the form */
.wizard-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 158, 95, 0.4), transparent);
}

/* ── Progress Bar ── */
.wizard-progress {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Track background */
.wizard-progress::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    width: 240px;
    max-width: 90%;
    z-index: 0;
    border-radius: 2px;
}

/* Active fill — same size/position as the track, scaled via --progress */
.progress-bar {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%) scaleX(var(--progress, 0));
    transform-origin: left center;
    height: 4px;
    width: 240px;
    max-width: 90%;
    background: linear-gradient(90deg, var(--clr-accent), #f3c693);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(216, 158, 95, 0.5);
}

/* Indicators layout */
.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    max-width: 300px;
    margin: 0 auto;
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

/* Step dots */
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    border-color: var(--clr-accent);
    background: #0f172a;
    color: var(--clr-accent);
    box-shadow: 0 0 20px rgba(216, 158, 95, 0.3);
    transform: translateY(-2px);
}

.step-dot.completed {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: var(--clr-primary);
}

/* Step labels */
.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.step-dot.active+.step-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.step-dot.completed+.step-label {
    color: var(--clr-accent);
}

/* ── Steps ── */
.wizard-step {
    display: none;
    animation: fadeInStep 0.5s ease-out;
}

.wizard-step.active {
    display: block;
}

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

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

/* Step titles */
.wizard-step h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
    text-align: center;
    font-family: var(--font-heading);
}

.wizard-step>p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}


/* Service Type Label Highlight (V12) */
.form-group>label {
    display: block;
    color: var(--clr-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Service Cards ── */
.service-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .service-selector {
        grid-template-columns: 1fr;
    }
}

.service-option input[type="radio"] {
    display: none;
}

.glass-option .option-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.option-card i {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1.25rem;
    display: block;
    transition: all 0.3s;
}

.option-card span {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.glass-option:hover .option-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(216, 158, 95, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-option input[type="radio"]:checked+.option-card {
    background: rgba(216, 158, 95, 0.1);
    border-color: var(--clr-accent);
    box-shadow: 0 15px 40px rgba(216, 158, 95, 0.2), inset 0 0 20px rgba(216, 158, 95, 0.05);
    transform: translateY(-8px) scale(1.03);
}

.service-option input[type="radio"]:checked+.option-card i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(216, 158, 95, 0.5);
}

.service-option input[type="radio"]:checked+.option-card span {
    color: var(--clr-accent);
    font-weight: 700;
}

/* ── Range Slider ── */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    /* Match thumb height so the element itself is tall enough */
    background: transparent;
    outline: none;
    margin: 1.5rem 0 1rem;
    cursor: pointer;
}

/* Track — Webkit (Chrome, Edge, Safari) */
.volume-slider::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
    background: #1e293b;
    background-image: linear-gradient(to right, var(--clr-accent) var(--slider-fill, 0%), #1e293b var(--slider-fill, 0%));
    background-size: 100% 100%;
}

/* Track — Firefox */
.volume-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: #1e293b;
    border: none;
}

/* Firefox filled portion */
.volume-slider::-moz-range-progress {
    height: 10px;
    border-radius: 5px 0 0 5px;
    background: var(--clr-accent);
}

/* Thumb — Webkit */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(216, 158, 95, 0.5);
    border: 4px solid var(--clr-accent);
    transition: all 0.2s;
    margin-top: -9px;
    /* Center thumb: -(28 - 10) / 2 = -9px */
}

/* Thumb — Firefox */
.volume-slider::-moz-range-thumb {
    width: 20px;
    /* 28 - 2*4 border */
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(216, 158, 95, 0.5);
    border: 4px solid var(--clr-accent);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.volume-display {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

#volumeValue {
    color: var(--clr-accent);
    font-size: 1.4rem;
    font-weight: 800;
}

/* ── Dynamic Estimate ── */
.pricing-estimate {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.estimate-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.estimate-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.estimate-value span {
    color: var(--clr-accent);
}

.pricing-estimate small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 0.5rem;
}

/* ── Floating Labels ── */
.form-floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-floating input,
.form-floating textarea {
    width: 100%;
    padding: 1.75rem 1.5rem 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    color: #fff;
}

.form-floating textarea {
    min-height: 120px;
    resize: vertical;
}

.form-floating label {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform-origin: left top;
}

.form-floating input:focus,
.form-floating textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(216, 158, 95, 0.15);
}

.form-floating input:focus~label,
.form-floating input:not(:placeholder-shown)~label,
.form-floating textarea:focus~label,
.form-floating textarea:not(:placeholder-shown)~label {
    top: 0.6rem;
    transform: scale(0.8) translateY(-4px);
    color: var(--clr-accent);
    font-weight: 700;
    opacity: 1;
}

/* Form Layout Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Actions ── */
.wizard-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-actions.split {
    justify-content: space-between;
}

.wizard-actions .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Back button — override .btn-outline for dark wizard background */
.wizard-actions .btn-prev {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
}

.wizard-actions .btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ── Success Message ── */
.success-message {
    padding: 3rem 1rem;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 2rem;
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.success-message h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.success-message p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wizard-container {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }

    .wizard-progress {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .wizard-step h3 {
        font-size: 1.35rem;
    }

    .estimate-value {
        font-size: 2.25rem;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .wizard-actions .btn {
        width: 100%;
    }
}