/* ==========================================================================
   ARF Workshop Service Request — workshop-request.css  (wsr-* prefix)
   Loaded via @push('head') in workshops::request blade.
   Website layout — arf-tokens.css available but hex values used directly
   for cross-layout consistency.
   ========================================================================== */

/* ── Workshop Hero ───────────────────────────────────────────────────────── */
.wsr-hero {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  padding: 2.25rem 0 0;
  position: relative;
  overflow: hidden;
}
.wsr-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(138, 26, 31, 0.20);
  pointer-events: none;
}
.wsr-hero::after {
  content: '';
  position: absolute;
  bottom: 40px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.wsr-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wsr-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.wsr-hero-breadcrumb a {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.wsr-hero-breadcrumb a:hover { color: rgba(255, 255, 255, 0.75); }
.wsr-hero-breadcrumb-sep {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.2);
}
.wsr-hero-breadcrumb span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.wsr-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 1.75rem;
}
.wsr-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.wsr-hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.25rem;
}
.wsr-hero-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}
.wsr-hero-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* Process strip */
.wsr-process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 0.5rem;
}
.wsr-process-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.125rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.wsr-process-step:last-child { border-right: none; }
.wsr-process-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.wsr-process-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}
.wsr-process-hint {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.45;
  margin-top: 0.1rem;
}

/* ── Page Container ──────────────────────────────────────────────────────── */
.wsr-page {
  padding: 2rem 0 3.5rem;
  background: #f7f7f8;
}
.wsr-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Guest Notice ────────────────────────────────────────────────────────── */
.wsr-guest-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(138, 26, 31, 0.04);
  border: 1px solid rgba(138, 26, 31, 0.12);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #696665;
  line-height: 1.6;
}
.wsr-guest-notice i {
  font-size: 1rem;
  color: #8a1a1f;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}
.wsr-guest-notice a {
  color: #8a1a1f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Error ───────────────────────────────────────────────────────────────── */
.wsr-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #922b21;
  line-height: 1.5;
}
.wsr-error i { font-size: 1rem; flex-shrink: 0; color: #c0392b; margin-top: 0.0625rem; }

/* ── Section Cards ───────────────────────────────────────────────────────── */
.wsr-section {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.wsr-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid #f5f5f5;
}
.wsr-section-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}
.wsr-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8a1a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
}
.wsr-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(138, 26, 31, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a1a1f;
  font-size: 0.9375rem;
}
.wsr-section-meta { flex: 1; min-width: 0; }
.wsr-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #24272c;
  margin: 0 0 0.1875rem;
  letter-spacing: -0.01em;
}
.wsr-section-hint {
  font-size: 0.75rem;
  color: #8e8e93;
  margin: 0;
  line-height: 1.5;
}
.wsr-section-body {
  padding: 1.375rem;
}

/* ── Form Controls ───────────────────────────────────────────────────────── */
.wsr-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #24272c;
  margin-bottom: 0.4375rem;
}
.wsr-required { color: #8a1a1f; margin-left: 0.125rem; }
.wsr-optional {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #8e8e93;
  margin-left: 0.25rem;
}
.wsr-input,
.wsr-select,
.wsr-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e2e2;
  border-radius: 9px;
  font-size: 0.9rem;
  color: #24272c;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
}
.wsr-input::placeholder,
.wsr-textarea::placeholder { color: #b0b0b5; }
.wsr-input:focus,
.wsr-select:focus,
.wsr-textarea:focus {
  border-color: #8a1a1f;
  box-shadow: 0 0 0 3px rgba(138, 26, 31, 0.08);
}
.wsr-input.is-invalid,
.wsr-select.is-invalid,
.wsr-textarea.is-invalid { border-color: #c0392b; }
.wsr-input--mono { font-family: 'Courier New', monospace; letter-spacing: 0.04em; text-transform: uppercase; }
textarea.wsr-textarea { resize: vertical; min-height: 110px; }
select.wsr-select { cursor: pointer; }

.wsr-invalid-msg {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 0.3125rem;
  display: block;
}
.wsr-hint {
  font-size: 0.75rem;
  color: #8e8e93;
  margin-top: 0.3125rem;
  display: block;
  line-height: 1.5;
}

/* ── Vehicle Row ─────────────────────────────────────────────────────────── */
.wsr-vin-row {
  margin-bottom: 1rem;
}
.wsr-vehicle-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.wsr-field { display: flex; flex-direction: column; }
.wsr-field + .wsr-field { margin-top: 1rem; }
/* Cancel stacked-field margin inside grid rows */
.wsr-vehicle-row > .wsr-field,
.wsr-vehicle-row > .wsr-field + .wsr-field { margin-top: 0; }
.wsr-contact-row--split > .wsr-field,
.wsr-contact-row--split > .wsr-field + .wsr-field { margin-top: 0; }

/* ── Service Type Grid ───────────────────────────────────────────────────── */
.wsr-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.375rem;
}
.wsr-type-item {
  cursor: pointer;
  display: block;
  user-select: none;
}
.wsr-type-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.wsr-type-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.wsr-type-item:hover .wsr-type-card {
  border-color: rgba(138, 26, 31, 0.35);
  background: rgba(138, 26, 31, 0.025);
}
.wsr-type-input:checked + .wsr-type-card {
  border-color: #8a1a1f;
  background: rgba(138, 26, 31, 0.05);
}
.wsr-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
  background: #f5f5f6;
  color: #696665;
  transition: background 0.15s, color 0.15s;
}
.wsr-type-input:checked + .wsr-type-card .wsr-type-icon {
  background: rgba(138, 26, 31, 0.1);
  color: #8a1a1f;
}
.wsr-type-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #24272c;
  line-height: 1.2;
  transition: color 0.15s;
}
.wsr-type-input:checked + .wsr-type-card .wsr-type-name { color: #8a1a1f; }
.wsr-type-error {
  font-size: 0.75rem;
  color: #c0392b;
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Date / Time Row ─────────────────────────────────────────────────────── */
.wsr-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* ── Upload Zones ────────────────────────────────────────────────────────── */
.wsr-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
}
.wsr-upload-zone {
  border: 1.5px dashed #d8d8d8;
  border-radius: 11px;
  padding: 1.125rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.wsr-upload-zone:focus-within {
  border-color: rgba(138, 26, 31, 0.4);
  background: rgba(138, 26, 31, 0.02);
}
.wsr-upload-icon {
  font-size: 1.5rem;
  color: #b0b0b5;
  display: block;
  margin-bottom: 0.375rem;
}
.wsr-upload-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #24272c;
  margin-bottom: 0.2rem;
}
.wsr-upload-limit {
  font-size: 0.6875rem;
  color: #8e8e93;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.wsr-upload-file-input {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  color: #696665;
  cursor: pointer;
}
.wsr-upload-file-input::file-selector-button {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 0.3125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #24272c;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.15s;
}
.wsr-upload-file-input::file-selector-button:hover { background: #f5f5f5; }
.wsr-upload-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  margin-top: 0.5rem;
  background: rgba(20, 160, 119, 0.08);
  border: 1px solid rgba(20, 160, 119, 0.2);
  color: #0a6b4e;
}
.wsr-upload-badge i { color: #14a077; }
.wsr-upload-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #8e8e93;
  margin-top: 0.5rem;
}
.wsr-upload-invalid {
  font-size: 0.75rem;
  color: #c0392b;
  display: block;
  margin-top: 0.375rem;
}

/* ── Contact Row ─────────────────────────────────────────────────────────── */
.wsr-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wsr-contact-row--split {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0;
}

/* ── Submit ──────────────────────────────────────────────────────────────── */
.wsr-submit-wrap { margin-top: 0.5rem; }
.wsr-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9375rem 1.5rem;
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8a1a1f 0%, #6b1417 100%);
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 14px rgba(138, 26, 31, 0.28);
  letter-spacing: -0.01em;
  font-family: inherit;
}
.wsr-submit-btn:hover {
  opacity: 0.9;
  box-shadow: 0 5px 20px rgba(138, 26, 31, 0.36);
}
.wsr-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.wsr-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #8e8e93;
  margin-top: 0.875rem;
  text-align: center;
}
.wsr-trust-note i { color: #14a077; font-size: 0.875rem; }

/* ── Success State ───────────────────────────────────────────────────────── */
.wsr-success {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}
.wsr-success-head {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  padding: 2.75rem 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}
.wsr-success-head::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(20, 160, 119, 0.18);
  pointer-events: none;
}
.wsr-success-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(20, 160, 119, 0.14);
  border: 2px solid rgba(20, 160, 119, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem;
  font-size: 1.875rem;
  color: #5de8c5;
  position: relative;
  z-index: 1;
}
.wsr-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}
.wsr-success-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}
.wsr-success-body { padding: 2rem 2rem 2.25rem; }
.wsr-success-ref-block {
  background: #f7f7f8;
  border: 1px dashed #d8d8d8;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.625rem;
}
.wsr-success-ref-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8e8e93;
  margin-bottom: 0.375rem;
  display: block;
}
.wsr-success-ref-code {
  font-size: 1.75rem;
  font-weight: 800;
  color: #8a1a1f;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.3rem;
}
.wsr-success-ref-note {
  font-size: 0.8125rem;
  color: #8e8e93;
}
.wsr-success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.wsr-success-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6875rem 1.375rem;
  border: none;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8a1a1f 0%, #6b1417 100%);
  text-decoration: none;
  transition: opacity 0.15s;
  box-shadow: 0 2px 8px rgba(138, 26, 31, 0.25);
}
.wsr-success-btn-primary:hover { opacity: 0.9; color: #fff; }
.wsr-success-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6875rem 1.375rem;
  border: 1px solid #e2e2e2;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #696665;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.wsr-success-btn-secondary:hover {
  border-color: #8a1a1f;
  color: #8a1a1f;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .wsr-vehicle-row  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .wsr-hero-name    { font-size: 1.25rem; }
  .wsr-process-strip { grid-template-columns: 1fr; }
  .wsr-process-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .wsr-process-step:last-child { border-bottom: none; }
  .wsr-type-grid    { grid-template-columns: 1fr 1fr; }
  .wsr-datetime-row { grid-template-columns: 1fr; }
  .wsr-upload-row   { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .wsr-vehicle-row  { grid-template-columns: 1fr 1fr; }
  .wsr-contact-row--split { grid-template-columns: 1fr; }
  .wsr-success-actions { flex-direction: column; }
  .wsr-success-btn-primary,
  .wsr-success-btn-secondary { justify-content: center; }
  .wsr-section-body { padding: 1rem; }
  .wsr-section-head { padding: 0.875rem 1rem; }
}
@media (max-width: 400px) {
  .wsr-type-grid { grid-template-columns: 1fr 1fr; }
  .wsr-vehicle-row { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wsr-type-card,
  .wsr-type-icon,
  .wsr-type-name,
  .wsr-upload-zone,
  .wsr-input, .wsr-select, .wsr-textarea,
  .wsr-submit-btn,
  .wsr-success-btn-primary,
  .wsr-success-btn-secondary,
  .wsr-upload-file-input::file-selector-button,
  .wsr-hero-breadcrumb a { transition: none !important; }
}
