: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; }
}

.receipt{position:relative;isolation:isolate;overflow:hidden;text-align:center;margin:12px auto;padding:clamp(20px,5vw,34px) clamp(12px,3.8vw,29px);border:1px solid #4bbde4;border-radius:17px;background:radial-gradient(ellipse at 95% 0%,#48276a 0%,transparent 57%),linear-gradient(145deg,#101e42,#101833);box-shadow:0 8px 26px #15265630;color:#fff}
.receipt-mark{display:grid;place-items:center;margin:0 auto 12px;width:49px;height:49px;border-radius:50%;border:1px solid #67d5f4;background:#113b5a;color:#abf1ff;font-size:1.55rem;font-weight:700;line-height:1}
.receipt h2{color:#fff;margin:0 0 8px;font-size:clamp(1.18rem,4.4vw,1.72rem);line-height:1.19;letter-spacing:-.02em;font-weight:750;text-wrap:balance;white-space:normal}
.receipt p{max-width:43ch;color:#d5e5ff;margin:0 auto;line-height:1.5;font-size:clamp(.8rem,2.6vw,.94rem)}
.receipt-ref{display:block;width:fit-content;max-width:100%;margin:13px auto 0;border:1px solid #7895cb;border-radius:8px;padding:5px 10px;color:#e5efff;font-size:.79rem;overflow-wrap:anywhere}
.receipt .actions{justify-content:center;margin:14px auto 0}

@media (max-width: 767px), (max-width: 1050px) and (hover: none) and (pointer: coarse) {
  :root { background: #fff; }
  body { display: block; padding: 0; }
  .inquiry {
    width: 100%;
    min-height: 100svh;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  .panel {
    padding: 16px clamp(16px, 4.3vw, 36px) max(46px, calc(70 * var(--unit)));
  }
  .panel::before {
    width: clamp(96px, 25vw, 180px);
    height: auto;
    aspect-ratio: 207 / 182;
  }
  .panel::after { height: clamp(32px, 10vw, 61px); }
  .intro { margin-bottom: 22px; }
  .brand img { width: 56px; height: 44px; }
  .wordmark { gap: 11px; margin-top: 2px; font-size: 21px; line-height: 1.16; }
  .wordmark::before, .wordmark::after { width: clamp(16px, 6vw, 40px); height: 2px; }
  h1 {
    width: min(100%, 460px);
    min-height: 50px;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: clamp(27px, 7.4vw, 38px);
    line-height: 1.1;
    white-space: normal;
  }
  .intro p { margin: 9px 0 13px; font-size: 16px; line-height: 1.4; }
  .channels {
    grid-template-columns: repeat(3, clamp(29px, 8.5vw, 44px)) minmax(0, 1fr);
    min-height: 39px;
    padding: 4px 8px;
  }
  .channel img { width: 23px; height: 23px; }
  .channel-text {
    margin-inline-start: 8px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }
  .field { grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 9px; }
  .field + .field { margin-top: 14px; }
  .field-icon { margin-top: 22px; }
  .field label { margin-bottom: 5px; font-size: 16px; line-height: 1.25; }
  .field input, .field select { min-height: 50px; padding: 10px 12px; font-size: 16px; }
  .field select { padding-inline-end: 32px; background-position: right 11px center; text-overflow: ellipsis; }
  .consent {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    gap: 10px;
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .consent input { margin: 0; }
  .consent span { max-width: none; }
  #send {
    width: 100%;
    min-height: 53px;
    gap: 12px;
    padding: 8px 14px;
    font-size: 21px;
    line-height: 1.2;
    white-space: normal;
  }
  #send svg { width: 25px; height: 25px; flex: none; }
  #send span { padding: 0 0 0 12px; }
  #retry { min-height: 44px; }
  .receipt p { font-size: 16px; }
}
