@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

.form-page,
.form-page * {
  box-sizing: border-box;
}

.form-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 92, 0, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(123, 47, 190, 0.16), transparent 30rem),
    #030303;
  color: #fff;
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.form-page .header {
  overflow: hidden;
}

.form-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px 96px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 560px);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  justify-content: center;
}

.form-copy {
  padding-top: 22px;
}

.form-kicker {
  color: #ff8a3d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-copy h1 {
  margin: 14px 0 18px;
  font-family: "Manrope", Inter, system-ui, sans-serif;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
  max-width: 12ch;
}

.form-copy p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.brvlf-form-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008)),
    rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 -1px 0 rgba(0,0,0,0.52),
    0 24px 90px rgba(0,0,0,0.48);
  padding: clamp(22px, 3vw, 30px);
  width: 100%;
  min-width: 0;
}

.brvlf-form {
  display: grid;
  gap: 18px;
}

.brvlf-field {
  display: grid;
  gap: 7px;
}

.brvlf-field label,
.brvlf-check span {
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.brvlf-field:has(input:required) label::after,
.brvlf-field:has(select:required) label::after,
.brvlf-field:has(textarea:required) label::after {
  content: " *";
  color: #ff8a3d;
}

.brvlf-control {
  position: relative;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.brvlf-control::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.16) 34%, rgba(255,255,255,0) 100%) top left / 32% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.16) 34%, rgba(255,255,255,0) 100%) top left / 1px 48% no-repeat,
    linear-gradient(270deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.13) 34%, rgba(255,255,255,0) 100%) bottom right / 32% 1px no-repeat,
    linear-gradient(0deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.13) 34%, rgba(255,255,255,0) 100%) bottom right / 1px 48% no-repeat;
  opacity: 0.9;
  transition: opacity 180ms ease, background-size 180ms ease;
}

.brvlf-control:focus-within {
  border-color: rgba(255,138,61,0.62);
  background:
    linear-gradient(180deg, rgba(255,92,0,0.08), rgba(255,255,255,0.018)),
    rgba(255,255,255,0.035);
  box-shadow: 0 0 0 3px rgba(255,92,0,0.11), 0 0 28px rgba(255,92,0,0.08);
}

.brvlf-control:focus-within::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(255,138,61,0.92) 0%, rgba(255,138,61,0.3) 44%, rgba(255,138,61,0) 100%) top left / 42% 1px no-repeat,
    linear-gradient(180deg, rgba(255,138,61,0.92) 0%, rgba(255,138,61,0.3) 44%, rgba(255,138,61,0) 100%) top left / 1px 58% no-repeat,
    linear-gradient(270deg, rgba(255,138,61,0.76) 0%, rgba(255,138,61,0.24) 44%, rgba(255,138,61,0) 100%) bottom right / 42% 1px no-repeat,
    linear-gradient(0deg, rgba(255,138,61,0.76) 0%, rgba(255,138,61,0.24) 44%, rgba(255,138,61,0) 100%) bottom right / 1px 58% no-repeat;
}

.brvlf-field input,
.brvlf-field select,
.brvlf-field textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
}

.brvlf-field select {
  color-scheme: dark;
}

.brvlf-field select option {
  background: #101010;
  color: #fff;
}

.brvlf-field input,
.brvlf-field select {
  height: 52px;
}

.brvlf-field textarea {
  min-height: 132px;
  resize: vertical;
}

.brvlf-field input:focus,
.brvlf-field select:focus,
.brvlf-field textarea:focus {
  box-shadow: none;
}

.brvlf-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.45;
}

.brvlf-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff5c00;
}

.brvlf-hp {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.brvlf-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff5c00, #ff8a3d);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.brvlf-submit:hover {
  box-shadow: 0 10px 30px rgba(255, 92, 0, 0.22);
  transform: translateY(-1px);
}

.brvlf-submit:focus-visible,
.brvlf-check input:focus-visible {
  outline: 2px solid rgba(255, 138, 61, 0.95);
  outline-offset: 3px;
}

.brvlf-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.brvlf-status {
  min-height: 22px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.45;
}

.brvlf-status.error {
  color: #ff8c8c;
}

.brvlf-success {
  display: none;
  padding: 24px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
}

.brvlf-success.active {
  display: block;
}

.brvlf-resource-fallback {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,92,0,0.08), rgba(123,47,190,0.06)),
    rgba(255,255,255,0.026);
  border: 1px solid rgba(255,255,255,0.11);
}

.brvlf-fallback-kicker {
  margin: 0 0 10px;
  color: #ff8a3d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brvlf-resource-fallback h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.brvlf-resource-fallback p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.55;
}

.brvlf-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.brvlf-resource-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.brvlf-resource-primary {
  background: linear-gradient(135deg, #ff5c00, #ff8a3d);
}

.brvlf-resource-secondary {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 1100px) {
  .form-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 680px;
  }

  .form-copy {
    padding-top: 0;
  }

  .form-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  .form-shell {
    padding: 30px 16px 64px;
  }

  .form-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.04;
    max-width: 11ch;
  }

  .form-copy p {
    font-size: 16px;
  }

  .brvlf-form-card {
    border-radius: 10px;
    padding: 20px;
  }

  .brvlf-field textarea {
    min-height: 150px;
  }

  .brvlf-submit {
    min-height: 54px;
  }

  .brvlf-resource-actions {
    display: grid;
  }
}
