:root {
  --bg: #030607;
  --muted: #a8b8c4;
  --cyan: #b18700;
  --radius: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.quote-modal {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  width: min(980px, 100%);
  max-height: min(860px, 92svh);
  padding: 34px;
  border: 1px solid rgba(98, 232, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(98, 232, 255, 0.16), transparent 34rem),
    rgba(4, 9, 12, 0.94);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.52);
  overflow: auto;
}

.quote-modal-copy {
  align-self: center;
}

.quote-modal-copy p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form label {
  color: #dbe7ee;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: -4px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.quote-form textarea {
  min-height: 116px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.38);
}

.quote-form input.erro,
.quote-form textarea.erro {
  border-color: #ff6b6b;
  background: rgba(255, 63, 94, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.28), 0 0 30px rgba(255, 63, 94, 0.08);
}

.field-error {
  display: block;
  margin-top: -2px;
  color: #ffb5bd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.form-response-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 14, 0.68);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.form-response-backdrop[hidden] {
  display: none;
}

.form-response-backdrop.is-open {
  opacity: 1;
}

.form-response-dialog {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 21, 32, 0.98), rgba(2, 8, 16, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s ease;
}

.form-response-backdrop.is-open .form-response-dialog {
  transform: translateY(0) scale(1);
}

.form-response-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.form-response-close::before,
.form-response-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #fff;
}

.form-response-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.form-response-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.form-response-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.form-response-icon::before {
  content: "";
  display: block;
  width: 24px;
  height: 12px;
  margin: 22px auto 0;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(-45deg);
}

.form-response-backdrop.is-success .form-response-icon {
  color: #69f4c5;
  background: rgba(51, 214, 159, 0.12);
}

.form-response-backdrop.is-error .form-response-icon {
  color: #ff7a8b;
  background: rgba(255, 63, 94, 0.12);
}

.form-response-backdrop.is-error .form-response-icon::before {
  width: 24px;
  height: 3px;
  margin-top: 30px;
  border: 0;
  background: currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 currentColor;
}

.form-response-backdrop.is-error .form-response-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin: -3px auto 0;
  background: currentColor;
  transform: rotate(-45deg);
}

.form-response-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-response-content h3 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1;
}

.form-response-content p[data-form-response-message] {
  margin: 14px 0 0;
  color: #d7e3ea;
  font-size: 16px;
  line-height: 1.55;
}

.response-errors {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.response-errors summary {
  padding: 13px 14px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.response-errors ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px 30px;
  color: #f4c6cc;
  font-size: 14px;
  line-height: 1.45;
}

.form-message {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.form-message.success {
  border-color: rgba(121, 255, 181, 0.38);
  background: rgba(121, 255, 181, 0.12);
}

.form-message.error {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.12);
}