.mail-repair-page { background: var(--ink); }
.mail-hero {
    display: grid;
    grid-template-columns: minmax(0, 780px);
    place-items: center;
    justify-content: center;
    text-align: center;
    min-height: auto;
    padding-block: clamp(52px, 7vw, 84px);
}

.mail-hero .iphone-hero-copy,
.mail-hero-copy {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
    justify-self: center;
}

.mail-hero-copy > p:first-of-type {
    max-width: 640px;
    margin-inline: auto;
}

.mail-hero .iphone-hero-actions {
    justify-content: center;
    margin-inline: auto;
}
.mail-hero-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 22px 0 0; color: var(--muted); font-size: .8rem; font-weight: 620; }
.mail-hero-strip span::after { content: "\2022"; margin-left: 20px; color: #3a4966; }
.mail-hero-strip span:last-child::after { display: none; }

.mail-steps,
.mail-repairs,
.mail-why,
.mail-send,
.mail-related { padding-top: 108px; }
.iphone-section-heading-centered{
    margin-bottom: 20px;
}

/* ---- How it works: 4-step grid ---- */
.mail-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.mail-step-card { padding: 26px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 18px; background: var(--panel-light); box-shadow: 0 16px 34px rgba(0, 0, 0, .15); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease; }
.mail-step-card:hover { transform: translateY(-6px); border-color: rgba(255, 59, 10, .35); box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.mail-step-head { display: flex; align-items: center; gap: 10px; }
.mail-step-num { color: var(--orange); font-size: 1.35rem; font-weight: 820; letter-spacing: -.03em; }
.mail-step-head svg { width: 20px; height: 20px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mail-step-card h3 { margin: 16px 0 0; font-size: 1.02rem; font-weight: 760; }
.mail-step-card p { margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

/* ---- Packaging tips callout ---- */
.mail-tips {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 59, 10, .2);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.mail-tips-body { display: flex; align-items: flex-start; gap: 18px; }
.mail-tips-body .icon-badge { flex-shrink: 0; }
.mail-tips-body h3 { margin: 0; font-size: 1.05rem; font-weight: 760; }
.mail-tips-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; color: #c6ccd6; font-size: .82rem; list-style: none; }
.mail-tips-list li { display: flex; align-items: flex-start; gap: 8px; }
.mail-tips-list li svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: .2em; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mail-tips-list li.is-good svg { stroke: var(--orange); }
.mail-tips-list li.is-bad svg { stroke: #7d879a; }
.mail-tips > .button { flex-shrink: 0; }

/* ---- What We Repair by Post ---- */
.mail-repairs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.mail-repair-card { padding: 28px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 20px; background: var(--panel-light); box-shadow: 0 18px 42px rgba(0, 0, 0, .16); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease; }
.mail-repair-card:hover { transform: translateY(-6px); border-color: rgba(255, 59, 10, .35); box-shadow: 0 22px 44px rgba(0, 0, 0, .22); }
.mail-repair-head { display: flex; align-items: center; gap: 14px; }
.mail-repair-head .icon-badge { flex-shrink: 0; }
.mail-repair-card h3 { margin: 0; font-size: 1.08rem; font-weight: 760; letter-spacing: -.02em; }
.mail-repair-card ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; color: #cbd1dc; font-size: .82rem; list-style: none; }
.mail-repair-card li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mail-repair-card li:last-child { padding-bottom: 0; border-bottom: 0; }
.mail-repair-card li span:last-child { flex-shrink: 0; color: var(--orange); font-weight: 720; }

/* ---- Why choose us: icon feature grid ---- */
.mail-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.mail-why-card { padding: 28px 24px; text-align: center; border: 1px solid rgba(255, 255, 255, .055); border-radius: 18px; background: var(--panel-light); box-shadow: 0 16px 34px rgba(0, 0, 0, .15); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease; }
.mail-why-card:hover { transform: translateY(-6px); border-color: rgba(255, 59, 10, .35); box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.mail-why-card .icon-badge { margin-inline: auto; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.mail-why-card:hover .icon-badge { transform: scale(1.1); }
.mail-why-card h3 { margin: 18px 0 0; font-size: .96rem; font-weight: 760; }
.mail-why-card p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }

/* ---- Send Your Device To Us ---- */
.mail-send-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.mail-location-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 20px;
    background: var(--panel-light);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1),
                box-shadow .35s cubic-bezier(.22, 1, .36, 1),
                border-color .35s ease;
}
.mail-location-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 59, 10, .35);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .22);
}

.mail-location-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), rgba(255, 59, 10, .18));
}

.mail-location-card .icon-badge {
    margin-bottom: 18px;
}

.mail-location-kicker {
    display: block;
    color: var(--orange);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mail-location-card h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 780;
}

.mail-location-address {
    margin: 18px 0 0;
    color: #d8dde6;
    font-size: .86rem;
    font-style: normal;
    font-weight: 620;
    line-height: 1.7;
}

.mail-location-address strong {
    display: block;
    color: #fff;
    font-size: .95rem;
    font-weight: 780;
}

.mail-location-placeholder {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px dashed rgba(255, 59, 10, .35);
    border-radius: 12px;
    color: #9ba4b4;
    background: rgba(255, 59, 10, .06);
}

.mail-location-note {
    margin: 18px 0 0;
    color: #7d879a;
    font-size: .76rem;
    line-height: 1.6;
}

.mail-send-note {
    max-width: 680px;
    margin: 24px auto 0;
    color: #7d879a;
    font-size: .76rem;
    line-height: 1.6;
    text-align: center;
}

.mail-send-note strong {
    color: var(--orange);
    font-weight: 720;
}

@media (max-width: 960px) {
    .mail-send-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .mail-send-grid {
        gap: 14px;
        margin-top: 30px;
    }

    .mail-location-card {
        padding: 24px 22px;
    }
}

/* ---- Related services ---- */
.mail-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.mail-related-card { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 14px; background: var(--panel-light); transition: border-color .2s ease, transform .2s ease; }
.mail-related-card h3 { margin: 0; font-size: .92rem; font-weight: 750; }
.mail-related-card p { margin: 6px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

@media (hover: hover) and (pointer: fine) {
    .mail-related-card:hover { transform: translateY(-2px); border-color: rgba(255, 59, 10, .35); }
}

@media (max-width: 1120px) {
    .mail-step-grid { grid-template-columns: repeat(2, 1fr); }
    .mail-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .mail-repairs-grid { grid-template-columns: 1fr; }
    .mail-related-grid { grid-template-columns: 1fr; }
    .mail-tips { flex-direction: column; align-items: flex-start; }
    .mail-tips > .button { width: 100%; text-align: center; }
}

@media (max-width: 620px) {
    .mail-hero { padding-block: 40px 34px; }
    .mail-hero .iphone-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .mail-hero-strip { flex-direction: column; gap: 6px; }
    .mail-hero-strip span::after { display: none; }
    .mail-steps, .mail-repairs, .mail-why, .mail-send, .mail-related { padding-top: 76px; }
    .mail-step-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .mail-tips { margin-top: 18px; padding: 24px 22px; }
    .mail-repairs-grid { gap: 14px; margin-top: 30px; }
    .mail-why-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .mail-send-panel { margin-top: 30px; padding: 28px 22px; }
    .mail-related-grid { margin-top: 22px; }
}