:root {
  --bg: #050505;
  --panel: #10100f;
  --panel-soft: #171614;
  --line: rgba(219, 178, 95, 0.26);
  --gold: #dcb35c;
  --gold-bright: #f2d48a;
  --gold-deep: #9d742b;
  --text: #f7f1e4;
  --muted: #b9afa0;
  --danger: #ffb4a8;
  --success: #c9f1d1;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 26%, rgba(220, 179, 92, 0.13), transparent 30rem),
    radial-gradient(circle at 82% 70%, rgba(157, 116, 43, 0.09), transparent 28rem),
    linear-gradient(135deg, #030303 0%, #0b0b0a 52%, #151108 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(28px, 5vh, 56px) 0;
}

.brand-panel {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 43%, rgba(220, 179, 92, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 46%),
    linear-gradient(180deg, rgba(220, 179, 92, 0.065), rgba(0, 0, 0, 0.14)),
    var(--panel);
  box-shadow: 0 28px 80px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.brand-mark {
  width: min(100%, 570px);
  display: grid;
  place-items: center;
  text-align: center;
}

.logo-composition {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 124%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.38));
}

.logo-signature {
  position: absolute;
  z-index: 2;
  top: 39.1%;
  left: 47.4%;
  color: #e7c56f;
  font-size: clamp(0.82rem, 1.32vw, 1.24rem);
  font-family: "Inter", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 1px 5px rgba(0, 0, 0, 0.62),
    0 0 10px rgba(220, 179, 92, 0.16);
}

.form-panel {
  padding: clamp(30px, 4.4vw, 50px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(220, 179, 92, 0.12), rgba(255, 255, 255, 0.025) 34%, transparent),
    var(--panel);
  box-shadow: 0 28px 80px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  font-weight: 700;
  line-height: 1;
}

.intro {
  max-width: 35rem;
  margin: 16px 0 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lead-form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(220, 179, 92, 0.32);
  border-radius: 2px;
  color: var(--text);
  background: var(--panel-soft);
  outline: none;
  padding: 0 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-bright) 50%),
    linear-gradient(135deg, var(--gold-bright) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 16px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: rgba(185, 175, 160, 0.62);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1fr);
  gap: 12px;
}

#countryCode {
  font-size: 0.95rem;
}

input:focus,
select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(220, 179, 92, 0.14);
  background: #1d1b17;
}

.field.invalid input,
.field.invalid select {
  border-color: rgba(255, 180, 168, 0.74);
}

.error {
  min-height: 16px;
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.35;
}

.submit-button {
  position: relative;
  min-height: 58px;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #100d08;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(220, 179, 92, 0.2);
  filter: saturate(1.06);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.button-loader {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(16, 13, 8, 0.22);
  border-top-color: #100d08;
  border-radius: 50%;
  opacity: 0;
  animation: spin 780ms linear infinite;
}

.submit-button.is-loading .button-loader {
  opacity: 1;
}

.form-status {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

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

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

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 28px));
    padding: 26px 0;
  }

  .brand-panel {
    min-height: auto;
  }

  .brand-mark {
    width: min(100%, 420px);
  }

  .logo-composition {
    width: min(100%, 400px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 20px);
    gap: 14px;
    padding: 10px 0;
  }

  .brand-panel {
    min-height: 210px;
  }

  .form-panel {
    padding: 24px 18px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .intro {
    margin-bottom: 24px;
  }

  input,
  select,
  .submit-button {
    min-height: 52px;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }
}
