/*******************************/
/******** Wizard Page CSS ******/
/*******************************/
.wizard-page {
    position: relative;
    width: 100%;
    padding: 60px 0 90px 0;
    background: #FFFFFF;
}

.wizard-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.wizard-intro p {
    display: inline-block;
    margin-bottom: 10px;
    padding-bottom: 5px;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #C8102E;
}

.wizard-intro p::after {
    position: absolute;
    content: "";
    width: 50%;
    height: 2px;
    left: 25%;
    bottom: 0;
    background: #C8102E;
}

.wizard-intro h1 {
    margin: 0 0 14px 0;
    font-size: 42px;
    font-weight: 800;
}

.wizard-intro-text {
    margin: 0;
    color: #6B6E76;
    font-size: 15.5px;
    line-height: 1.8;
}

/* Stepper */
.wizard-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto 55px auto;
}

.wizard-stepper-track {
    position: absolute;
    top: 17px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #E7E7E9;
    z-index: 0;
}

.wizard-stepper-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #C8102E;
    transition: width .35s ease;
}

.wizard-stepper-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wizard-stepper-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E7E7E9;
    color: #9A9CA3;
    font-size: 13px;
    font-weight: 700;
    transition: .25s;
}

.wizard-stepper-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A9CA3;
    transition: .25s;
}

.wizard-stepper-item.is-active .wizard-stepper-circle {
    border-color: #C8102E;
    background: #C8102E;
    color: #FFFFFF;
}

.wizard-stepper-item.is-active .wizard-stepper-label {
    color: #16171A;
}

.wizard-stepper-item.is-done {
    cursor: pointer;
}

.wizard-stepper-item.is-done .wizard-stepper-circle {
    border-color: #16171A;
    background: #16171A;
    color: #FFFFFF;
}

.wizard-stepper-item.is-done .wizard-stepper-label {
    color: #16171A;
}

/* Panels */
.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
    animation: wizardFadeIn .35s ease;
}

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

.wizard-panel-head {
    margin-bottom: 26px;
}

.wizard-panel-head h2 {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 800;
}

.wizard-panel-head h3 {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 800;
}

.wizard-panel-head p {
    margin: 0;
    color: #6B6E76;
    font-size: 14.5px;
}

.wizard-panel-head-sub {
    margin-top: 40px;
}

/* Card grids */
.wizard-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.wizard-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wizard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wizard-grid-5 { grid-template-columns: repeat(5, 1fr); }

.wizard-card {
    position: relative;
    display: block;
    background: #FFFFFF;
    border: 1.5px solid #EFEFF1;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

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

.wizard-card:hover {
    border-color: #C8102E;
    transform: translateY(-2px);
}

.wizard-card.is-selected {
    border-color: #C8102E;
    box-shadow: 0 10px 24px rgba(200, 16, 46, .16);
}

.wizard-card-photo {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F4F4F5;
}

.wizard-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.wizard-card:hover .wizard-card-photo img {
    transform: scale(1.05);
}

.wizard-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
}

.wizard-card-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #16171A;
}

.wizard-card-sub {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #6B6E76;
}

.wizard-card-dot {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #D8D8DC;
    transition: .2s;
}

.wizard-card-dot i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity .2s ease;
}

.wizard-card input:checked ~ .wizard-card-body .wizard-card-dot,
.wizard-tier input:checked ~ .wizard-tier-foot .wizard-card-dot {
    border-color: #C8102E;
    background: #C8102E;
}

.wizard-card input:checked ~ .wizard-card-body .wizard-card-dot i,
.wizard-tier input:checked ~ .wizard-tier-foot .wizard-card-dot i {
    opacity: 1;
}

/* Service under maintenance: visible but greyed-out and not selectable */
.wizard-card.is-unavailable {
    cursor: not-allowed;
    background: #F7F7F8;
    border-style: dashed;
    border-color: #DCDCE0;
}

.wizard-card.is-unavailable:hover {
    border-color: #DCDCE0;
    transform: none;
}

.wizard-card.is-unavailable .wizard-card-photo img,
.wizard-card.is-unavailable:hover .wizard-card-photo img {
    filter: grayscale(1);
    opacity: .45;
    transform: none;
}

.wizard-card.is-unavailable .wizard-card-label {
    color: #9A9CA3;
}

.wizard-card.is-unavailable .wizard-card-sub {
    color: #9A9CA3;
    font-style: italic;
}

.wizard-card-photo {
    position: relative;
}

.wizard-card-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 2px;
    background: #16171A;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.wizard-card-dot.is-off {
    border-style: dashed;
    background: transparent;
}

/* Plain icon cards (timeline / budget) */
.wizard-card-plain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 26px 14px;
}

.wizard-card-plain i {
    font-size: 22px;
    color: #C7C8CC;
    transition: color .2s ease;
}

.wizard-card-plain.is-selected i {
    color: #C8102E;
}

.wizard-card-plain .wizard-card-label {
    font-size: 12.5px;
}

.wizard-card-plain .wizard-card-sub {
    text-align: center;
}

/* "All makes supported" note */
.wizard-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    font-size: 13.5px;
    color: #6B6E76;
}

.wizard-note span i {
    color: #C8102E;
    margin-right: 8px;
}

/* Tier cards */
.wizard-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.wizard-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1.5px solid #EFEFF1;
    border-radius: 2px;
    padding: 26px 24px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wizard-tier input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-tier:hover {
    border-color: #C8102E;
    transform: translateY(-2px);
}

.wizard-tier.is-selected {
    border-color: #C8102E;
    box-shadow: 0 14px 30px rgba(200, 16, 46, .18);
}

/* Featured tier: raised card, red top stripe, soft tint and a "Most Popular"
   ribbon — reads as the recommended pick before anything is selected. */
.wizard-tiers {
    padding-top: 16px;
}

.wizard-tier.is-featured {
    border-color: #C8102E;
    background: linear-gradient(180deg, #FFF4F5 0%, #FFFFFF 38%);
    box-shadow: 0 18px 40px rgba(200, 16, 46, .14);
    transform: translateY(-8px);
}

.wizard-tier.is-featured::before {
    content: "";
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    height: 5px;
    background: linear-gradient(90deg, #E8394B, #C8102E 60%, #8E0A20);
}

.wizard-tier.is-featured:hover {
    transform: translateY(-11px);
}

/* The full-strength red border is reserved for the tier actually picked, so
   the featured card never looks "selected" when the customer chose another. */
.wizard-tier.is-featured {
    border-color: rgba(200, 16, 46, .3);
}

.wizard-tier.is-featured:hover,
.wizard-tier.is-featured.is-selected {
    border-color: #C8102E;
}

.wizard-tier.is-selected {
    box-shadow: 0 0 0 1.5px #C8102E, 0 14px 30px rgba(200, 16, 46, .18);
}

.wizard-tier.is-featured .wizard-tier-name {
    font-size: 21px;
}

.wizard-tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #E8394B, #C8102E);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 2px;
    box-shadow: 0 8px 18px rgba(200, 16, 46, .35);
}

.wizard-tier-badge i {
    font-size: 10px;
    color: #FFE3A3;
}

/* light sweep across the badge every few seconds */
.wizard-tier-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    animation: wizard-badge-shine 3.2s ease-in-out infinite;
}

@keyframes wizard-badge-shine {
    0%, 55% { left: -60%; }
    100% { left: 130%; }
}

.wizard-tier-top {
    display: block;
    margin-bottom: 16px;
}

.wizard-tier-name {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #16171A;
}

.wizard-tier-tag {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #C8102E;
}

.wizard-tier-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 18px 0 0 0;
    border-top: 1px solid #F0F0F2;
    flex: 1;
}

.wizard-tier-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #46474D;
    line-height: 1.5;
}

.wizard-tier-list li:last-child {
    margin-bottom: 0;
}

.wizard-tier-list li i {
    margin-top: 3px;
    font-size: 11px;
    color: #C8102E;
    flex: none;
}

.wizard-tier-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F2;
}

.wizard-tier-price {
    font-size: 14px;
    font-weight: 800;
    color: #16171A;
}

/* Form fields */
.wizard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.wizard-field-full {
    grid-column: 1 / -1;
}

.wizard-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B6E76;
}

.wizard-field input,
.wizard-field select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1.5px solid #E7E7E9;
    border-radius: 2px;
    color: #16171A;
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    transition: border-color .2s ease;
}

.wizard-field input:focus,
.wizard-field select:focus {
    outline: none;
    border-color: #C8102E;
}

/* Upload */
.wizard-upload {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid #F0F0F2;
}

.wizard-upload h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
}

.wizard-upload h3 span {
    font-weight: 500;
    color: #9A9CA3;
}

.wizard-upload > p {
    margin: 0 0 20px 0;
    font-size: 13.5px;
    color: #6B6E76;
}

.wizard-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.wizard-upload-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 16px;
    background: #FAFAFA;
    border: 1.5px dashed #D8D8DC;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.wizard-upload-slot:hover,
.wizard-upload-slot.is-dragover {
    border-color: #C8102E;
    background: rgba(200, 16, 46, .04);
}

.wizard-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EFEFF1;
    color: #6B6E76;
    font-size: 15px;
    margin-bottom: 6px;
}

.wizard-upload-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #16171A;
}

.wizard-upload-sub {
    font-size: 12px;
    color: #9A9CA3;
}

.wizard-upload-preview {
    display: block;
    width: 100%;
}

.wizard-upload-slot.has-preview .wizard-upload-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
    margin-top: 8px;
}

/* Quote layout */
.wizard-quote-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.wizard-summary {
    position: relative;
    padding: 34px 30px;
    background: #16171A;
    border-radius: 2px;
    overflow: hidden;
}

.wizard-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E8394B 0%, #C8102E 100%);
}

.wizard-summary-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 14px;
    border-radius: 2px;
    background: rgba(200, 16, 46, .16);
    color: #E8394B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wizard-summary h3 {
    margin: 0 0 10px 0;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.wizard-summary > p {
    margin: 0 0 20px 0;
    color: #9FA1A8;
    font-size: 13.5px;
    line-height: 1.7;
}

.wizard-summary-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.wizard-summary-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
    color: #E7E7E9;
    font-size: 13px;
}

.wizard-summary-list li i {
    color: #E8394B;
    font-size: 11px;
}

.wizard-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.wizard-summary-stats div {
    padding: 14px 16px;
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
}

.wizard-summary-stats span {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9FA1A8;
}

.wizard-summary-stats strong {
    display: block;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 800;
}

.wizard-summary-disclaimer {
    margin: 0;
    color: #6B6D74;
    font-size: 11.5px;
}

.wizard-contact #wizardSuccess .alert {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13.5px;
}

.wizard-contact #wizardSuccess .alert-success {
    background: rgba(70, 170, 90, .12);
    color: #2C7A3D;
}

.wizard-contact #wizardSuccess .alert-danger {
    background: rgba(224, 70, 60, .1);
    color: #B0342A;
}

.btn-config-submit {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E8394B 0%, #C8102E 100%);
    border: none;
    border-radius: 2px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .3s ease, box-shadow .3s ease, transform .25s ease;
}

.btn-config-submit:hover:not(:disabled) {
    background: #16171A;
    box-shadow: 0 14px 30px rgba(22, 23, 26, .25);
    transform: translateY(-2px);
}

.btn-config-submit:disabled {
    opacity: .7;
    cursor: default;
}

.wizard-contact-note {
    margin: 14px 0 0 0;
    text-align: center;
    font-size: 12px;
    color: #9A9CA3;
}

/* Step navigation */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.wizard-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 2px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: .25s;
}

.wizard-nav-back {
    background: #FFFFFF;
    border: 1.5px solid #E7E7E9;
    color: #16171A;
    margin-left: 0;
}

.wizard-nav-back:hover {
    border-color: #16171A;
}

.wizard-nav-continue {
    margin-left: auto;
    background: linear-gradient(135deg, #E8394B 0%, #C8102E 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(200, 16, 46, .3);
}

.wizard-nav-continue:hover:not(:disabled) {
    background: #16171A;
    box-shadow: 0 10px 24px rgba(22, 23, 26, .3);
    transform: translateY(-2px);
}

.wizard-nav-continue:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/*******************************/
/****** Responsive: tablet *****/
/*******************************/
@media (max-width: 991.98px) {
    .wizard-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .wizard-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .wizard-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .wizard-tiers { grid-template-columns: 1fr; }
    .wizard-quote-layout { grid-template-columns: 1fr; }
    .wizard-upload-grid { grid-template-columns: repeat(3, 1fr); }

    .wizard-stepper-label { display: none; }
}

/*******************************/
/****** Responsive: mobile *****/
/*******************************/
@media (max-width: 575.98px) {
    .wizard-page { padding: 40px 0 60px 0; }
    .wizard-intro h1 { font-size: 32px; }

    .wizard-stepper { max-width: 100%; }
    .wizard-stepper-track { left: 17px; right: 17px; }

    .wizard-grid-3,
    .wizard-grid-4,
    .wizard-grid-5 { grid-template-columns: repeat(2, 1fr); }

    .wizard-form-grid { grid-template-columns: 1fr; }
    .wizard-upload-grid { grid-template-columns: 1fr; }

    .wizard-nav { flex-wrap: wrap; gap: 14px; }
    .wizard-nav-back, .wizard-nav-continue { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-panel.is-active { animation: none; }
    .wizard-card, .wizard-tier, .wizard-card:hover, .wizard-tier:hover,
    .wizard-tier.is-featured, .wizard-tier.is-featured:hover { transform: none; }
    .wizard-tier-badge::after { animation: none; display: none; }
}

/* Required-field marker + invalid state (steps 4 and 6) */
.wizard-req {
    margin-left: 3px;
    color: #C8102E;
}

.wizard-field.is-invalid input,
.wizard-field.is-invalid select {
    border-color: #C8102E;
    background: #FFF6F7;
}

.wizard-field-error {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    color: #C8102E;
}

.wizard-field.is-invalid .wizard-field-error {
    display: block;
}

.wizard-step-hint {
    margin: 0 0 0 auto;
    align-self: center;
    font-size: 13px;
    color: #9A9CA3;
}

/* Form steps keep Continue/Submit clickable so a click can point out what's
   missing, but it still looks inactive until everything is filled in. */
.wizard-nav-continue.is-incomplete,
.btn-config-submit.is-incomplete {
    opacity: .45;
    box-shadow: none;
    transform: none;
}
