/* ══════════════════════════════════════════
   rfq.css — RFQ Submission Page
   ══════════════════════════════════════════ */

.rfq-main {
  padding: 24px 0 80px;
  min-height: 70vh;
}

/* ── Breadcrumb ── */
.rfq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(157, 176, 199, 0.45);
  margin-bottom: 28px;
}
.rfq-breadcrumb a {
  color: rgba(157, 176, 199, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.rfq-breadcrumb a:hover {
  color: var(--gold);
}
.rfq-breadcrumb i {
  font-size: 0.6rem;
}
.rfq-breadcrumb span {
  color: rgba(226, 232, 240, 0.75);
}

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.rfq-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 44px;
  border-radius: 20px;
  margin-bottom: 36px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rfq-hero__content {
  flex: 1;
}

.rfq-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #081223;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.rfq-hero__badge i {
  font-size: 0.7rem;
}

.rfq-hero__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.rfq-hero__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  max-width: 520px;
}

/* Hero Steps */
.rfq-hero__visual {
  flex-shrink: 0;
}

.rfq-hero__steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.rfq-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rfq-step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.3s;
}

.rfq-step:first-child .rfq-step__num {
  background: linear-gradient(135deg, #C9A227, #F2D05C);
  border-color: #F2D05C;
  color: #0d1b2a;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.rfq-step__text {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.rfq-step__line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin: 0 4px;
  margin-bottom: 22px;
}

/* ══════════════════════════
   LAYOUT (form + sidebar)
   ══════════════════════════ */
.rfq-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ══════════════════════════
   FORM
   ══════════════════════════ */
.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rfq-fieldset {
  border: none;
  padding: 28px 32px 32px;
  margin: 0 0 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rfq-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding: 0;
}

.rfq-legend__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--gold);
  font-size: 1rem;
}

.rfq-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.rfq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
}

.rfq-field--half {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.rfq-field--third {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.rfq-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rfq-req {
  color: #ef4444;
  margin-right: 2px;
}

.rfq-input,
.rfq-select,
.rfq-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rfq-input::placeholder,
.rfq-textarea::placeholder {
  color: rgba(157, 176, 199, 0.35);
}

.rfq-input:focus,
.rfq-select:focus,
.rfq-textarea:focus {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.rfq-textarea {
  resize: vertical;
  min-height: 80px;
}

.rfq-select-wrap {
  position: relative;
}

.rfq-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 36px;
  cursor: pointer;
}

.rfq-select option {
  background: #0a1827;
  color: #EAF0F8;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'Vazirmatn', sans-serif;
}

.rfq-select option:checked {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.15));
}

.rfq-select option:disabled {
  color: rgba(157, 176, 199, 0.4);
}

.rfq-select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.2s, color 0.2s;
}

.rfq-select:focus ~ .rfq-select-icon {
  color: var(--gold);
}

/* Input group (with suffix) */
.rfq-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.rfq-input-group .rfq-input {
  padding-left: 60px;
}

.rfq-input-suffix {
  position: absolute;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

/* ══════════════════════════
   FILE UPLOAD
   ══════════════════════════ */
.rfq-upload {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.rfq-upload:hover,
.rfq-upload.rfq-upload--dragover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.03);
}

.rfq-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rfq-upload__content {
  cursor: pointer;
}

.rfq-upload__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.7;
}

.rfq-upload__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.rfq-upload__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.rfq-upload__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rfq-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.rfq-file-chip__remove {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.rfq-file-chip__remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ══════════════════════════
   FORM ACTIONS
   ══════════════════════════ */
.rfq-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding-top: 8px;
}

.rfq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease, filter 0.2s ease;
}

/* ── Draft (Glass 3D) ── */
.rfq-btn--draft {
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.rfq-btn--draft::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(201, 162, 39, 0.2) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rfq-btn--draft:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.rfq-btn--draft:hover::before {
  transform: translateX(130%) skewX(-18deg);
}

.rfq-btn--draft:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.15);
}

/* ── Submit (Gold 3D Metallic) ── */
.rfq-btn--submit {
  background: linear-gradient(180deg, #F6D578 0%, #F0C040 30%, #D4AF37 62%, #B8870C 100%);
  color: #2a1d05;
  letter-spacing: 0.3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.75),
    inset 0 -2px 5px rgba(140, 96, 20, 0.35),
    0 4px 0 #97701d,
    0 8px 20px rgba(166, 124, 46, 0.4);
}

.rfq-btn--submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.65) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rfq-btn--submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.85),
    inset 0 -3px 6px rgba(140, 96, 20, 0.4),
    0 6px 0 #97701d,
    0 14px 32px rgba(166, 124, 46, 0.5);
}

.rfq-btn--submit:hover::before {
  transform: translateX(130%) skewX(-18deg);
}

.rfq-btn--submit:active {
  transform: translateY(3px);
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.6),
    inset 0 -1px 3px rgba(140, 96, 20, 0.35),
    0 1px 0 #97701d,
    0 3px 8px rgba(166, 124, 46, 0.35);
}

.rfq-btn__shimmer {
  display: none;
}


/* ══════════════════════════
   SIDEBAR
   ══════════════════════════ */
.rfq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 130px;
}

/* Info Card */
.rfq-info-card {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.rfq-info-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rfq-info-card__header i {
  color: var(--gold);
}

.rfq-info-card__list {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rfq-info-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rfq-info-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.rfq-info-step__dot--gold   { background: #C9A227; box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15); }
.rfq-info-step__dot--blue   { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.rfq-info-step__dot--green  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.rfq-info-step__dot--accent { background: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15); }

.rfq-info-step strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.rfq-info-step p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Shield Card */
.rfq-shield-card {
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(34, 197, 94, 0.12);
  backdrop-filter: blur(20px);
}

.rfq-shield-card__icon {
  font-size: 1.8rem;
  color: #22c55e;
  margin-bottom: 10px;
}

.rfq-shield-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.rfq-shield-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.8;
}

/* Stats Card */
.rfq-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.rfq-stat {
  padding: 18px 8px;
  text-align: center;
}

.rfq-stat:not(:last-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.rfq-stat__value {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--accent-shine, #F0C040));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.rfq-stat__label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Help Card */
.rfq-help-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.rfq-help-card > i {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.rfq-help-card strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.rfq-help-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

.rfq-help-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--gold);
  white-space: nowrap;
  transition: all 0.2s;
}

.rfq-help-card__btn:hover {
  background: rgba(201, 162, 39, 0.2);
  transform: translateY(-1px);
}

/* ══════════════════════════
   SUCCESS MODAL
   ══════════════════════════ */
.rfq-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.rfq-modal-overlay[hidden] {
  display: none;
}

.rfq-modal {
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: rfqModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rfqModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.rfq-modal__icon {
  font-size: 3.5rem;
  color: #22c55e;
  margin-bottom: 16px;
}

.rfq-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.rfq-modal__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 20px;
}

.rfq-modal__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.rfq-modal__code strong {
  color: var(--gold);
  font-family: 'Vazirmatn', monospace;
  letter-spacing: 1px;
}

.rfq-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.rfq-modal__actions .rfq-btn {
  padding: 11px 22px;
  font-size: 0.82rem;
  text-decoration: none;
}

/* ══════════════════════════
   VALIDATION
   ══════════════════════════ */
.rfq-input.rfq-input--error,
.rfq-select.rfq-select--error,
.rfq-textarea.rfq-textarea--error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.rfq-error-msg {
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 4px;
}

/* ══════════════════════════
   LIGHT THEME
   ══════════════════════════ */
[data-theme="light"] .rfq-hero,
[data-theme="light"] .rfq-fieldset,
[data-theme="light"] .rfq-info-card,
[data-theme="light"] .rfq-stats-card,
[data-theme="light"] .rfq-help-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rfq-input,
[data-theme="light"] .rfq-select,
[data-theme="light"] .rfq-textarea {
  background: #f4f5f7;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

[data-theme="light"] .rfq-input::placeholder,
[data-theme="light"] .rfq-textarea::placeholder {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .rfq-input:focus,
[data-theme="light"] .rfq-select:focus,
[data-theme="light"] .rfq-textarea:focus {
  border-color: rgba(201, 162, 39, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
}

[data-theme="light"] .rfq-select option {
  background: #fff;
  color: var(--text);
}

[data-theme="light"] .rfq-select option:checked {
  background: rgba(201, 162, 39, 0.1);
}

[data-theme="light"] .rfq-select option:disabled {
  color: rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .rfq-select-icon {
  color: var(--text-light);
}

[data-theme="light"] .rfq-upload {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .rfq-upload:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.03);
}

[data-theme="light"] .rfq-breadcrumb {
  color: rgba(100, 116, 139, 0.6);
}
[data-theme="light"] .rfq-breadcrumb a {
  color: rgba(100, 116, 139, 0.6);
}
[data-theme="light"] .rfq-breadcrumb span {
  color: var(--text);
}

[data-theme="light"] .rfq-shield-card {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.04) 0%, #fff 100%);
  border-color: rgba(34, 197, 94, 0.1);
  backdrop-filter: none;
}

[data-theme="light"] .rfq-modal {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .rfq-stat:not(:last-child) {
  border-left-color: rgba(0, 0, 0, 0.06);
}

/* ── Light: Submit button ── */
[data-theme="light"] .rfq-btn--submit {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.8),
    inset 0 -2px 4px rgba(140, 96, 20, 0.22),
    0 3px 0 #b8960c,
    0 5px 14px rgba(166, 124, 46, 0.22);
}
[data-theme="light"] .rfq-btn--submit:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.85),
    inset 0 -2px 4px rgba(140, 96, 20, 0.25),
    0 5px 0 #b8960c,
    0 10px 24px rgba(166, 124, 46, 0.28);
}
[data-theme="light"] .rfq-btn--submit:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 222, 0.6),
    0 1px 0 #b8960c;
}

/* ── Light: Draft button ── */
[data-theme="light"] .rfq-btn--draft {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .rfq-btn--draft:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: #fefcf5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 0 rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .rfq-btn--draft:active {
  background: #f9f5ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .rfq-info-card__header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rfq-file-chip {
  background: #f4f5f7;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .rfq-legend__icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.03));
  border-color: rgba(201, 162, 39, 0.15);
}

[data-theme="light"] .rfq-modal__code {
  background: #f9f7f0;
  border-color: rgba(201, 162, 39, 0.15);
}

[data-theme="light"] .rfq-help-card__btn {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.15);
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 1024px) {
  .rfq-layout {
    grid-template-columns: 1fr;
  }
  .rfq-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .rfq-info-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rfq-hero {
    flex-direction: column;
    padding: 28px 24px;
    gap: 24px;
  }
  .rfq-hero__visual {
    width: 100%;
    overflow-x: auto;
  }
  .rfq-hero__steps {
    justify-content: center;
  }
  .rfq-hero__title {
    font-size: 1.3rem;
  }
  .rfq-hero__desc {
    font-size: 0.82rem;
  }
  .rfq-row {
    flex-direction: column;
    gap: 0;
  }
  .rfq-field--half,
  .rfq-field--third {
    margin-bottom: 16px;
  }
  .rfq-fieldset {
    padding: 20px 18px 24px;
  }
  .rfq-actions {
    flex-direction: column-reverse;
  }
  .rfq-btn {
    justify-content: center;
    width: 100%;
  }
  .rfq-sidebar {
    grid-template-columns: 1fr;
  }
  .rfq-modal__actions {
    flex-direction: column;
  }
  .rfq-modal__actions .rfq-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .rfq-main {
    padding: 16px 0 60px;
  }
  .rfq-hero {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .rfq-step__text {
    font-size: 0.6rem;
  }
  .rfq-step__num {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }
  .rfq-step__line {
    width: 20px;
  }
  .rfq-fieldset {
    padding: 16px 14px 20px;
    border-radius: 12px;
  }
  .rfq-stats-card {
    grid-template-columns: 1fr;
  }
  .rfq-stat:not(:last-child) {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  [data-theme="light"] .rfq-stat:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }
}

/* ── Toast ── */
.rfq-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.rfq-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-theme="light"] .rfq-toast {
  background: #fff;
  color: #92400e;
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Spinner ── */
.rfq-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(13, 27, 42, 0.2);
  border-top-color: #0d1b2a;
  border-radius: 50%;
  animation: rfqSpin 0.6s linear infinite;
}
@keyframes rfqSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rfq-btn--submit::before, .rfq-btn--draft::before { display: none; }
  .rfq-btn { transition: filter 0.2s ease, box-shadow 0.2s ease; }
  .rfq-modal { animation: none !important; }
}
