/* Steeda Return Request Form — styles
   ───────────────────────────────────────────────────────────────────
   Designed to render cleanly inside an iframe on steeda.com.
   Brand palette: deep navy + Steeda red accent on white.
*/

:root {
  --steeda-navy:   #0a2540;
  --steeda-red:    #c8102e;
  --steeda-red-d:  #9b0c23;
  --ink:           #111418;
  --ink-soft:      #4a5562;
  --line:          #d6dbe2;
  --line-soft:     #eef0f4;
  --bg:            #ffffff;
  --bg-soft:       #f7f8fa;
  --error:         #c8102e;
  --success:       #1a7d3b;
  --radius:        6px;
  --shadow-1:      0 1px 2px rgba(10,37,64,.06), 0 2px 8px rgba(10,37,64,.04);
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.returns-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ─── Header ─────────────────────────────────────────────── */
.form-header {
  border-bottom: 3px solid var(--steeda-red);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.form-header h1 {
  margin: 0 0 8px;
  color: var(--steeda-navy);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ─── Sections ───────────────────────────────────────────── */
.form-section {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.form-section h2 {
  margin: 0 0 16px;
  color: var(--steeda-navy);
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.grid:last-child { margin-bottom: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ─── Inputs ─────────────────────────────────────────────── */
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
label:last-child { margin-bottom: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--steeda-navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, .12);
}
textarea { resize: vertical; min-height: 120px; }

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.error {
  display: block;
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  min-height: 0;
}
.error:empty { display: none; }

/* ─── Radio / Checkbox ───────────────────────────────────── */
.radio-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px 4px;
  margin: 0 0 14px;
  background: var(--bg);
}
.radio-group legend {
  font-size: 14px;
  font-weight: 500;
  padding: 0 6px;
}
.radio,
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 0;
}
.radio input,
.checkbox input { margin: 0; width: 18px; height: 18px; accent-color: var(--steeda-red); }
.radio span,
.checkbox span { font-size: 15px; }

/* ─── Inline notice ──────────────────────────────────────── */
.notice {
  margin: 0;
  padding: 10px 14px;
  background: #fff8e6;
  border: 1px solid #e0b040;
  border-radius: var(--radius);
  color: #5c4300;
  font-size: 14px;
}

/* ─── Item rows ──────────────────────────────────────────── */
.item-row {
  display: grid;
  grid-template-columns: 2fr 90px 2fr 32px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.item-row label { margin-bottom: 0; }
.item-remove {
  /* Line up with the inputs, which sit below their label text. */
  margin-top: 27px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steeda-red);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.item-remove:hover { border-color: var(--steeda-red); }
@media (max-width: 640px) {
  .item-row {
    grid-template-columns: 1fr;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .item-remove { margin-top: 0; }
}

.btn-secondary {
  background: var(--bg);
  color: var(--steeda-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--steeda-navy);
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(10, 37, 64, .06); }

/* ─── Upload zone ────────────────────────────────────────── */
.upload-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 6px;
  color: var(--ink);
}
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: var(--bg);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.upload-zone.dragover {
  border-color: var(--steeda-navy);
  background: rgba(10, 37, 64, .04);
}
.upload-zone.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.upload-zone-inner strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--steeda-navy);
}
.upload-zone-inner span { display: block; font-size: 14px; color: var(--ink-soft); }
.upload-zone-inner small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
#upload-browse {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--steeda-navy);
  text-decoration: underline;
  cursor: pointer;
}

.upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
}
.upload-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 14px;
}
.upload-list .remove {
  background: none;
  border: none;
  color: var(--steeda-red);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

/* ─── Footer / submit ────────────────────────────────────── */
.form-footer {
  margin-top: 24px;
  text-align: center;
}
.btn-primary {
  background: var(--steeda-red);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--steeda-red-d); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.recaptcha-notice {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.recaptcha-notice a { color: var(--ink-soft); }

/* ─── Submit progress ────────────────────────────────────── */
.submit-progress {
  max-width: 420px;
  margin: 18px auto 0;
}
.progress-track {
  height: 8px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 100%;
  background: var(--steeda-navy);
  /* Fill is driven by scaleX (set from form.js) rather than width, so the
     animation doesn't trigger layout. */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease-out;
}
/* Upload is done and we're waiting on the server: no percentage to show. */
.progress-track.indeterminate .progress-bar {
  width: 40%;
  transition: none;
  animation: progress-slide 1.2s ease-in-out infinite;
}
@keyframes progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .progress-track.indeterminate .progress-bar {
    width: 100%;
    transform: none;
    animation: none;
    opacity: .6;
  }
}
.progress-text {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--error);
  min-height: 1.5em;
}
.form-status.success { color: var(--success); }

/* ─── Success state ──────────────────────────────────────── */
.form-success {
  background: #e8f4ec;
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 16px;
}
.form-success h2 {
  margin: 0 0 12px;
  color: var(--success);
}

/* ─── Print / no-flash ───────────────────────────────────── */
[hidden] { display: none !important; }
