/* ==========================================================================
   Device model repair pages (/repair-services/<brand>/<model>)
   One stylesheet for every model page. Reuses global tokens (--orange,
   --orange-bright, --panel, --panel-light, --line, --muted, --soft, --shadow,
   --radius, --text-body, --text-eyebrow, --heading-section) and components
   (.button, .hero-actions, .sr-only).
   ========================================================================== */

.model-page { padding-bottom: 108px; }

.model-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 28px; color: #78859b; font-size: .8125rem; font-weight: 650; }
.model-breadcrumb a { transition: color .2s ease; }
.model-breadcrumb a:hover { color: var(--orange); }
.model-breadcrumb strong { color: #d7dce5; font-weight: 700; }

/* Hero */
.model-hero { padding-block: 40px 20px; text-align: center; }
.model-eyebrow,
.model-heading > span { display: block; margin-bottom: 12px; color: var(--orange); font-size: var(--text-eyebrow); font-weight: 750; line-height: 1.2; }
/* H1 always clearly larger than the section H2s below (48px vs 32px max). */
.model-hero h1 { max-width: 860px; margin: 0 auto; color: #fff; font-size: var(--heading-hero); font-weight: 780; line-height: 1.06; letter-spacing: -.04em; }
.model-hero > p { max-width: 720px; margin: 18px auto 0; color: #a9b0be; font-size: var(--text-body); line-height: 1.6; }
.model-hero-actions { flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.model-hero-actions .button { min-width: 0; min-height: 48px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.model-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.model-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: var(--panel); color: var(--soft); font-size: .875rem; font-weight: 650; }
.model-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Shared section heading */
.model-heading { max-width: 760px; }
.model-heading h2 { margin: 0; color: #fff; font-size: var(--heading-section); font-weight: 760; line-height: 1.15; letter-spacing: -.025em; }
.model-heading p { margin: 12px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.model-heading-centered { margin-inline: auto; text-align: center; }

.model-repairs,
.model-technical,
.model-compare,
.model-options,
.model-faq { padding-top: 108px; }

/* Repair picker + estimate */
.model-repairs-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-top: 36px; }
.model-repair-list { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.model-repair-option {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.model-repair-option:hover { border-color: rgba(255, 59, 10, .4); transform: translateY(-2px); }
.model-repair-option input { position: absolute; opacity: 0; pointer-events: none; }
.model-repair-option:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.model-repair-option.is-selected { border-color: var(--orange); background: #18233d; box-shadow: 0 0 0 1px rgba(255, 59, 10, .35); }
.model-repair-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 59, 10, .3); border-radius: 12px; background: rgba(255, 59, 10, .08); }
.model-repair-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.model-repair-copy strong { display: block; color: #fff; font-size: 1rem; font-weight: 750; }
.model-repair-copy span { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.model-repair-price { color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.model-repair-check { width: 22px; height: 22px; border: 2px solid #34445f; border-radius: 6px; transition: background .2s ease, border-color .2s ease; }
.model-repair-option.is-selected .model-repair-check {
    border-color: var(--orange);
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.model-estimate {
    position: sticky;
    top: 104px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: linear-gradient(160deg, #17233d, #0f192e);
    box-shadow: var(--shadow);
}
.model-estimate h3 { margin: 0; color: #fff; font-size: 1.125rem; font-weight: 760; }
.model-estimate-rows { display: grid; gap: 12px; margin: 20px 0 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.model-estimate-rows div { display: flex; justify-content: space-between; gap: 16px; }
.model-estimate-rows dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.model-estimate-rows dd { margin: 0; color: #fff; font-size: .875rem; font-weight: 700; text-align: right; }
.model-estimate-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.model-estimate-total span { color: #fff; font-size: 1rem; font-weight: 750; }
.model-estimate-total strong { color: var(--orange); font-size: 1.25rem; font-weight: 820; letter-spacing: -.03em; }
.model-estimate-cta { width: 100%; margin-top: 20px; border-radius: 12px; }
.model-estimate-note { margin: 12px 0 0; color: #78859b; font-size: .8125rem; text-align: center; }

/* Model-specific technical cards */
.model-technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.model-technical-card { padding: 26px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; background: var(--panel); transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease; }
.model-technical-card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 10, .35); }
.model-technical-num { color: var(--orange); font-size: .875rem; font-weight: 820; letter-spacing: .06em; }
.model-technical-card h3 { margin: 12px 0 0; color: #fff; font-size: 1.125rem; font-weight: 760; }
.model-technical-card p { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* Comparison table */
.model-compare-table { margin-top: 32px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; background: var(--panel); }
.model-compare-table table { width: 100%; border-collapse: collapse; }
.model-compare-table th,
.model-compare-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9375rem; }
.model-compare-table thead th { background: #18233d; color: var(--orange); font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.model-compare-table tbody th { width: 18%; color: #fff; font-weight: 700; white-space: nowrap; }
.model-compare-table td { color: var(--muted); }
.model-compare-table tbody tr:last-child th,
.model-compare-table tbody tr:last-child td { border-bottom: 0; }
.model-compare-note { margin: 16px 0 0; color: #8e99ab; font-size: .875rem; line-height: 1.6; }

/* Local / mail-in options */
.model-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
/* The whole card is the link (same pattern as .iphone-location-card),
   rather than a nested link stretched over it, so every pixel of the card
   is clickable with no pseudo-element positioning to get wrong. */
.model-option-card {
    display: block;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background: var(--panel);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease;
}
.model-option-card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 10, .35); }
.model-option-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.model-option-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: rgba(255, 59, 10, .12); }
.model-option-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.model-option-card h3 { margin: 18px 0 0; color: #fff; font-size: 1.25rem; font-weight: 760; }
.model-option-card p { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.model-option-link { display: inline-block; margin-top: 18px; color: var(--orange); font-size: .9375rem; font-weight: 750; transition: transform .2s ease; }
.model-option-card:hover .model-option-link { transform: translateX(3px); }

/* FAQ */
.model-faq-list { display: grid; gap: 12px; max-width: 860px; margin: 32px auto 0; }
.model-faq-list details { border: 1px solid rgba(255, 255, 255, .06); border-radius: 15px; background: var(--panel); transition: border-color .2s ease; }
.model-faq-list details[open] { border-color: rgba(255, 59, 10, .3); }
.model-faq-list summary { position: relative; padding: 20px 56px 20px 22px; cursor: pointer; list-style: none; }
.model-faq-list summary::-webkit-details-marker { display: none; }
.model-faq-list summary h3 { margin: 0; color: #eef1f6; font-size: 1rem; font-weight: 720; }
.model-faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 22px; color: var(--orange); font-size: 1.3rem; line-height: 1; transform: translateY(-50%); transition: transform .2s ease; }
.model-faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.model-faq-list details.is-closing summary::after { transform: translateY(-50%) rotate(0); }
.model-faq-list details p { margin: 0; padding: 0 56px 22px 22px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* Final CTA */
.model-final { padding-top: 108px; }
.model-final-inner { padding: 56px 40px; border-radius: var(--radius); background: linear-gradient(135deg, var(--orange-bright), #ff5a1f); text-align: center; }
.model-final-inner h2 { max-width: 680px; margin: 0 auto; color: #fff; font-size: var(--heading-section); font-weight: 800; letter-spacing: -.025em; }
.model-final-inner p { max-width: 580px; margin: 14px auto 0; color: rgba(255, 255, 255, .92); font-size: var(--text-body); line-height: 1.55; }
.model-final-actions { flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.model-final-actions .button-light:hover { background: #fff; border-color: #fff; }

/* Same breakpoints as the iPhone Repair page (iphone-repair.css): 860 / 620 / 480. */
@media (max-width: 860px) {
    .model-repairs-grid { grid-template-columns: 1fr; }
    .model-estimate { position: static; }
    .model-technical-grid,
    .model-options-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .model-page { padding-bottom: 76px; }
    .model-breadcrumb { gap: 7px; padding-top: 18px; font-size: .75rem; }
    .model-hero { padding-top: 26px; }
    .model-hero > p { font-size: 16px; }
    /* The hero CTA's button text includes the device name (e.g. "Get an
       iPhone 11 Pro Repair Quote"), too long for the site-wide .hero-actions
       mobile rule that forces nowrap side-by-side buttons — stacked
       full-width buttons let it wrap instead of overlapping. */
    .model-hero-actions { flex-direction: column; align-items: stretch; }
    .model-hero-actions .button { flex: 1 1 auto; width: 100%; min-width: 0; padding: 14px 20px; white-space: normal; }
    .model-trust li { flex: 1 1 100%; }
    .model-repairs, .model-technical, .model-compare, .model-options, .model-faq, .model-final { padding-top: 76px; }
    .model-repair-option { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; padding: 16px; }
    .model-repair-price { grid-column: 2; grid-row: 2; font-size: 1.0625rem; }
    .model-repair-check { grid-column: 3; grid-row: 1; }
    .model-repair-icon { width: 40px; height: 40px; }
    .model-compare-table th, .model-compare-table td { padding: 14px 16px; font-size: .875rem; }
    /* Three text columns are too narrow side by side on a phone; the wrapper
       scrolls sideways instead. */
    .model-compare-table table { min-width: 620px; }
    /* 14px FAQ text on phones, as on the iPhone Repair page. */
    .model-faq-list summary { padding: 19px 52px 19px 18px; }
    .model-faq-list summary h3 { font-size: 14px; }
    .model-faq-list summary::after { right: 18px; }
    .model-faq-list details p { padding: 0 18px 20px; font-size: 14px; }
    .model-final-inner { padding: 36px 20px; }
    .model-estimate-total strong { font-size: 1.25rem; font-weight: 800; }
    /* The final CTA's button text includes the device name (e.g. "Arrange
       Your Samsung Galaxy S26 Repair"), too long for the site-wide
       .hero-actions mobile rule that forces nowrap side-by-side buttons —
       stacked full-width buttons let it wrap instead of overflowing. */
    .model-final-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .model-final-actions .button { flex: 1 1 auto; width: 100%; min-width: 0; padding: 14px 20px; white-space: normal; }
}

@media (max-width: 480px) {
}
