:root {
    --repair-primary: #B90F16;
    --repair-accent: #D84F56;
    --repair-dark: #2d3436;
    --repair-light: #f8f9fa;
    --repair-white: #ffffff;
    --repair-text-muted: #636e72;
    --repair-pink: #B90F16;
    /* Based on the user's reference image */
}

.repair-types-page {
    background-color: var(--repair-white);
    padding-bottom: 5rem;
}

.model-header-section {
    padding: 3rem 0;
    text-align: center;
}

.model-header-section h1 {
    color: var(--repair-pink);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.model-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--repair-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.read-more-link {
    color: var(--repair-dark);
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

/* Repair Cards Scroller */
.repair-scroller-container {
    padding: 2rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}

.repair-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    min-height: 150px;
    height: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    padding: 1.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--repair-dark);
    flex-shrink: 0;
}

.repair-type-card:hover {
    border-color: var(--repair-pink);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
}

.repair-type-card.selected {
    border: 2px solid var(--repair-pink);
    position: relative;
}

.repair-type-card.selected::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--repair-pink);
}

.repair-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--repair-dark);
    height: 50px;
    /* Fixed height for icon/image container */
}

.repair-card-icon img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
}

.repair-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: normal;
    line-height: 1.3;
}

/* Details Box */
.repair-details-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: none;
    /* Shown via JS */
}

.repair-details-box {
    background: white;
    border: 1px solid var(--repair-pink);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.details-image-side {
    flex: 0 0 200px;
    text-align: center;
}

.details-image-side img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.details-image-side h4 {
    color: var(--repair-pink);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.details-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--repair-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.variant-picker,
.single-variant-wrap {
    width: 100%;
}

.variant-picker-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--repair-dark);
    margin-bottom: 0.5rem;
}

.variant-select {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    box-shadow: none;
}

.variant-select:focus {
    border-color: var(--repair-pink);
    box-shadow: 0 0 0 0.15rem rgba(185, 15, 22, 0.12);
}

.single-variant-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background: #fff5f5;
    border: 1px solid rgba(185, 15, 22, 0.2);
    border-radius: 10px;
    color: var(--repair-pink);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
}

.btn-book-repair {
    background-color: var(--repair-pink);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    transition: background 0.2s;
}

    .btn-book-repair:hover {
        background-color: #B90F16;
        color: white;
    }

.details-content-side {
    flex: 1;
}

.details-content-side h5 {
    font-weight: 800;
    color: var(--repair-dark);
    margin-bottom: 1rem;
}

.details-content-side p {
    color: var(--repair-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.details-info-grid {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 800;
    color: var(--repair-dark);
}

.info-value {
    color: var(--repair-pink);
    font-weight: 600;
}

.info-note {
    font-size: 0.85rem;
    color: var(--repair-text-muted);
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .repair-types-page {
        padding-bottom: 3rem;
    }

    .model-header-section {
        padding: 2rem 0 1.5rem;
    }

    .repair-details-box {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 14px;
    }

    .details-image-side {
        flex: none;
        width: 100%;
    }

    .repair-scroller-container {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.5rem 1rem 1.5rem;
    }

    .model-header-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .model-description {
        font-size: 0.95rem;
        padding: 0 0.25rem;
    }

    .repair-type-card {
        width: 116px;
        min-height: 126px;
        padding: 1rem 0.6rem;
    }

    .repair-card-icon {
        font-size: 1.65rem;
        height: 42px;
        margin-bottom: 0.6rem;
    }

    .repair-card-name {
        font-size: 0.95rem;
    }

    .repair-type-card.selected::after {
        display: none;
    }

    .repair-details-container {
        margin: 1rem auto 0;
        padding: 0 0.5rem;
    }

    .details-image-side h4 {
        font-size: 1.1rem;
    }

    .details-price {
        font-size: 1.45rem;
    }

    .details-content-side p {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }

    .info-item {
        margin-bottom: 0.8rem;
    }

    .btn-book-repair {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .repair-scroller-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .repair-type-card {
        width: 108px;
        min-height: 118px;
    }

    .variant-select,
    .single-variant-badge {
        font-size: 0.92rem;
    }
}
