:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #0a1339;
  background: #f2f3f9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: grid;
  justify-items: center;
  min-height: 100svh;
  margin: 0;
}

.inquiry {
  container-type: inline-size;
  width: min(100%, 600px);
  background: #fff;
}

.panel {
  --unit: calc(100cqi / 691);
  --navy: #0a1339;
  --violet: #6625c3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(8 * var(--unit)) calc(40 * var(--unit)) calc(74 * var(--unit));
  background: #fff;
}

.panel::before, .panel::after {
  position: absolute;
  z-index: -1;
  right: 0;
  content: "";
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.panel::before {
  top: 0;
  width: calc(207 * var(--unit));
  height: calc(182 * var(--unit));
  background-image: url("/assets/inquiry-ribbon-top.webp");
}
.panel::after {
  bottom: 0;
  width: 100%;
  height: calc(69 * var(--unit));
  background-image: url("/assets/inquiry-ribbon-bottom.webp");
}

.intro { text-align: center; margin-bottom: calc(29 * var(--unit)); }
.brand img {
  display: block;
  width: calc(98 * var(--unit));
  height: calc(78 * var(--unit));
  margin: 0 auto;
  object-fit: contain;
}
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(21 * var(--unit));
  margin: calc(2 * var(--unit)) 0 0;
  color: #090f39;
  font-size: max(16px, calc(34 * var(--unit)));
  font-weight: 800;
  line-height: calc(38 * var(--unit));
  letter-spacing: .012em;
  white-space: nowrap;
}
.wordmark::before, .wordmark::after {
  content: "";
  width: calc(52 * var(--unit));
  height: max(1px, calc(3 * var(--unit)));
  border-radius: 999px;
  background: #0ac4df;
}

h1 {
  display: grid;
  place-items: center;
  width: calc(432 * var(--unit));
  min-height: calc(61 * var(--unit));
  margin: calc(11 * var(--unit)) auto 0;
  padding: 0 calc(12 * var(--unit)) calc(2 * var(--unit));
  border-radius: 999px;
  background: linear-gradient(101deg, #7900b7, #1f1788 49%, #003671 79%, #006eac);
  color: #fff;
  font-size: max(22px, calc(45 * var(--unit)));
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.intro p {
  margin: calc(12 * var(--unit)) 0 calc(15 * var(--unit));
  color: #121329;
  font-size: max(13px, calc(25 * var(--unit)));
  line-height: calc(29 * var(--unit));
}
.channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .91fr)) auto;
  align-items: center;
  min-height: calc(56 * var(--unit));
  padding: calc(4 * var(--unit)) calc(25 * var(--unit));
  border: 1px solid #e2e0ed;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px #1920520b;
  background: #f8f8fb;
}
.channel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.channel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #8e8ba1;
}
.channel img {
  width: calc(46 * var(--unit));
  height: calc(46 * var(--unit));
  border-radius: 20%;
  object-fit: contain;
}
.channel-text {
  margin-inline-start: calc(20 * var(--unit));
  font-size: max(9px, calc(19.6 * var(--unit)));
  font-weight: 750;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.field {
  display: grid;
  grid-template-columns: calc(53 * var(--unit)) minmax(0, 1fr);
  align-items: start;
  gap: calc(22 * var(--unit));
}
.field + .field { margin-top: calc(23 * var(--unit)); }
.field-icon { display: block; width: 100%; height: auto; }
.field label {
  display: block;
  margin-bottom: max(2px, calc(4 * var(--unit)));
  font-size: max(14px, calc(24.6 * var(--unit)));
  font-weight: 750;
  line-height: max(16px, calc(29 * var(--unit)));
  letter-spacing: -.022em;
  cursor: pointer;
}
.field label span { color: #be1015; }

.field input, .field select {
  display: block;
  width: 100%;
  min-height: max(31px, calc(55 * var(--unit)));
  padding: max(4px, calc(8 * var(--unit))) calc(23 * var(--unit));
  border: 1px solid #a3a3b1;
  border-radius: max(8px, calc(13 * var(--unit)));
  box-shadow: inset 0 1px 3px #25306612;
  background: #f7f7fa;
  color: #17203c;
  font: inherit;
  font-size: max(13px, calc(22 * var(--unit)));
}
.field input::placeholder, .field select:invalid { color: #525762; opacity: 1; }
.field select {
  appearance: none;
  padding-right: calc(49 * var(--unit));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23131b3e' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-size: max(14px, calc(24 * var(--unit)));
  background-repeat: no-repeat;
  background-position: right calc(18 * var(--unit)) center;
}
:focus-visible { outline: 2px solid #1b66c4; outline-offset: 2px; }

.consent {
  display: grid;
  grid-template-columns: max(19px, calc(37 * var(--unit))) 1fr;
  align-items: start;
  gap: calc(28 * var(--unit));
  margin: calc(31 * var(--unit)) calc(14 * var(--unit)) calc(34 * var(--unit));
  color: #121329;
  font-size: max(13px, calc(23 * var(--unit)));
  line-height: 1.24;
  cursor: pointer;
}
.consent span { max-width: calc(470 * var(--unit)); }
.consent input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: calc(4 * var(--unit)) 0 0;
  border: max(1px, calc(2.3 * var(--unit))) solid #7b7896;
  border-radius: max(4px, calc(8 * var(--unit)));
  background: #fff;
  cursor: pointer;
}
.consent input:checked {
  background: #5520b4;
  border-color: #5520b4;
}
.consent input:checked::after {
  content: "";
  width: 54%;
  height: 28%;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-12%) rotate(-45deg);
}

button { font: inherit; cursor: pointer; }
#send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(32 * var(--unit));
  width: calc(100% - 28 * var(--unit));
  min-height: max(44px, calc(79 * var(--unit)));
  margin: 0 auto;
  padding: calc(5 * var(--unit)) calc(15 * var(--unit)) calc(5 * var(--unit)) calc(50 * var(--unit));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 calc(8 * var(--unit)) calc(19 * var(--unit)) #27175e22;
  background: linear-gradient(108deg, #051b64, #2b1a9b 31%, #6810bb 70%, #8d00c9);
  color: #fff;
  font-size: max(23px, calc(45 * var(--unit)));
  font-weight: 750;
  letter-spacing: -.018em;
  line-height: 1;
  white-space: nowrap;
}
#send svg { width: calc(49 * var(--unit)); height: calc(49 * var(--unit)); fill: currentColor; }
#send span {
  border-left: 1px solid #ffffffab;
  padding: calc(1 * var(--unit)) 0 calc(1 * var(--unit)) calc(32 * var(--unit));
}
#send:disabled { opacity: .72; cursor: wait; }
#send:not(:disabled):hover { filter: brightness(1.1); }

#retry { border: 0; padding: 6px 0; background: none; color: #3b2698; text-decoration: underline; }
#form-feedback { margin: 13px 0 0; font-size: .92rem; line-height: 1.5; white-space: pre-line; }
#form-feedback:empty { margin: 0; }
#form-feedback[data-state="error"] { color: #8c1437; }
#form-feedback[data-state="sent"] { background: #f1f8f4; padding: 14px; border-radius: 12px; color: #13472e; font-weight: 650; }

@media (min-width: 640px) {
  body { align-items: center; padding: 22px; }
  .inquiry { overflow: hidden; border-radius: 17px; box-shadow: 0 14px 55px #17296119; }
}
@media (max-width: 639px) {
  :root { background: #fff; }
}
