/* ── Thunder Orçamento — Form CSS ──────────────────────── */

.thunder-orc-wrap {
  --torc-bg:       #14171A;
  --torc-surface:  #1C1F23;
  --torc-surface2: #22262B;
  --torc-border:   rgba(251,244,56,0.15);
  --torc-focus:    #FBF438;
  --torc-yellow:   #FBF438;
  --torc-yellow-dk:#D4CC1A;
  --torc-text:     #FAF8EC;
  --torc-muted:    #A0A0A0;
  --torc-error:    #FF6B6B;
  --torc-radius:   12px;
  --torc-font:     'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--torc-font);
  color: var(--torc-text);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── HEADER ─────────────────────────────────────────────── */
.thunder-orc-header {
  text-align: center;
  max-width: 680px;
  width: 100%;
  margin-bottom: 40px;
}

.thunder-orc-logo-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.thunder-orc-tag {
  display: inline-block;
  background: rgba(251,244,56,0.10);
  border: 1px solid var(--torc-yellow);
  color: var(--torc-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.thunder-orc-title {
  font-family: var(--torc-font);
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--torc-text);
}

.thunder-orc-title span {
  color: var(--torc-yellow);
}

.thunder-orc-subtitle {
  color: var(--torc-muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── CARD ───────────────────────────────────────────────── */
.thunder-orc-card {
  width: 100%;
  max-width: 680px;
  background: var(--torc-surface);
  border: 1px solid var(--torc-border);
  border-radius: 20px;
  padding: 48px 40px;
}

/* ── PROGRESS ───────────────────────────────────────────── */
.thunder-orc-progress-wrap {
  margin-bottom: 36px;
}

.thunder-orc-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.thunder-orc-progress-info span:first-child { color: var(--torc-muted); }
.thunder-orc-progress-info span:last-child  { color: var(--torc-yellow); }

.thunder-orc-progress-bar {
  height: 3px;
  background: rgba(251,244,56,0.12);
  border-radius: 100px;
  overflow: hidden;
}

.thunder-orc-progress-fill {
  height: 100%;
  background: var(--torc-yellow);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* ── STEPS ──────────────────────────────────────────────── */
.thunder-orc-step { display: none; }
.thunder-orc-step.active {
  display: block;
  animation: torcFadeUp 0.3s ease both;
}

@keyframes torcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FIELD LABEL / QUESTION ─────────────────────────────── */
.thunder-orc-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--torc-yellow);
  margin-bottom: 8px;
}

.thunder-orc-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--torc-text);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* ── INPUTS ─────────────────────────────────────────────── */
.thunder-orc-input,
.thunder-orc-textarea {
  width: 100%;
  background: var(--torc-surface2);
  border: 1px solid var(--torc-border);
  border-radius: var(--torc-radius);
  color: var(--torc-text);
  font-family: var(--torc-font);
  font-size: 16px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.thunder-orc-input::placeholder,
.thunder-orc-textarea::placeholder { color: var(--torc-muted); }

.thunder-orc-input:focus,
.thunder-orc-textarea:focus {
  border-color: var(--torc-yellow);
  box-shadow: 0 0 0 3px rgba(251,244,56,0.10);
}

.thunder-orc-input.invalid,
.thunder-orc-textarea.invalid { border-color: var(--torc-error); }

.thunder-orc-textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── OPTIONS (RADIO) ────────────────────────────────────── */
.thunder-orc-options {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.thunder-orc-options.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.thunder-orc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--torc-surface2);
  border: 1px solid var(--torc-border);
  border-radius: var(--torc-radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.thunder-orc-option:hover {
  border-color: rgba(251,244,56,0.4);
  background: rgba(251,244,56,0.04);
}

.thunder-orc-option input[type="radio"] { display: none; }

.thunder-orc-option.selected {
  border-color: var(--torc-yellow);
  background: rgba(251,244,56,0.06);
}

.thunder-orc-option-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(251,244,56,0.5);
  background: transparent;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.thunder-orc-option.selected .thunder-orc-option-box {
  background: var(--torc-yellow);
  border-color: var(--torc-yellow);
}

.thunder-orc-option.selected .thunder-orc-option-box::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--torc-bg);
}

.thunder-orc-option-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--torc-text);
}

/* ── ERROR MESSAGE ──────────────────────────────────────── */
.thunder-orc-error {
  display: none;
  color: var(--torc-error);
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── MULTI-QUESTION BLOCK ────────────────────────────────── */
.thunder-orc-question-block {
  margin-bottom: 28px;
}

.thunder-orc-question-block + .thunder-orc-question-block {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.thunder-orc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.thunder-orc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--torc-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, background 0.2s;
  text-decoration: none;
  line-height: 1;
}

.thunder-orc-btn:active { transform: scale(0.97); }

.thunder-orc-btn-back {
  background: transparent;
  color: var(--torc-muted);
  border: 1px solid rgba(255,255,255,0.12);
}

.thunder-orc-btn-back:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--torc-text);
}

.thunder-orc-btn-next {
  background: var(--torc-yellow);
  color: var(--torc-bg);
  margin-left: auto;
}

.thunder-orc-btn-next:hover { background: var(--torc-yellow-dk); }

.thunder-orc-btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── SUCCESS SCREEN ─────────────────────────────────────── */
.thunder-orc-success {
  text-align: center;
  padding: 16px 0;
  animation: torcFadeUp 0.4s ease both;
}

.thunder-orc-success-icon {
  width: 72px;
  height: 72px;
  background: var(--torc-yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.thunder-orc-success h3 {
  font-family: var(--torc-font);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--torc-text);
}

.thunder-orc-success p {
  color: var(--torc-muted);
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

/* ── LOADING SPINNER ────────────────────────────────────── */
.thunder-orc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(20,23,26,0.4);
  border-top-color: var(--torc-bg);
  border-radius: 50%;
  animation: torcSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes torcSpin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 540px) {
  .thunder-orc-card { padding: 28px 18px; }
  .thunder-orc-options.cols-2 { grid-template-columns: 1fr; }
  .thunder-orc-question { font-size: 17px; }
  .thunder-orc-title { font-size: 24px; }
}
