:root {
  color-scheme: light;
  --ink: #f7f2e7;
  --ink-soft: rgba(247, 242, 231, 0.72);
  --shadow: rgba(17, 20, 28, 0.45);
  --glass: rgba(16, 20, 26, 0.6);
  --accent: #b9ffb2;
  --accent-strong: #58f298;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: #0f1218;
  color: var(--ink);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  position: relative;
  isolation: isolate;
  background-image: url("bg.jpeg");
  background-size: cover;
  background-position: top;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(49, 203, 165, 0.18), transparent 45%),
    linear-gradient(120deg, rgba(10, 12, 18, 0.75), rgba(10, 12, 18, 0.2) 55%, rgba(10, 12, 18, 0.8));
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  padding: 5rem clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  justify-items: end;
}

.hero__panel {
  justify-self: end;
  width: min(420px, 100%);
}

.form {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 22px 50px rgba(8, 11, 18, 0.55);
  display: grid;
  gap: 1.2rem;
  animation: floatIn 0.8s ease-out;
}

.form__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", serif;
}

.form__eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.65rem;
  color: var(--accent);
}

.form__header p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form__subtitle {
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.field input,
.field select {
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(88, 242, 152, 0.5);
  border-color: transparent;
}

button {
  margin-top: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent-strong), #f4ffb0);
  color: #10151b;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(74, 248, 168, 0.3);
}

.form__note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(247, 242, 231, 0.6);
}

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

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    justify-items: stretch;
  }

  .hero__panel {
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.6rem;
  }

  .form {
    padding: 2rem 1.6rem;
  }
}
