/* LUXJANEL — Estilos da página de Pedido de Orçamento */
:root {
  --lx-navy: #0d2745;
  --lx-navy-2: #173957;
  --lx-gold: #b09263;
  --lx-gold-dark: #8f7245;
  --lx-gold-soft: #d8c29f;
  --lx-cream: #f5f2ec;
  --lx-white: #ffffff;
  --lx-ink: #0d2745;
  --lx-muted: #667069;
  --lx-line: #ddd9d0;
  --lx-success: #147a50;
  --lx-error: #b42318;
  --lx-warning: #9a6700;
  --lx-radius-sm: 12px;
  --lx-radius: 20px;
  --lx-shadow: 0 28px 80px rgba(13, 39, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--lx-ink);
  background: var(--lx-cream);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.lx-shell {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- TOPO ---------- */
.lx-topbar {
  padding: 13px 0;
  background: #081a30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lx-topbar .lx-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lx-topbar span,
.lx-topbar a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lx-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lx-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.lx-topbar a::before {
  content: "←";
  color: var(--lx-gold);
  font-size: 16px;
}

.lx-topbar a:hover {
  color: var(--lx-gold-soft);
}

/* ---------- HERO ---------- */
.lx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 46px) 0 clamp(72px, 7vw, 92px);
  color: var(--lx-white);
  background:
    radial-gradient(circle at 12% 20%, rgba(176, 146, 99, 0.18), transparent 32%),
    linear-gradient(135deg, #081a30 0%, #0d2745 56%, #173957 100%);
}

.lx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000, transparent 58%);
}

.lx-hero-layout {
  position: relative;
  z-index: 1;
  display: block;
}

.lx-hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.lx-brand {
  display: inline-block;
  width: min(270px, 68%);
  margin-bottom: 18px;
}

.lx-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--lx-gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  justify-content: center;
}

.lx-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--lx-gold);
}

h1, h2, h3, p {
  margin-top: 0;
}

.lx-hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--lx-white);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.lx-gold {
  color: var(--lx-gold-soft);
  font-weight: 450;
}

.lx-lead {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
}

.lx-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.lx-trust-row li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.lx-trust-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lx-gold-soft);
  font-weight: 800;
}

.lx-trust-row strong {
  color: var(--lx-white);
}

.lx-hero-visual {
  display: none;
}

.lx-hero-visual::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -34px;
  top: -34px;
  border-top: 2px solid var(--lx-gold);
  border-right: 2px solid var(--lx-gold);
}

.lx-hero-visual img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.lx-hero-badge {
  position: absolute;
  left: -26px;
  bottom: 32px;
  display: grid;
  gap: 3px;
  padding: 17px 21px;
  color: var(--lx-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.lx-hero-badge span {
  color: var(--lx-gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lx-hero-badge strong {
  font-size: 14px;
}

/* ---------- WIZARD CARD ---------- */
.lx-wizard-wrap {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding-bottom: clamp(56px, 7vw, 90px);
}

.lx-wizard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(176, 146, 98, 0.24);
  border-top: 5px solid var(--lx-gold);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  box-shadow: var(--lx-shadow);
  padding: clamp(26px, 5vw, 54px);
}

.lx-progress {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.lx-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.lx-progress-text {
  margin: 0;
  color: var(--lx-gold-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lx-progress-time {
  margin: 0;
  color: var(--lx-muted);
  font-size: 12px;
}

.lx-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #ece8e0;
  overflow: hidden;
}

.lx-progress-fill {
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lx-gold-dark), var(--lx-gold-soft));
  transition: width 0.3s ease;
}

.lx-progress-hint {
  margin-top: 10px;
  color: var(--lx-muted);
  font-size: 13px;
}

.lx-step-panel h2 {
  margin-bottom: 6px;
  color: var(--lx-ink);
  font-size: clamp(21px, 2.8vw, 28px);
  letter-spacing: -0.01em;
}

.lx-step-lead {
  margin-bottom: 26px;
  color: var(--lx-muted);
  font-size: 14.5px;
}

/* ---------- OPTION CARDS (passo 1) ---------- */
.lx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.lx-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 175px;
  padding: 24px;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: var(--lx-cream);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lx-option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lx-option-card:hover {
  border-color: var(--lx-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 33, 28, 0.08);
}

.lx-option-card.is-selected {
  border-color: var(--lx-gold);
  background: var(--lx-white);
  box-shadow: 0 0 0 2px rgba(176, 146, 98, 0.42) inset, 0 12px 28px rgba(23, 33, 28, 0.08);
}

.lx-option-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--lx-white);
  background: var(--lx-gold-dark);
  font-size: 13px;
  font-weight: 800;
}

.lx-option-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
  border-radius: 14px;
  background: rgba(176, 146, 98, 0.12);
  font-size: 23px;
}

.lx-option-title {
  color: var(--lx-ink);
  font-size: 15.5px;
  font-weight: 700;
}

.lx-option-desc {
  color: var(--lx-muted);
  font-size: 13px;
}

/* ---------- CAMPOS ---------- */
.lx-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lx-field-full {
  grid-column: 1 / -1;
}

.lx-field label {
  color: var(--lx-ink);
  font-size: 13.5px;
  font-weight: 650;
}

.lx-optional {
  color: var(--lx-muted);
  font-weight: 400;
}

.lx-field input[type="text"],
.lx-field input[type="tel"],
.lx-field input[type="email"],
.lx-field input[type="url"],
.lx-field select,
.lx-field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  color: var(--lx-ink);
  font-family: inherit;
  font-size: 14.5px;
}

.lx-field textarea {
  min-height: 120px;
  resize: vertical;
}

.lx-field input:focus,
.lx-field select:focus,
.lx-field textarea:focus {
  outline: none;
  border-color: var(--lx-gold);
  box-shadow: 0 0 0 4px rgba(176, 146, 98, 0.12);
}

.lx-field-help {
  margin: -1px 0 6px;
  color: var(--lx-muted);
  font-size: 12.5px;
}

/* ---------- ESCOLHA DE INVESTIMENTO ---------- */
.lx-budget-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lx-budget-option {
  position: relative;
  cursor: pointer;
}

.lx-budget-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lx-budget-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--lx-line);
  border-radius: 12px;
  color: var(--lx-ink);
  background: var(--lx-cream);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: 0.2s ease;
}

.lx-budget-option:hover span {
  border-color: var(--lx-gold);
  background: #fbfaf7;
}

.lx-budget-option input:focus-visible + span {
  outline: 3px solid rgba(176, 146, 98, 0.22);
  outline-offset: 2px;
}

.lx-budget-option input:checked + span {
  border-color: var(--lx-gold-dark);
  color: var(--lx-white);
  background: var(--lx-gold-dark);
  box-shadow: 0 8px 20px rgba(143, 114, 69, 0.22);
}

/* ---------- UPLOAD DE FICHEIROS ---------- */
.lx-file-drop {
  padding: 26px;
  border: 1px dashed var(--lx-line);
  border-radius: 16px;
  background: var(--lx-cream);
  text-align: center;
}

.lx-file-drop p {
  margin: 0 0 4px;
  color: var(--lx-muted);
  font-size: 12.5px;
}

.lx-file-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.lx-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border: 1px solid var(--lx-line);
  border-radius: 10px;
  background: var(--lx-white);
  font-size: 13px;
  color: var(--lx-ink);
}

.lx-file-remove {
  border: none;
  background: none;
  color: var(--lx-error);
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
}

/* ---------- CAIXA DE INFO (passo 5) ---------- */
.lx-info-box {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(176, 146, 98, 0.26);
  border-radius: 16px;
  background: linear-gradient(135deg, #faf8f3, #f3eee5);
  font-size: 14px;
}

.lx-info-title {
  margin: 0;
  color: var(--lx-ink);
  font-weight: 800;
}

.lx-info-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lx-info-steps p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  margin: 0;
  color: var(--lx-muted);
  font-size: 13px;
}

.lx-info-steps p span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--lx-white);
  background: var(--lx-gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.lx-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 13px;
  color: var(--lx-muted);
}

.lx-consent input {
  margin-top: 3px;
  accent-color: var(--lx-gold-dark);
}

.lx-privacy-note {
  margin: 10px 0 0 28px;
  color: #7c857f;
  font-size: 11.5px;
}

/* ---------- BOTÕES ---------- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.lx-btn-primary {
  color: var(--lx-white);
  background: var(--lx-navy);
  border-color: var(--lx-navy);
  box-shadow: 0 10px 24px rgba(16, 23, 19, 0.18);
}

.lx-btn-primary:hover:not(:disabled) {
  background: var(--lx-gold-dark);
  border-color: var(--lx-gold-dark);
  transform: translateY(-1px);
}

.lx-btn-ghost {
  color: var(--lx-ink);
  background: transparent;
  border-color: var(--lx-line);
}

.lx-btn-ghost:hover:not(:disabled) {
  border-color: var(--lx-gold);
}

.lx-btn-secondary {
  color: var(--lx-white);
  background: var(--lx-gold-dark);
  border-color: var(--lx-gold-dark);
  box-shadow: 0 10px 24px rgba(143, 114, 69, 0.2);
}

.lx-btn-secondary:hover {
  background: var(--lx-gold);
}

.lx-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lx-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--lx-line);
}

.lx-wizard-actions .lx-spacer {
  flex: 1;
}

/* ---------- ESTADO ---------- */
.lx-status {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--lx-line);
  font-size: 13.5px;
}

.lx-status.is-visible {
  display: block;
}

.lx-status.is-success {
  border-color: var(--lx-success);
  color: #0d5c3c;
  background: #edf8f3;
}

.lx-status.is-error {
  border-color: var(--lx-error);
  color: #8f1d14;
  background: #fff1f0;
}

/* ---------- ECRÃ DE SUCESSO ---------- */
.lx-success-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 50px) 0;
  text-align: center;
}

.lx-success-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--lx-white);
  background: var(--lx-success);
  box-shadow: 0 14px 34px rgba(20, 122, 80, 0.24);
  font-size: 30px;
}

.lx-success-eyebrow {
  margin: 0 auto 8px !important;
  color: var(--lx-gold-dark) !important;
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lx-success-panel h2 {
  margin-bottom: 10px;
  color: var(--lx-ink);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.025em;
}

.lx-success-panel p {
  max-width: 540px;
  margin: 0 auto 26px;
  color: var(--lx-muted);
  font-size: 15px;
}

.lx-email-status {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  border: 1px solid var(--lx-line);
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: left;
}

.lx-email-status.is-sent {
  border-color: rgba(20, 122, 80, 0.35);
  color: #0d5c3c;
  background: #edf8f3;
}

.lx-email-status.is-warning {
  border-color: rgba(154, 103, 0, 0.35);
  color: #754c00;
  background: #fff8e6;
}

.lx-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- PÁGINA DE OBRIGADO ---------- */
.lx-thankyou {
  min-height: calc(100vh - 49px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 90px) 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(176, 146, 99, 0.15), transparent 28%),
    linear-gradient(135deg, #081a30, #0d2745 58%, #173957);
}

.lx-thankyou-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px);
  border-top: 5px solid var(--lx-gold);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.lx-thankyou-logo {
  display: block;
  width: min(340px, 82%);
  height: auto;
  margin: 0 auto 38px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--lx-navy);
}

.lx-thankyou-card h1 {
  margin: 0 0 14px;
  color: var(--lx-ink);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.lx-thankyou-copy {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--lx-muted);
  font-size: 16px;
  line-height: 1.7;
}

.lx-thankyou-note {
  margin: 26px 0 0;
  color: #7c857f;
  font-size: 12px;
}

@media (max-width: 640px) {
  .lx-shell {
    width: min(100% - 28px, 1000px);
  }

  .lx-topbar span {
    display: none;
  }

  .lx-topbar .lx-shell {
    justify-content: flex-end;
  }

  .lx-hero {
    padding-top: 28px;
  }

  .lx-brand {
    width: min(230px, 70%);
    margin-bottom: 16px;
  }

  .lx-progress-heading {
    align-items: flex-start;
  }

  .lx-progress-time {
    max-width: 120px;
    text-align: right;
  }

  .lx-info-steps {
    grid-template-columns: 1fr;
  }

  .lx-budget-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lx-budget-option:last-child {
    grid-column: 1 / -1;
  }

  .lx-wizard-actions {
    flex-wrap: wrap;
  }
  .lx-wizard-actions .lx-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 860px) {
  .lx-hero-layout {
    grid-template-columns: 1fr;
  }

  .lx-hero-copy {
    max-width: 700px;
  }

  .lx-hero-visual {
    display: none;
  }

  .lx-wizard-wrap {
    margin-top: -38px;
  }

  .lx-budget-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}