/* ==============================================
   QUEJAS Y SUGERENCIAS — Formulario multi-paso
   Figma: node 23031:135143
   ============================================== */

/* Hide Drupal page title injected block */
#block-icac-theme-page-title { display: none !important; }

/* ── PAGE WRAPPER ── */
.qs-form-page {
  background: #ffffff;
  padding: 64px 0;
  min-height: 60vh;
}

.qs-form-page__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 128px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── BREADCRUMB ── */
.qs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.qs-breadcrumb__link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  text-decoration: none;
  white-space: nowrap;
}
.qs-breadcrumb__link:hover { text-decoration: underline; }

.qs-breadcrumb__sep {
  flex-shrink: 0;
  opacity: 0.7;
}

.qs-breadcrumb__current {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  white-space: nowrap;
}

/* ── PAGE TITLE ── */
.qs-page-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

/* ── FORM CARD ── */
.qs-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end; /* so footer buttons flush right */
}

/* ── PROGRESS BAR ── */
.qs-progress {
  width: 100%;
  align-self: stretch;
}

.qs-progress__track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(185,28,28,0.18);
  overflow: hidden;
  width: 100%;
}

.qs-progress__fill {
  height: 100%;
  background: #b91c1c;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* ── STEP (visibility) ── */
.qs-step { width: 100%; }
.qs-step--active { display: block; }

/* ── FORM LAYOUT ── */
.qs-form__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.qs-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.qs-form__row--full {
  grid-template-columns: 1fr;
}

.qs-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qs-form__field--textarea {
  width: 100%;
}

.qs-form__label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1;
}

.qs-form__input {
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.qs-form__input:focus { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,0.1); }
.qs-form__input.qs-form__input--error { border-color: #ef4444; }

/* Select */
.qs-form__select-wrap {
  position: relative;
}

.qs-form__select {
  appearance: none;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 36px 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.qs-form__select:focus { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,0.1); }
.qs-form__select:not([value=""]):not(:invalid) { color: #0a0a0a; }

.qs-form__select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Textarea */
.qs-form__textarea {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
  width: 100%;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.qs-form__textarea:focus { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,0.1); }

/* File upload */
.qs-form__file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  gap: 12px;
}

.qs-form__file-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.qs-form__file-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qs-form__file-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-form__file-input {
  display: none;
}

.qs-form__file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #172554;
  color: #fafafa;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  height: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.2s;
}
.qs-form__file-btn:hover { background: #1e3a8a; }

.qs-form__file-info {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ── FORM FOOTER / BUTTONS ── */
.qs-form__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qs-btn--primary {
  background: #b91c1c;
  color: #fafafa;
  border-color: #b91c1c;
}
.qs-btn--primary:hover { background: #991b1b; border-color: #991b1b; }

.qs-btn--outline {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #e5e5e5;
}
.qs-btn--outline:hover { background: #f8fafc; }

/* Error message */
.qs-form__error {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #dc2626;
  margin: 4px 0 0;
}

/* ══════════════════════════════════════
   PASO 2: REVISIÓN
══════════════════════════════════════ */
.qs-review {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-review__title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.qs-review__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #525252;
  margin: -12px 0 0;
}

.qs-review__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
}

.qs-review__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qs-review__item--full {
  grid-column: 1 / -1;
}

.qs-review__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qs-review__value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  font-weight: 500;
}

.qs-review__value--message {
  white-space: pre-wrap;
  font-weight: 400;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   PASO 3: ÉXITO
══════════════════════════════════════ */
.qs-success {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  text-align: center;
}

.qs-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-success__title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.qs-success__body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #525252;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.qs-success__ref {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #525252;
  margin: 0;
}

.qs-success__ref-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qs-success__ref-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #525252;
  font-weight: 500;
}

.qs-success__ref-num {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #172554;
  letter-spacing: 0.05em;
}

.qs-success__back {
  margin-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .qs-form-page__inner { padding: 0 48px; }
}

@media (max-width: 768px) {
  .qs-form-page__inner { padding: 0 24px; }
  .qs-form__row { grid-template-columns: 1fr; }
  .qs-review__grid { grid-template-columns: 1fr; }
  .qs-review__item--full { grid-column: 1; }
  .qs-page-title { font-size: 26px; }
}
