/*
 * SIM aktualisieren (category 20): the request form (Magento_Catalog/templates/category/sr-sim-activation.phtml).
 * Dark, full width, like the Iridium Tarife page. Neither prepaid nor postpaid, so the accent is the brand orange;
 * the card-type choice uses the SIM colours (prepaid green, Vertrag orange). Selectors on form fields are one level
 * deeper than Luma's (input[type="text"], .field-error …) so they win regardless of stylesheet order.
 */
.sr-sa { --sr-sa-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22C17.5 22 22 17.5 22 12S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z'/%3E%3Cpath d='m7.75 12 2.83 2.83 5.67-5.66'/%3E%3C/svg%3E"); --sr-sa-accent: #f26a21; box-sizing: border-box; width: 100vw; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); padding: 84px 32px 80px; background: linear-gradient(180deg, #2c3a44 0%, #1f2328 45%, #14181c 100%); color: #ffffff; }
/* Top padding 84px: the breadcrumb overlays the section's top (36px tall), which leaves 48px between it and the
   eyebrow. Below Desktop the header pill floats over the section (satrunner-header.css): everything moves down by
   its 76px (160px; Mobile, without breadcrumb, 164px). */
.sr-sa *, .sr-sa *::before, .sr-sa *::after { box-sizing: border-box; }

/*
 * Background words. Two rows: row 1 outline, moving left → right; row 2 solid, moving right → left. A word that
 * leaves the screen comes back on the other row in the other style. web/js/satrunner-sim-activation.js moves them
 * (random speed per crossing, capped) and adds .is-live; before that, without JS or with reduced motion, they
 * stand still: PREPAID outline on row 1, POSTPAID solid on row 2. Both in a faint frost colour (pale icy grey,
 * #d6e4f0), a quiet background; the strength is the alpha in --sr-sa-word-line / --sr-sa-word-fill.
 */
.sr-sa { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.sr-sa__head, .sr-sa__inner { position: relative; z-index: 1; }
.sr-sa__marquee { --sr-sa-row-1: 22%; --sr-sa-row-2: 60%; --sr-sa-word-line: rgba(214, 228, 240, 0.12); --sr-sa-word-fill: rgba(214, 228, 240, 0.05); position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.sr-sa__word { position: absolute; top: var(--sr-sa-row-1); left: 4vw; font-family: 'Barlow', sans-serif; font-size: clamp(7.2rem, 11vw, 17.2rem); font-weight: 600; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px var(--sr-sa-word-line); }
.sr-sa__word--postpaid { top: var(--sr-sa-row-2); right: 4vw; left: auto; color: var(--sr-sa-word-fill); }
/* Moving: every word starts at the left edge and is placed by the JS's transform; the row class sets row and style */
.sr-sa__marquee.is-live .sr-sa__word { top: var(--sr-sa-row-1); right: auto; left: 0; color: transparent; will-change: transform; }
.sr-sa__marquee.is-live .sr-sa__word.is-row-2 { top: var(--sr-sa-row-2); color: var(--sr-sa-word-fill); }

/* The page lives in columns.top; Luma's empty columns below it (main column: min-height 300px, padding 40px;
   on phones the columns also get 60px top padding) would leave a white gap above the footer. This stylesheet only
   loads on this page. */
body:has(.sr-sa) .page-main .columns { padding-top: 0; }
body:has(.sr-sa) .page-main .columns .column.main { min-height: 0; padding-bottom: 0; }

.sr-sa [hidden] { display: none !important; }
@media (max-width: 1023px) {
    .sr-sa { padding-top: 160px; }
}

.sr-sa .sr-sa__sr-only { position: absolute; float: none; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-sa__head, .sr-sa__inner { max-width: 1200px; margin: 0 auto; }
/* Both columns stretch to the taller one (the form, whose height changes per step), so the two cards always end
   level; no fixed height */
.sr-sa__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; gap: 32px; }
.sr-sa__main { display: flex; flex-direction: column; }
.sr-sa__main > .sr-sa__panel { flex: 1 1 auto; }

.sr-sa__eyebrow { margin: 0 0 12px; color: var(--sr-sa-accent); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.sr-sa .sr-sa__title { margin: 0 0 32px; color: #ffffff; font-family: 'Barlow', sans-serif; font-size: clamp(3.2rem, 3vw, 4.8rem); font-weight: 600; line-height: 1.05; }
/* "Only for cards bought here": first line inside the form, above the steps; the dot flashes. Room on the right
   for the help button. */
.sr-sa__only { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: -2px 0 22px; padding-right: 56px; color: rgba(255, 255, 255, 0.75); font-size: 1.6rem; line-height: 1.4; }
.sr-sa__only::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sr-sa-accent); box-shadow: 0 0 0 0 rgba(242, 106, 33, 0.6); animation: sr-sa-flash 1.4s ease-in-out infinite; }
@keyframes sr-sa-flash {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(242, 106, 33, 0.6); }
    50% { opacity: 0.25; box-shadow: 0 0 0 6px rgba(242, 106, 33, 0); }
}

.sr-sa__panel { position: relative; margin: 0; padding: 40px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; background: rgba(31, 35, 40, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sr-sa fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sr-sa fieldset.sr-sa__field { margin-bottom: 24px; }
.sr-sa legend { float: left; width: 100%; padding: 0; }
.sr-sa legend + * { clear: both; }

/* Native radios and checkboxes stay in the DOM (keyboard, validation) but are drawn by their labels */
.sr-sa__type input, .sr-sa__check input { position: absolute; opacity: 0; pointer-events: none; }

/* Help button, top right of the form: Iconsax message-question, orange */
.sr-sa .sr-sa__help { position: absolute; top: 32px; right: 32px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(242, 106, 33, 0.45); border-radius: 50%; background: rgba(242, 106, 33, 0.1); box-shadow: none; color: var(--sr-sa-accent); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.sr-sa .sr-sa__help:hover, .sr-sa .sr-sa__help:focus-visible { border-color: var(--sr-sa-accent); background: var(--sr-sa-accent); color: #ffffff; }
.sr-sa .sr-sa__help:focus-visible { outline: 2px solid var(--sr-sa-accent); outline-offset: 3px; }
.sr-sa__help svg { width: 22px; height: 22px; }

/* "What happens next" modal (native <dialog>), orange */
.sr-sa__dialog { box-sizing: border-box; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 32px; border: 1px solid rgba(242, 106, 33, 0.35); border-top: 4px solid #f26a21; border-radius: 18px; background: #1f2328; color: #ffffff; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); }
.sr-sa__dialog::backdrop { background: rgba(10, 12, 15, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sr-sa__dialog[open] { animation: sr-sa-dialog-in 0.25s ease-out; }
@keyframes sr-sa-dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.sr-sa__dialog-head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.sr-sa__dialog-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(242, 106, 33, 0.12); color: #f26a21; }
.sr-sa__dialog-icon svg { width: 22px; height: 22px; }
.sr-sa .sr-sa__dialog h2 { flex: 1 1 auto; margin: 0; color: #ffffff; font-family: 'Barlow', sans-serif; font-size: 2.4rem; font-weight: 600; line-height: 1.2; }
.sr-sa .sr-sa__dialog-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: transparent; box-shadow: none; color: #ffffff; cursor: pointer; }
.sr-sa .sr-sa__dialog-close:hover, .sr-sa .sr-sa__dialog-close:focus-visible { border-color: #f26a21; background: #f26a21; color: #ffffff; }
.sr-sa__dialog-close svg { width: 18px; height: 18px; }

/* Stepper */
.sr-sa__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.sr-sa .sr-sa__steps li { margin: 0; padding-top: 12px; border-top: 3px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; font-weight: 600; line-height: 1.3; transition: border-color 0.3s ease, color 0.3s ease; }
.sr-sa__steps li span { display: block; margin-bottom: 2px; font-family: 'Barlow', sans-serif; font-size: 1.2rem; letter-spacing: 0.12em; }
.sr-sa .sr-sa__steps li.is-current { border-top-color: var(--sr-sa-accent); color: #ffffff; }
.sr-sa .sr-sa__steps li.is-done { border-top-color: rgba(242, 106, 33, 0.5); color: rgba(255, 255, 255, 0.75); }

/* Fields */
.sr-sa__field { margin: 0 0 24px; }
.sr-sa .sr-sa__label { display: block; margin: 0 0 8px; color: #ffffff; font-size: 1.6rem; font-weight: 600; }
.sr-sa__label em { color: rgba(255, 255, 255, 0.5); font-style: normal; font-weight: 400; }
.sr-sa input.sr-sa__input { display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: #101317; box-shadow: none; color: #ffffff; font-size: 1.6rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sr-sa input.sr-sa__input--number { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.sr-sa input.sr-sa__input::placeholder { color: rgba(255, 255, 255, 0.35); letter-spacing: 0.02em; }
.sr-sa input.sr-sa__input:focus { border-color: var(--sr-sa-accent); outline: 0; box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.25); }
.sr-sa input.sr-sa__input.mage-error { border-color: #ff6b5b; }
/* Autofill: repaint the light autofill background with an inset shadow */
.sr-sa input.sr-sa__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #101317 inset; -webkit-text-fill-color: #ffffff; caret-color: #ffffff; }
/* The purchased plan (from the QR code): read-only, looks like the locked number field */
.sr-sa__plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 12px 8px 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(16, 19, 23, 0.6); }
.sr-sa__plan-name { color: #ffffff; font-size: 1.6rem; font-weight: 600; }
.sr-sa__plan .sr-sa__badge { position: static; transform: none; }

/* Card number from the QR code: locked, with a badge */
.sr-sa__number { position: relative; }
.sr-sa input.sr-sa__input[readonly] { padding-right: 150px; border-color: rgba(255, 255, 255, 0.1); background: rgba(16, 19, 23, 0.6); cursor: default; }
.sr-sa input.sr-sa__input[readonly]:focus { border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.sr-sa__badge { position: absolute; top: 50%; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(50, 205, 50, 0.12); color: #32cd32; font-size: 1.2rem; font-weight: 600; white-space: nowrap; transform: translateY(-50%); }
.sr-sa__badge::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--sr-sa-tick) center / contain no-repeat; mask: var(--sr-sa-tick) center / contain no-repeat; }
.sr-sa__hint { margin: 8px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 1.2rem; line-height: 1.5; }
.sr-sa div.mage-error, .sr-sa__field-error { margin: 8px 0 0; color: #ff8a7d; font-size: 1.2rem; line-height: 1.5; }

/* Card type: two big options in the SIM colours */
.sr-sa__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sr-sa__type { position: relative; display: block; margin: 0; padding: 16px 16px 16px 48px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: #101317; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sr-sa__type::before { content: ''; position: absolute; top: 18px; left: 16px; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; }
.sr-sa__type strong { display: block; color: #ffffff; font-size: 1.6rem; }
.sr-sa__type span { color: rgba(255, 255, 255, 0.55); font-size: 1.2rem; }
.sr-sa__type--prepaid { --sr-sa-type: #32cd32; }
.sr-sa__type--vertrag { --sr-sa-type: #f26a21; }
.sr-sa__type:hover { border-color: rgba(255, 255, 255, 0.35); }
.sr-sa__type:has(input:checked) { border-color: var(--sr-sa-type); box-shadow: inset 0 0 0 1px var(--sr-sa-type); }
.sr-sa__type:has(input:checked)::before { border-color: var(--sr-sa-type); background: radial-gradient(circle, var(--sr-sa-type) 0 4px, transparent 5px); }
.sr-sa__type:has(input:focus-visible) { outline: 2px solid var(--sr-sa-type); outline-offset: 2px; }

/* Review */
.sr-sa__summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0 0 24px; padding: 20px 24px; border-radius: 12px; background: #101317; font-size: 1.6rem; line-height: 1.4; }
.sr-sa__summary dt { margin: 0; color: rgba(255, 255, 255, 0.55); font-weight: 400; }
.sr-sa__summary dd { margin: 0; color: #ffffff; font-weight: 600; overflow-wrap: anywhere; }

/* Terms box */
.sr-sa .sr-sa__check { position: relative; display: block; margin: 0; padding-left: 32px; color: rgba(255, 255, 255, 0.75); font-size: 1.6rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.sr-sa__check span::before { content: ''; position: absolute; top: 1px; left: 0; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 6px; }
.sr-sa__check input:checked + span::before { border-color: var(--sr-sa-accent); background: var(--sr-sa-accent) 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' 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; }
.sr-sa__check input:focus-visible + span::before { outline: 2px solid var(--sr-sa-accent); outline-offset: 2px; }

/* Magento's CAPTCHA (only when the store requires it) */
.sr-sa__captcha:empty { display: none; }
.sr-sa__captcha .field.captcha { margin: 0 0 24px; }
.sr-sa__captcha .label { display: block; margin: 0 0 8px; color: #ffffff; font-size: 1.6rem; font-weight: 600; }
.sr-sa__captcha .control.captcha input.input-text { width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: #101317; color: #ffffff; font-size: 1.6rem; }
.sr-sa__captcha .control.captcha-image { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sr-sa__captcha .control.captcha-image .captcha-img { border-radius: 8px; background: #ffffff; }
.sr-sa__captcha .captcha-reload { margin: 0; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: transparent; color: #ffffff; font-size: 1.2rem; }
.sr-sa__captcha .captcha-note { margin-top: 8px; color: rgba(255, 255, 255, 0.55); font-size: 1.2rem; }

.sr-sa__error { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 107, 91, 0.12); color: #ff8a7d; font-size: 1.6rem; line-height: 1.5; }

/* Sent */
.sr-sa__done { text-align: center; outline: 0; }
.sr-sa__done-icon { display: block; width: 64px; height: 64px; margin: 8px auto 20px; background: #32cd32; -webkit-mask: var(--sr-sa-tick) center / contain no-repeat; mask: var(--sr-sa-tick) center / contain no-repeat; }
.sr-sa .sr-sa__done h2 { margin: 0 0 8px; color: #ffffff; font-family: 'Barlow', sans-serif; font-size: 2.8rem; font-weight: 600; line-height: 1.2; }
.sr-sa__done p { margin: 0 auto; max-width: 44ch; color: rgba(255, 255, 255, 0.7); font-size: 1.6rem; line-height: 1.6; }

/* Buttons */
.sr-sa__actions { display: flex; align-items: center; gap: 16px; }
.sr-sa__step-note { margin-right: auto; color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; }
.sr-sa .sr-sa__back { order: -1; margin: 0; padding: 14px 24px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: transparent; box-shadow: none; color: #ffffff; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.sr-sa .sr-sa__back:hover { border-color: #ffffff; background: transparent; color: #ffffff; }
.sr-sa .sr-sa__next { margin: 0; padding: 16px 32px; border: 0; border-radius: 999px; background: var(--sr-sa-accent); box-shadow: none; color: #ffffff; font-size: 1.6rem; font-weight: 600; line-height: 1.2; transition: background 0.2s ease; }
.sr-sa .sr-sa__next:hover { background: #d95b17; color: #ffffff; }
.sr-sa .sr-sa__next::after { content: ' →'; }
.sr-sa .sr-sa__next--send::after { content: ''; }
.sr-sa .sr-sa__next[disabled] { opacity: 0.6; cursor: progress; }

/* Side: where to find the card number, what happens next */
.sr-sa__side { display: flex; flex-direction: column; gap: 24px; }
.sr-sa__side > .sr-sa__card { flex: 1 1 auto; }
.sr-sa__card { padding: 32px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; background: rgba(31, 35, 40, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sr-sa .sr-sa__card h2 { margin: 0 0 8px; color: #ffffff; font-family: 'Barlow', sans-serif; font-size: 2.4rem; font-weight: 600; line-height: 1.2; }
.sr-sa__card p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 1.6rem; line-height: 1.6; }
.sr-sa .sr-sa__card-lead { margin: 0 0 12px; color: rgba(255, 255, 255, 0.9); font-size: 1.6rem; }
.sr-sa__sim { margin: 24px auto 0; max-width: 320px; }
.sr-sa__sim img { display: block; width: 100%; height: auto; clip-path: inset(0 0 17% 0); margin-bottom: -12.4%; filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.45)); }

.sr-sa__next-steps { margin: 0; padding: 0; list-style: none; counter-reset: sr-sa; }
.sr-sa .sr-sa__next-steps li { position: relative; margin: 0; padding: 0 0 16px 40px; color: rgba(255, 255, 255, 0.75); font-size: 1.6rem; line-height: 1.5; counter-increment: sr-sa; }
.sr-sa__next-steps li::before { content: counter(sr-sa); position: absolute; top: -1px; left: 0; width: 26px; height: 26px; border: 1px solid #f26a21; border-radius: 50%; color: #f26a21; font-family: 'Barlow', sans-serif; font-size: 1.2rem; font-weight: 600; line-height: 24px; text-align: center; }
.sr-sa .sr-sa__next-steps li:last-child { padding-bottom: 0; }
.sr-sa__next-steps strong { color: #ffffff; }

/* Form and QR card stacked on Mobile and on a Tablet held upright; side by side on a Tablet held sideways */
@media (max-width: 448px), (max-width: 1023px) and (orientation: portrait) {
    .sr-sa__inner { grid-template-columns: minmax(0, 1fr); }
}
/* Mobile: tighter spacing, card types and summary in one column */
@media (max-width: 448px) {
    .sr-sa { padding: 164px 16px 56px; }
    .sr-sa__marquee { --sr-sa-row-1: 14%; --sr-sa-row-2: 52%; }
    .sr-sa__word { font-size: 8rem; -webkit-text-stroke-width: 1.5px; }
    .sr-sa__panel, .sr-sa__card { padding: 24px 16px; }
    .sr-sa .sr-sa__help { top: 20px; right: 16px; }
    .sr-sa__only { padding-right: 52px; }
    .sr-sa__dialog { padding: 24px 20px; }
    .sr-sa__types { grid-template-columns: minmax(0, 1fr); }
    .sr-sa input.sr-sa__input[readonly] { padding-right: 12px; padding-bottom: 18px; height: 68px; font-size: 1.6rem; letter-spacing: 0.03em; }
    .sr-sa__badge { top: auto; bottom: 6px; left: 12px; right: auto; padding: 0; background: none; transform: none; font-size: 1.2rem; }
    .sr-sa__plan { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
    .sr-sa__plan .sr-sa__badge { font-size: 1.2rem; }
    .sr-sa__summary { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px; }
    .sr-sa__summary dd + dt { margin-top: 10px; }
    .sr-sa__actions { flex-wrap: wrap; }
    .sr-sa__step-note { order: 3; width: 100%; text-align: center; }
    .sr-sa .sr-sa__next { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .sr-sa__only::before, .sr-sa__dialog[open] { animation: none; }
    .sr-sa input.sr-sa__input, .sr-sa__type, .sr-sa .sr-sa__steps li, .sr-sa .sr-sa__next { transition: none; }
}
