/* ============================================
   BUYBACKS PAGE - FixStop 2026
   Relies on fixstop-2026.css for base tokens
   ============================================ */

.bb-page {
    padding: 100px 0 80px;
    min-height: 70vh;
    background: var(--white);
}

/* ---- Progress Stepper ---- */
.bb-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}
.bb-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #CBD5E0;
    transition: color 0.3s;
    white-space: nowrap;
}
.bb-step.currenttask {
    color: var(--blue);
    font-weight: 800;
}
.bb-step.donetask {
    color: var(--accent-green);
}
.bb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: #EDF2F7;
    color: #A0AEC0;
    transition: all 0.3s;
    flex-shrink: 0;
}
.currenttask .bb-step-num {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 112, 192, 0.3);
}
.donetask .bb-step-num {
    background: var(--accent-green);
    color: var(--white);
}
.bb-step-divider {
    width: 40px;
    height: 2px;
    background: #E2E8F0;
    margin: 0 12px;
    flex-shrink: 0;
}

/* ---- Page description ---- */
.bb-desc {
    text-align: center;
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ---- Headings ---- */
.bb-heading {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.bb-heading .accent {
    color: var(--blue);
}
.bb-subheading {
    text-align: center;
    font-size: 1.05rem;
    color: #64748B;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ---- Device Category Grid ---- */
.bb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 840px;
    margin: 0 auto 48px;
}
.bb-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 28px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.35s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.bb-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.bb-card:hover {
    border-color: rgba(0, 112, 192, 0.25);
    box-shadow: 0 8px 32px rgba(0, 112, 192, 0.1);
    transform: translateY(-4px);
}
.bb-card:hover::after {
    transform: scaleX(1);
}
.bb-card-img {
    height: 120px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: transform 0.35s var(--ease-out);
}
.bb-card:hover .bb-card-img {
    transform: scale(1.08);
}
.bb-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

/* ---- Form Section (View 2 & 3) ---- */
.bb-form-section {
    max-width: 640px;
    margin: 0 auto;
}

.bb-field-group {
    margin-bottom: 24px;
}
.bb-field-group > label,
.bb-field > label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Input styling */
.bb-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    transition: all 0.25s;
    outline: none;
    box-sizing: border-box;
}
.bb-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 112, 192, 0.1);
}
.bb-input::placeholder {
    color: #A0AEC0;
}

/* Condition Card Buttons */
.bb-condition-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bb-cond-list {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bb-cond-list li {
    position: relative;
}
.bb-cond-list input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.bb-cond-list label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 16px 24px;
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-size: 0.92rem;
    font-weight: 600;
    color: #4A5568;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.bb-cond-list label::before {
    display: block;
    transition: transform 0.3s var(--ease);
}
/* Status dot per option */
.bb-cond-list li:nth-child(1) label::before { content: ''; width: 14px; height: 14px; min-width: 14px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 4px rgba(0, 214, 143, 0.15); font-size: 0; }
.bb-cond-list li:nth-child(2) label::before { content: ''; width: 14px; height: 14px; min-width: 14px; border-radius: 50%; background: var(--accent-orange); box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.15); font-size: 0; }
.bb-cond-list li:nth-child(3) label::before { content: ''; width: 14px; height: 14px; min-width: 14px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.15); font-size: 0; }

.bb-cond-list label:hover {
    border-color: var(--blue);
    background: rgba(0, 112, 192, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 112, 192, 0.1);
}

/* Selected state */
.bb-cond-list input[type="radio"]:checked + label {
    border-color: var(--blue);
    background: rgba(0, 112, 192, 0.06);
    color: var(--blue);
    box-shadow: 0 4px 16px rgba(0, 112, 192, 0.15);
}
.bb-cond-list input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

@media (max-width: 640px) {
    .bb-condition-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .bb-cond-list label {
        flex-direction: row;
        padding: 18px 20px;
        gap: 14px;
        text-align: left;
    }
    .bb-cond-list label::before {
        flex-shrink: 0;
    }
}

/* Contact form grid */
.bb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}
.bb-field {
    margin-bottom: 8px;
}

/* CTA button */
.bb-btn {
    padding: 14px 40px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    letter-spacing: 0.02em;
}
.bb-btn-wrap {
    text-align: center;
    margin-top: 32px;
}

/* ---- Thank You (View 4) ---- */
.bb-thankyou {
    text-align: center;
    padding: 40px 0;
}
.bb-thankyou-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 214, 143, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.bb-thankyou-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-green);
}
.bb-thankyou-msg {
    font-size: 1.1rem;
    color: #64748B;
    line-height: 1.7;
    max-width: 500px;
    margin: 16px auto 32px;
}
.bb-thankyou-img {
    max-height: 200px;
    margin: 0 auto;
    display: block;
}

/* ---- SEO Content Block ---- */
.bb-seo-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 0 0;
    border-top: 1px solid #E2E8F0;
}
.bb-seo-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.bb-seo-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4A5568;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .bb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .bb-card {
        padding: 24px 16px 20px;
    }
    .bb-card-img {
        height: 80px;
        max-width: 100px;
    }
    .bb-stepper .bb-step > span:not(.bb-step-num) {
        display: none;
    }
    .bb-step-divider {
        width: 24px;
        margin: 0 6px;
    }
    .bb-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bb-page {
        padding: 80px 0 60px;
    }
    .bb-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .bb-heading {
        font-size: 1.6rem;
    }
    .bb-subheading {
        font-size: 0.92rem;
        margin-bottom: 32px;
    }
    .bb-card {
        padding: 20px 12px 16px;
    }
    .bb-card-img {
        height: 64px;
        max-width: 80px;
        margin-bottom: 12px;
    }
    .bb-card-label {
        font-size: 0.88rem;
    }
}
