.ticket-dialog {
  width: min(46rem, calc(100vw - 2rem));
}

.ticket-dialog-inner {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.ticket-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ticket-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ticket-address-row {
  grid-template-columns: minmax(7rem, 0.38fr) minmax(0, 1fr);
}

.ticket-form label:not(.ticket-checkbox) {
  display: grid;
  gap: 0.45rem;
  color: #b9bec6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ticket-form input:not([type="checkbox"]),
.ticket-form select {
  appearance: none;
  width: 100%;
  min-height: 3.25rem;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.8rem;
  padding: 0.82rem 0.95rem;
  background: rgba(255, 255, 255, 0.075);
  color: #f5f2ec;
  font: 600 1rem/1.25 system-ui, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ticket-form select {
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #c8a67d 50%),
    linear-gradient(135deg, #c8a67d 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.35rem, calc(100% - 0.9rem) 1.35rem;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
}

.ticket-form input:not([type="checkbox"]):focus,
.ticket-form select:focus {
  outline: none;
  border-color: #c8a67d;
  background-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(200, 166, 125, 0.16);
}

.ticket-form input:-webkit-autofill,
.ticket-form input:-webkit-autofill:hover,
.ticket-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f2ec;
  box-shadow: 0 0 0 1000px #1a2025 inset;
  caret-color: #f5f2ec;
}

.ticket-country {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  color: #b9bec6;
  font-size: 0.9rem;
}

.ticket-checkbox {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: #b9bec6;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ticket-checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: #c8a67d;
}

.ticket-checkbox a {
  color: #f5f2ec;
  text-underline-offset: 0.2rem;
}

.ticket-honeypot,
.ticket-honeypot[hidden] {
  display: none !important;
}

.ticket-form-status:not(:empty) {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(200, 166, 125, 0.24);
  border-radius: 0.75rem;
  background: rgba(200, 166, 125, 0.1);
  color: #f5f2ec;
}

.ticket-dialog-actions {
  margin-top: 0.35rem;
}

.ticket-dialog-actions .button {
  min-height: 3.25rem;
}

@media (max-width: 640px) {
  .ticket-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .ticket-dialog-inner {
    max-height: calc(100vh - 1rem);
  }

  .ticket-form-row,
  .ticket-address-row {
    grid-template-columns: 1fr;
  }

  .ticket-dialog-actions {
    display: grid;
  }

  .ticket-dialog-actions .button {
    width: 100%;
  }
}
