:root {
  color-scheme: dark;
  --lime: #d8c40f;
  --lime-hover: #e5d220;
  --text: #f3f3f3;
  --line: rgba(255, 255, 255, 0.34);
  --soft-line: rgba(255, 255, 255, 0.16);
  --panel-bg: #2b2b2b;
  --btn-disabled-bg: #1a1a1a;
  --btn-disabled-text: #707070;
  --font-sans: "Inter", "Roboto", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #000000; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; }
.preview-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 578px;
  background: radial-gradient(
    circle at 32% 50%,
    #4d4614 0%,
    #35300e 14%,
    #1c1a08 32%,
    #0a0a08 52%,
    #000000 78%
  );
}
.brand-side { display: grid; height: 100vh; align-self: start; place-items: center; padding: 72px; background: transparent; }
.brand-logo { width: min(247px, 34vw); height: auto; filter: drop-shadow(0 12px 42px rgba(0, 0, 0, 0.24)); image-rendering: auto; }
.consult-panel {
  width: 500px;
  min-height: calc(100vh - 29px);
  align-self: start;
  justify-self: start;
  margin: 16px 0 13px;
  padding: 32px 40px 36px;
  background: var(--panel-bg);
  border-radius: 42px;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.22);
}
.panel-header { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 18px; }
.panel-header h1 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.round-button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.round-button:hover { border-color: var(--lime); color: var(--lime); }
.round-button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.vehicle-art { position: relative; width: min(100%, 287px); margin: 34px auto 24px; }
.vehicle-art canvas { display: block; width: 100%; height: auto; }
.plate-form { width: 100%; margin: 0 auto; }
.plate-card { width: calc(100% - 18px); margin: 0 auto; padding: 0 21px; border: 1px solid var(--line); border-radius: 20px; }
.plate-card > label { display: block; margin-top: 10px; text-align: center; color: #ddd; font-size: 16px; font-weight: 500; }
.plate-card.is-invalid { border-color: rgba(217, 120, 122, 0.55); }
.plate-card.is-invalid > label { color: #d9787a; }
.plate-error { margin: 14px 0 0; color: #d9787a; font-size: 16px; text-align: center; line-height: 1.35; font-weight: 500; }
#placa {
  width: 100%;
  height: 70px;
  padding: 0 8px;
  color: #ececec;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  outline: 0;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0.34em;
}
#placa::placeholder { color: #aeaeae; opacity: 1; font-weight: 400; }
#placa:focus { color: #fff; border-top-color: var(--soft-line); border-bottom-color: var(--soft-line); }
.foreign-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #e6e6e6; font-size: 15px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { display: block; position: relative; width: 66px; height: 40px; border-radius: 999px; background: #d8d8d8; cursor: pointer; transition: background 0.2s ease; }
.switch span::after { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; content: ""; background: #fff; border-radius: 50%; transition: transform 0.2s ease; }
.switch input:checked + span { background: var(--lime); }
.switch input:checked + span::after { transform: translateX(26px); }
.agreement { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; color: #eee; font-size: 16px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.agreement a { color: inherit; text-underline-offset: 3px; }
.agreement input { width: 26px; height: 26px; flex: 0 0 auto; margin: 0; accent-color: var(--lime); }
.recaptcha-note { margin: 30px 0 18px; color: #898989; font-size: 13px; line-height: 1.5; font-weight: 400; }
.continue-button {
  width: 100%;
  min-height: 52px;
  color: #151515;
  background: var(--lime);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.continue-button:disabled {
  color: var(--btn-disabled-text);
  background: var(--btn-disabled-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
}
.continue-button:not(:disabled):hover { background: var(--lime-hover); }
.btn-spinner { width: 16px; height: 16px; border: 2.5px solid rgba(21, 21, 21, 0.25); border-top-color: #151515; border-radius: 50%; animation: btnSpin 0.7s linear infinite; flex-shrink: 0; }
.continue-button:disabled .btn-spinner { border-color: rgba(112, 112, 112, 0.3); border-top-color: var(--btn-disabled-text); }
.consult-error { margin: 16px 0 0; color: #ffb4b4; font-size: 14px; text-align: center; font-weight: 500; }
.support-link {
  display: block;
  margin-top: 26px;
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.support-link:hover { color: var(--lime); }
@media (max-width: 950px) {
  .preview-shell {
    grid-template-columns: 1fr;
    background: radial-gradient(
      circle at 50% 32%,
      #4d4614 0%,
      #2f2a0c 20%,
      #121110 48%,
      #000000 100%
    );
  }
  .brand-side {
    height: auto;
    min-height: 190px;
    padding: 46px 30px;
    background: radial-gradient(
      circle at 50% 50%,
      rgba(77, 70, 20, 0.5) 0%,
      rgba(28, 26, 8, 0.35) 45%,
      transparent 72%
    );
  }
  .brand-logo { width: min(247px, 72vw); }
  .consult-panel { width: 100%; min-height: auto; margin: 0; padding: 30px 24px 40px; border-radius: 34px 34px 0 0; }
}
@media (max-width: 480px) {
  .consult-panel { padding-inline: 16px; padding-bottom: 36px; }
  .panel-header { grid-template-columns: 48px 1fr 48px; gap: 8px; }
  .round-button { width: 48px; height: 48px; }
  .round-button svg { width: 25px; height: 25px; }
  .panel-header h1 { font-size: 17px; }
  .vehicle-art { margin-top: 30px; }
  .plate-card { padding-inline: 16px; }
  #placa { height: 80px; font-size: 31px; letter-spacing: 0.3em; }
  .foreign-row { min-height: 80px; font-size: 16px; }
  .switch span { width: 72px; height: 45px; }
  .switch span::after { width: 31px; height: 31px; top: 7px; left: 7px; }
  .switch input:checked + span::after { transform: translateX(27px); }
  .agreement { font-size: 15px; margin-top: 20px; }
  .agreement input { width: 27px; height: 27px; }
  .support-link { margin-top: 22px; font-size: 14px; }
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
