/* Request a Repair page */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rq-section { padding: 48px 0 140px; }
.rq-intro { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.rq-intro h2 { color: #fff; }
.rq-intro p { margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.rq-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: #fff;
}

/* Progress */
.rq-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 36px; }
.rq-progress li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.rq-progress li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.rq-progress li.is-active, .rq-progress li.is-done { border-top-color: var(--brand); color: #fff; }
.rq-progress li.is-active span, .rq-progress li.is-done span { background: var(--brand); border-color: var(--brand); color: #000; }

/* Steps */
.rq-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.rq-step h2, .rq-done h2 { color: #fff; font-size: 28px !important; line-height: 1.2 !important; letter-spacing: -0.5px; outline: none; }
.rq-sub { margin-top: 6px; color: var(--muted); }
.rq-label { display: block; margin: 26px 0 10px; font-size: 16px; font-weight: 700; }
.rq-label span { color: var(--muted); font-weight: 400; }
.rq-input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #0a0a0a;
  color: #fff;
  font-size: 17px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rq-input::placeholder { color: #7a7a7a; }
.rq-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(94, 191, 64, 0.25); }
textarea.rq-input { resize: vertical; min-height: 110px; }
.rq-hint { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rq-hint a { color: var(--brand); text-decoration: underline; }
.rq-center { text-align: center; }
.rq-grid { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .rq-grid { grid-template-columns: 1fr 1fr; } }

/* Device tiles */
.rq-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .rq-tiles { grid-template-columns: repeat(3, 1fr); } }
.rq-tile { position: relative; cursor: pointer; }
.rq-tile input { position: absolute; opacity: 0; pointer-events: none; }
.rq-tile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 18px 10px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #0a0a0a;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rq-tile-body svg { width: 30px; height: 30px; color: var(--muted); }
.rq-tile:hover .rq-tile-body { border-color: #555; }
.rq-tile input:checked + .rq-tile-body { border-color: var(--brand); background: rgba(94, 191, 64, 0.1); }
.rq-tile input:checked + .rq-tile-body svg { color: var(--brand); }
.rq-tile input:focus-visible + .rq-tile-body { box-shadow: 0 0 0 3px rgba(94, 191, 64, 0.4); }

/* Chips */
.rq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rq-chip { position: relative; cursor: pointer; }
.rq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rq-chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #0a0a0a;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rq-chip:hover span { border-color: #555; }
.rq-chip input:checked + span { border-color: var(--brand); background: var(--brand); color: #000; font-weight: 600; }
.rq-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(94, 191, 64, 0.4); }

/* Photos */
.rq-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 2px dashed #3a3a3a;
  border-radius: 14px;
  background: #0a0a0a;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.rq-drop:hover { border-color: var(--brand); }
.rq-drop svg { width: 34px; height: 34px; color: var(--brand); }
.rq-drop span { color: var(--muted); font-size: 14px; }
.rq-drop[hidden] { display: none; }
#rq-photos:focus-visible + .rq-photos, .rq-drop:focus-within { border-color: var(--brand); }
.rq-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.rq-photos li { position: relative; width: 96px; height: 96px; }
.rq-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.rq-photos button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 18px;
  line-height: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.rq-error { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(239, 68, 68, 0.12); color: #fca5a5; font-size: 15px; }
.rq-error[hidden] { display: none; }
.rq-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.rq-back { padding: 12px 4px; color: var(--muted); font-size: 16px; font-weight: 600; text-decoration: underline; }
.rq-back:hover { color: #fff; }
.rq-next, .rq-send { min-width: 190px; padding-left: 28px; padding-right: 28px; font-size: 16px; }
.rq-send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.rq-send svg { width: 22px; height: 22px; }
.rq-send:disabled { opacity: 0.6; cursor: wait; }
.rq-status { margin-top: 16px; text-align: center; color: var(--brand); font-weight: 600; }

/* Review */
.rq-summary { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rq-summary-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: start; padding: 14px 18px; }
.rq-summary-row + .rq-summary-row { border-top: 1px solid var(--line); }
.rq-summary dt { color: var(--muted); font-size: 15px; }
.rq-summary dd { font-size: 16px; line-height: 1.45; white-space: pre-line; word-break: break-word; }
.rq-edit { color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: underline; }
.rq-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.rq-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #5ebf40; }
.rq-consent a { color: var(--brand); text-decoration: underline; }

/* Done */
.rq-done { text-align: center; padding: 12px 0; }
.rq-done[hidden] { display: none; }
.rq-done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: rgba(94, 191, 64, 0.15); color: var(--brand); }
.rq-done-icon svg { width: 34px; height: 34px; }
.rq-done p { max-width: 520px; margin: 14px auto 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.rq-done .button { display: inline-block; margin-top: 26px; padding-left: 32px; padding-right: 32px; }
.rq-photo-note { color: #fcd34d !important; }

@media (max-width: 639px) {
  .rq-section { padding: 32px 0 100px; }
  .rq-card { padding: 22px 18px; border-radius: 18px; }
  .rq-progress { margin-bottom: 26px; font-size: 12px; }
  .rq-progress li { font-size: 12px; }
  .rq-step h2, .rq-done h2 { font-size: 23px !important; }
  .rq-nav { flex-direction: column-reverse; align-items: stretch; }
  .rq-next, .rq-send { width: 100%; }
  .rq-back { text-align: center; }
  .rq-summary-row { grid-template-columns: 1fr auto; }
  .rq-summary dt { grid-column: 1 / -1; margin-bottom: -6px; font-size: 13px; }
}

/* Light theme */
body.light-theme .rq-card { background: #fff !important; border-color: #e5e5e5; color: #111 !important; }
body.light-theme .rq-intro h2, body.light-theme .rq-step h2, body.light-theme .rq-done h2 { color: #111; }
body.light-theme .rq-input, body.light-theme .rq-tile-body, body.light-theme .rq-chip span, body.light-theme .rq-drop { background: #fafafa; border-color: #d4d4d4; color: #111; }
body.light-theme .rq-progress li.is-active, body.light-theme .rq-progress li.is-done { color: #111; }
body.light-theme .rq-progress li span { background: #f5f5f5; border-color: #e5e5e5; }
body.light-theme .rq-summary, body.light-theme .rq-summary-row + .rq-summary-row { border-color: #e5e5e5; }
body.light-theme .rq-back:hover { color: #111; }
body.light-theme .rq-error { color: #b91c1c; }

/* Brand and model dropdowns */
.rq-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235ebf40' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.rq-select:disabled { opacity: 0.55; cursor: not-allowed; }
.rq-select option, .rq-select optgroup { background: #111; color: #fff; }
.rq-model-phone[hidden], .rq-model-text[hidden], .rq-model-other[hidden], .rq-brand-wrap[hidden] { display: none; }
body.light-theme .rq-select option, body.light-theme .rq-select optgroup { background: #fff; color: #111; }

/* Plan chosen on the pricing page */
.rq-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(94, 191, 64, 0.5);
  border-radius: 14px;
  background: rgba(94, 191, 64, 0.08);
}
.rq-plan[hidden] { display: none; }
.rq-plan span { grid-column: 1; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.rq-plan strong { grid-column: 1; font-size: 19px; }
.rq-plan small { grid-column: 1; color: var(--muted); font-size: 14px; }
.rq-plan p { grid-column: 1 / -1; margin-top: 8px; color: #d4d4d4; font-size: 14px; line-height: 1.5; }
.rq-plan a { grid-column: 2; grid-row: 1 / span 3; color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
body.light-theme .rq-plan p { color: #333; }
