/* =========================================================================
   Carpeta Estructural Semántica: reqmodal_
   Shared two-column request modal. Themed via .is-gold / .is-blue on the
   panel, which set --accent + --accent-rgb; all accents derive from those.
   ========================================================================= */

.reqmodal_backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.reqmodal_backdrop[hidden] {
  display: none;
}

.reqmodal_panel {
  position: relative;
  width: 100%;
  max-width: 58rem;          /* 928px */
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 20rem 1fr;
  background: var(--c-card-dark);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--r-container);
}

/* ─── Theme tokens ─── */
.reqmodal_panel.is-gold {
  --accent: var(--c-gold);
  --accent-rgb: 246, 180, 14;
}
.reqmodal_panel.is-blue {
  --accent: var(--c-celeste);
  --accent-rgb: 116, 172, 223;
}

/* ─── Close ─── */
.reqmodal_close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 2;
  width: 2.375rem;
  height: 2.375rem;
  background: rgba(7, 8, 9, 0.6);
  border: 1px solid rgba(216, 216, 211, 0.18);
  border-radius: var(--r-button);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.reqmodal_close:hover {
  border-color: rgba(216, 216, 211, 0.4);
}

.reqmodal_close svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--c-ghost);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Left aside ─── */
.reqmodal_aside {
  padding: 2.5rem 2rem;
  background:
    radial-gradient(130% 60% at 0% 0%, rgba(var(--accent-rgb), 0.10), rgba(var(--accent-rgb), 0) 62%),
    var(--c-band-edge);
  border-right: 1px solid var(--c-hairline);
  display: flex;
  flex-direction: column;
}

.reqmodal_aside-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.reqmodal_aside-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--c-ghost);
  text-transform: uppercase;
  margin: 0.875rem 0 0;
}

.reqmodal_aside-lead {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-ghost-grey);
  margin: 1rem 0 0;
}

/* Company location (viewing) */
.reqmodal_aside-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--c-ghost);
}

.reqmodal_aside-location svg {
  flex: none;
  width: 1.0625rem;
  height: 1.0625rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbered steps (viewing) */
.reqmodal_steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.reqmodal_step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reqmodal_step-num {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
}

.reqmodal_step-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--c-ghost);
}

/* Dotted point list (contact) */
.reqmodal_points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reqmodal_point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--c-ghost);
}

.reqmodal_point::before {
  content: '';
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.reqmodal_aside-note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--c-atlantic-sky);
}

.reqmodal_aside-note svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Right form ─── */
.reqmodal_form-wrap {
  padding: 2.5rem;
}

.reqmodal_title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  color: var(--c-ghost);
  text-transform: uppercase;
  margin: 0;
}

.reqmodal_subtitle {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--c-ghost-grey);
  margin: 0.5rem 0 1.625rem;
}

.reqmodal_fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reqmodal_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reqmodal_field-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reqmodal_field-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--c-atlantic-sky);
  margin-bottom: 0.5rem;
}

.reqmodal_req {
  color: var(--accent);
}

.reqmodal_input {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--c-canvas);
  border: 1px solid rgba(216, 216, 211, 0.2);
  border-radius: var(--r-button);
  color: var(--c-ghost);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  outline: none;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reqmodal_input::placeholder {
  color: var(--c-shadow-grey);
}

.reqmodal_input:focus {
  border-color: rgba(216, 216, 211, 0.55);
}

.reqmodal_input.is-error {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent);
}

.reqmodal_textarea {
  min-height: 5rem;
  line-height: 1.5;
  resize: vertical;
}

.reqmodal_field-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--c-atlantic-sky);
  margin: 0.4375rem 0 0;
}

/* ─── Multi date-range picker ─── */
.reqmodal_dates {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.reqmodal_date-row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.875rem;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-button);
}

/* Single-day checkbox + remove */
.reqmodal_date-oneday-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reqmodal_date-oneday {
  flex: none;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.reqmodal_date-oneday-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--c-ghost-grey);
  cursor: pointer;
}

.reqmodal_date-remove {
  margin-left: auto;
  flex: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(216, 216, 211, 0.18);
  border-radius: var(--r-button);
  color: var(--c-ghost-grey);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.reqmodal_date-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reqmodal_date-remove[hidden] {
  display: none;
}

/* From / To fields */
.reqmodal_date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.reqmodal_date-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reqmodal_date-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;     /* 10px */
  letter-spacing: 0.12em;
  color: var(--c-atlantic-sky);
}

.reqmodal_date-from,
.reqmodal_date-to {
  width: 100%;
}

/* Single-day: hide "To", the remaining field spans full width */
.reqmodal_date-row.is-oneday .reqmodal_date-field--to {
  display: none;
}
.reqmodal_date-row.is-oneday .reqmodal_date-inputs {
  grid-template-columns: 1fr;
}

/* Mobile: both date fields full width, stacked */
@media (max-width: 600px) {
  .reqmodal_date-inputs {
    grid-template-columns: 1fr;
  }
}

.reqmodal_add-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  border-radius: var(--r-button);
  padding: 0.5rem 0.8125rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reqmodal_add-btn:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
}

/* ─── Submit + switch ─── */
.reqmodal_submit {
  margin-top: 0.75rem;
  width: 100%;
}

.reqmodal_switch-row {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

/* In the aside (left column, desktop) — stacked and left-aligned */
.reqmodal_switch-row--aside {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
}

.reqmodal_switch-text {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: var(--c-ghost-grey);
}

.reqmodal_switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: color 0.2s ease;
}

.reqmodal_switch:hover {
  color: var(--c-ghost);
}

.reqmodal_switch svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Confirmation ─── */
.reqmodal_confirmation {
  padding: 1rem 0;
}

.reqmodal_confirmation[hidden],
.reqmodal_form-state[hidden] {
  display: none;
}

.reqmodal_confirm-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  margin-bottom: 1.25rem;
}

.reqmodal_confirm-badge svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reqmodal_confirm-body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ghost-grey);
  margin: 0.875rem 0 0;
  max-width: 34rem;
}

.reqmodal_confirm-eta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--r-button);
  background: rgba(var(--accent-rgb), 0.07);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--c-ghost);
}

.reqmodal_confirm-eta svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reqmodal_confirm-close {
  display: block;
  width: 100%;
  margin-top: 2rem;
}

/* ─── Responsive ─── */
@media (max-width: 760px) {
  /* Full-screen sheet on touch — fills the viewport, still an in-page overlay */
  .reqmodal_backdrop {
    padding: 0;
  }
  .reqmodal_panel {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;          /* accounts for mobile browser chrome */
    max-height: none;
    border: none;
    border-radius: 0;
  }
  .reqmodal_aside {
    border-right: none;
    border-bottom: 1px solid var(--c-hairline);
  }
  .reqmodal_aside-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 520px) {
  .reqmodal_row {
    grid-template-columns: 1fr;
  }
  .reqmodal_form-wrap,
  .reqmodal_aside {
    padding: 1.75rem 1.5rem;
  }
}

/* =========================================================================
   Contact step wizard (mobile only) — .cm-*
   Hidden by default; shown when JS adds .is-wizard to the contact panel.
   ========================================================================= */
.cm-wizard {
  display: none;
}

@media (max-width: 600px) {
  .reqmodal_panel.is-wizard .reqmodal_aside,
  .reqmodal_panel.is-wizard .reqmodal_form-state {
    display: none;
  }
  .reqmodal_panel.is-wizard .reqmodal_form-wrap {
    padding: 0;
    height: 100%;
    min-height: 0;
    /* Keep the accent gradient across every wizard screen (aside is hidden here) */
    background:
      radial-gradient(125% 50% at 0% 0%, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 62%),
      var(--c-card-dark);
  }
  .reqmodal_panel.is-wizard .cm-wizard {
    display: flex;
  }
  .reqmodal_panel.is-wizard .reqmodal_confirmation {
    padding: 2.5rem 1.5rem;
  }
}

.cm-wizard {
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Top bar: back + step counter */
.cm-wizard-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 3.75rem;   /* right room for the modal close button */
  flex: none;
}

.cm-wizard-back {
  position: absolute;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--c-ghost-grey);
  transition: color 0.2s ease;
}

.cm-wizard-back:hover {
  color: var(--c-ghost);
}

.cm-wizard-back[hidden] {
  display: none;
}

.cm-wizard-back svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-wizard-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--c-atlantic-sky);
}

.cm-wizard-count[hidden] {
  display: none;
}

/* Screens: one fills the space at a time */
.cm-screens {
  position: relative;
  flex: 1;
  min-height: 0;
}

.cm-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
}

.cm-screen.is-active {
  display: flex;
}

.cm-screen-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

/* Intro & review fill the height (button sits at the bottom / list scrolls) */
.cm-screen--intro .cm-screen-body,
.cm-screen--review .cm-screen-body {
  flex: 1;
  overflow-y: auto;
}

.cm-screen-foot {
  flex: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Typography inside the wizard */
.cm-eyebrow,
.cm-step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cm-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ghost);
  margin: 0.75rem 0 0;
}

.cm-step-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ghost);
  margin: 0.5rem 0 0.375rem;
}

.cm-lead {
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-ghost-grey);
  margin: 1rem 0 0;
}

.cm-points {
  margin-top: 1.5rem;
}

.cm-hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--c-atlantic-sky);
  margin: 0.25rem 0 0;
}

.cm-switch {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-align: center;
  transition: color 0.2s ease;
}

.cm-switch:hover {
  color: var(--c-ghost);
}

/* Review list */
.cm-review {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.cm-review-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--c-hairline);
}

.cm-review-k {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--c-atlantic-sky);
}

.cm-review-v {
  grid-column: 1;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-ghost);
  white-space: pre-wrap;
  word-break: break-word;
}

.cm-review-edit {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  background: none;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-button);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: border-color 0.2s ease;
}

.cm-review-edit:hover {
  border-color: var(--accent);
}
