:root {
  --bg: #0c1014;
  --bg-soft: #0c1014;
  --text: #f8f3ea;
  --muted: #b8c1bf;
  --dim: #7f8a87;
  --amber: #da8630;
  --amber-soft: #f2b15f;
  --line: rgba(248, 243, 234, 0.13);
  --field: rgba(255, 255, 255, 0.045);
  --danger: #ffb0a8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.35 "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  isolation: isolate;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("./assets/bg-desktop.webp") center center / cover no-repeat;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(12, 16, 20, 0.18), rgba(12, 16, 20, 0.46) 48%, rgba(12, 16, 20, 0.72) 100%),
    linear-gradient(180deg, rgba(12, 16, 20, 0.2), rgba(12, 16, 20, 0.4));
}

a { color: inherit; }

.screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(26px, 5.4vw, 74px);
}

.panel {
  width: min(100%, 620px);
  display: grid;
  gap: clamp(14px, 2.2svh, 20px);
  justify-items: center;
  text-align: center;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(248, 243, 234, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 12, 16, 0.48), rgba(7, 12, 16, 0.28));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(3px);
}

.logo-img {
  width: min(250px, 44vw);
  height: auto;
  display: block;
  margin-bottom: clamp(2px, 0.7svh, 7px);
  background: transparent;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 10px rgba(218, 134, 48, 0.08));
}

.copy {
  display: grid;
  gap: 9px;
  justify-items: center;
}

h1 {
  margin: 0;
  max-width: 35rem;
  font-size: clamp(1.22rem, 2.75vw, 2.08rem);
  line-height: 1.13;
  font-weight: 640;
  letter-spacing: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

p { margin: 0; }

.location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.45vw, 0.98rem);
}

.location i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--amber);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  flex: 0 0 auto;
}

.join {
  margin-top: 7px;
  color: var(--amber-soft);
  font-weight: 690;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  text-shadow: 0 0 16px rgba(218, 134, 48, 0.18);
}

.whatsapp-link {
  max-width: 100%;
  color: #ffe0b7;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  overflow-wrap: anywhere;
  text-decoration-color: rgba(255, 224, 183, 0.35);
  text-underline-offset: 3px;
}

.weekly {
  max-width: 35rem;
  color: var(--text);
  font-size: clamp(0.9rem, 1.55vw, 1.08rem);
  font-weight: 530;
}

form {
  width: min(100%, 500px);
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: 4px;
}

label {
  display: grid;
  gap: 5px;
  color: #9fa9a6;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}

input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(218, 134, 48, 0.24);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(9, 14, 18, 0.66);
  color: var(--text);
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 28px rgba(0, 0, 0, 0.12);
}

input::placeholder { color: rgba(248, 243, 234, 0.36); }

.phone-field {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  border: 1px solid rgba(218, 134, 48, 0.24);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 28px rgba(0, 0, 0, 0.12);
}

.phone-field:focus-within {
  outline: 2px solid rgba(242, 177, 95, 0.72);
  outline-offset: 2px;
}

.phone-field input {
  min-height: 42px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.country-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 94px;
  padding: 0 10px 0 11px;
  border: 0;
  border-right: 1px solid rgba(218, 134, 48, 0.2);
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.country-button:hover {
  background: rgba(218, 134, 48, 0.08);
}

.country-flag {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.country-dial {
  color: #ffe0b7;
  font-size: 0.88rem;
  font-weight: 650;
}

.country-arrow {
  color: var(--muted);
  font-size: 0.72rem;
}

.country-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  width: min(100%, 360px);
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid rgba(218, 134, 48, 0.28);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.country-option {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option:focus,
.country-option[aria-selected="true"] {
  background: rgba(218, 134, 48, 0.12);
  outline: 0;
}

.country-option .dial {
  color: #ffe0b7;
  font-weight: 650;
}

.country-option img {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 2px;
}

select {
  appearance: auto;
  color: var(--text);
}

select:has(option[value=""]:checked) {
  color: rgba(248, 243, 234, 0.58);
}

input:focus, select:focus, button:focus, a:focus {
  outline: 2px solid rgba(242, 177, 95, 0.72);
  outline-offset: 2px;
}

.phone-field input:focus,
.phone-field .country-button:focus {
  outline: 0;
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--dim);
  font-size: 0.78rem;
}

.professional-check {
  margin-top: -2px;
  margin-bottom: 4px;
}

.check input {
  min-height: auto;
  margin: 0;
  accent-color: var(--amber);
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
}

.button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(218, 134, 48, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #eea24f, var(--amber));
  color: #140c04;
  display: inline-grid;
  place-items: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 16px 38px rgba(218, 134, 48, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button:hover {
  filter: brightness(1.04);
}

.button:active {
  transform: translateY(1px);
}

.form-status {
  min-height: 18px;
  color: var(--amber-soft);
  font-size: 0.8rem;
  text-align: center;
}

.form-status.error { color: var(--danger); }

@media (max-height: 700px) {
  .screen { padding-top: 16px; padding-bottom: 16px; }
  .panel { gap: 11px; padding-top: 18px; padding-bottom: 18px; }
  .logo-img { width: min(178px, 38vw); margin-bottom: 0; }
  input, select, .button { min-height: 39px; }
  .phone-field, .country-button, .phone-field input { min-height: 39px; }
}

@media (max-width: 720px) {
  body::before {
    background-image: url("./assets/bg-mobile.webp");
    background-position: center bottom;
  }

  body::after {
    background:
      radial-gradient(circle at 50% 42%, rgba(12, 16, 20, 0.18), rgba(12, 16, 20, 0.5) 54%, rgba(12, 16, 20, 0.78) 100%),
      linear-gradient(180deg, rgba(12, 16, 20, 0.08), rgba(12, 16, 20, 0.38));
  }

  .screen { padding: 18px; }
  .panel {
    width: min(100%, 390px);
    gap: 13px;
    padding: 20px 18px;
    background: linear-gradient(180deg, rgba(7, 12, 16, 0.44), rgba(7, 12, 16, 0.2));
  }

  .logo-img { width: min(198px, 58vw); }
  h1 { font-size: clamp(1.18rem, 7vw, 1.72rem); }
  form { width: 100%; gap: 9px; }
  input, select { min-height: 42px; }
  .phone-field, .country-button, .phone-field input { min-height: 42px; }
  .country-button { min-width: 90px; padding-inline: 9px; }
  .country-menu { width: 100%; max-height: 220px; }
  .button { min-height: 44px; }
}
