*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cq-green: #1E4233;
  --cq-green-2: #24503E;
  --cq-ink: #10231B;
  --cq-cream: #FBF7EC;
  --cq-bg: #F5EFE0;
  --cq-lime: #D0F000;
  --cq-gold: #C39B62;
  --cq-muted: #4E5D54;
  --cq-line: rgba(16, 35, 27, 0.18);
  --cq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  min-height: 100%;
}

body.cq {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cq-bg);
  color: var(--cq-ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.cq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cq-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 6px;
  background: #35554A;
}

.cq-progress-fill {
  display: block;
  width: var(--cq-p, 0%);
  height: 100%;
  background: linear-gradient(90deg, rgba(208, 240, 0, 0.35), var(--cq-lime));
  transition: width 0.6s var(--cq-ease);
}

.cq-logo {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 10;
  pointer-events: none;
}

.cq-logo img {
  display: block;
  width: 64px;
  height: auto;
}

.cq-form {
  min-height: 100vh;
  min-height: 100svh;
}

.cq-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 24px 110px;
}

.cq-step[hidden] {
  display: none;
}

.cq-inner {
  width: min(720px, 100%);
  animation: cq-in 0.55s var(--cq-ease) both;
}

.cq-step.is-back .cq-inner {
  animation-name: cq-in-back;
}

@keyframes cq-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cq-in-back {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cq-q {
  position: relative;
  margin: 0 0 28px;
  padding-left: 46px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--cq-ink);
}

.cq-num {
  position: absolute;
  top: 0.32em;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cq-gold);
}

.cq-num svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cq-options {
  display: grid;
  grid-template-columns: fit-content(100%);
  gap: 10px;
  padding-left: 46px;
}

.cq-options .cq-option {
  width: 100%;
}

.cq-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-width: min(380px, 100%);
  max-width: 100%;
  padding: 11px 16px 11px 11px;
  border: 1px solid var(--cq-line);
  border-radius: 12px;
  background: rgba(30, 66, 51, 0.06);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s var(--cq-ease), border-color 0.25s var(--cq-ease), transform 0.25s var(--cq-ease);
}

.cq-option:hover {
  background: rgba(30, 66, 51, 0.12);
  border-color: rgba(16, 35, 27, 0.35);
}

.cq-option:focus-visible {
  outline: 2px solid var(--cq-green);
  outline-offset: 2px;
}

.cq-key {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(16, 35, 27, 0.3);
  border-radius: 6px;
  background: var(--cq-cream);
  font-size: 13px;
  font-weight: 700;
}

.cq-option-text {
  flex: 1;
}

.cq-check {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.cq-option.is-selected {
  background: var(--cq-green);
  border-color: var(--cq-green);
  color: var(--cq-cream);
}

.cq-option.is-selected .cq-key {
  border-color: var(--cq-lime);
  background: var(--cq-lime);
  color: var(--cq-ink);
}

.cq-option.is-selected .cq-check {
  opacity: 1;
  color: var(--cq-lime);
}

.cq-option.is-blink {
  animation: cq-blink 0.36s steps(2) 2;
}

@keyframes cq-blink {
  50% {
    opacity: 0.55;
  }
}

.cq-other-input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  font-weight: 500;
  font-style: normal;
  color: var(--cq-ink);
  outline: none;
}

.cq-other-input::placeholder {
  font-style: italic;
  color: rgba(16, 35, 27, 0.4);
}

.cq-other-input[hidden],
.cq-option-text[hidden] {
  display: none;
}

.cq-option.cq-other.is-selected {
  border-color: var(--cq-green);
  background: var(--cq-cream);
  color: var(--cq-ink);
  box-shadow: 0 0 0 1px var(--cq-green);
  cursor: text;
}

.cq-option.cq-other.is-selected .cq-check {
  opacity: 0;
}

.cq-options--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}

.cq-options--grid .cq-option {
  width: 100%;
  min-width: 0;
}

.cq-input {
  display: block;
  width: calc(100% - 46px);
  margin-left: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid rgba(30, 66, 51, 0.35);
  background: transparent;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--cq-ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s var(--cq-ease);
}

.cq-input::placeholder {
  color: rgba(16, 35, 27, 0.35);
}

.cq-input:focus {
  border-bottom-color: var(--cq-green);
}

.cq-textarea {
  resize: none;
  min-height: 96px;
  line-height: 1.4;
}

.cq-fields {
  display: grid;
  gap: 22px;
}

.cq-label {
  display: grid;
  gap: 4px;
  padding-left: 46px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cq-muted);
}

.cq-field[hidden],
.cq-otp[hidden] {
  display: none;
}

.cq-field {
  min-width: 0;
}

.cq-field .cq-label {
  margin-bottom: 4px;
}

.cq-field-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 46px;
}

.cq-field-row .cq-input {
  flex: 1;
  width: auto;
  min-width: 0;
  margin-left: 0;
}

.cq-field-icon,
.cq-cc-btn {
  flex-shrink: 0;
  width: 104px;
  height: 48px;
  border: 1px solid rgba(16, 35, 27, 0.14);
  border-radius: 12px;
  background: #FFFDF8;
  box-shadow: 0 2px 8px rgba(16, 35, 27, 0.05);
  color: var(--cq-green);
}

.cq-field-icon {
  display: grid;
  place-items: center;
}

.cq-field-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cq-cc {
  position: relative;
  flex-shrink: 0;
}

.cq-cc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.2s var(--cq-ease), box-shadow 0.2s var(--cq-ease);
}

.cq-cc-btn:hover,
.cq-cc-btn[aria-expanded="true"] {
  border-color: rgba(30, 66, 51, 0.45);
  box-shadow: 0 4px 14px rgba(16, 35, 27, 0.08);
}

.cq-cc-btn:focus-visible {
  outline: 2px solid var(--cq-green);
  outline-offset: 2px;
}

.cq-cc-flag,
.cq-cc-item img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 35, 27, 0.12);
}

.cq-cc-caret {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--cq-ease);
}

.cq-cc-btn[aria-expanded="true"] .cq-cc-caret {
  transform: rotate(180deg);
}

.cq-cc-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 290px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 14px;
  background: #FFFDF8;
  box-shadow: 0 18px 44px rgba(16, 35, 27, 0.16);
}

.cq-cc-menu[hidden] {
  display: none;
}

.cq-cc-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(16, 35, 27, 0.16);
  border-radius: 9px;
  background: var(--cq-cream);
  font-size: 14px;
  outline: none;
}

.cq-cc-search:focus {
  border-color: var(--cq-green);
}

.cq-cc-list {
  max-height: 240px;
  margin-top: 6px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 66, 51, 0.35) transparent;
}

.cq-cc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.cq-cc-item:hover {
  background: rgba(30, 66, 51, 0.08);
}

.cq-cc-item.is-active {
  background: rgba(30, 66, 51, 0.12);
  font-weight: 600;
}

.cq-cc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-cc-code {
  color: var(--cq-muted);
}

.cq-otp-note {
  margin: 0 0 6px 46px;
  font-size: 14px;
  color: var(--cq-muted);
}

.cq-otp-resend {
  margin: 10px 0 0 46px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--cq-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cq-gate-q {
  padding-left: 0;
}

.cq-captcha {
  min-height: 78px;
}

.cq-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-left: 46px;
}

.cq-ok {
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--cq-green);
  color: var(--cq-cream);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.25s var(--cq-ease), transform 0.25s var(--cq-ease);
}

.cq-ok:hover {
  background: var(--cq-green-2);
  transform: translateY(-1px);
}

.cq-ok[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.cq-submit {
  background: var(--cq-lime);
  color: var(--cq-ink);
}

.cq-submit:hover {
  background: #E4FF43;
}

.cq-error {
  margin-top: 14px;
  padding-left: 46px;
  font-size: 14px;
  font-weight: 600;
  color: #B3261E;
}

.cq-error[hidden] {
  display: none;
}

.cq-loading {
  padding-left: 46px;
  font-size: 15px;
  color: var(--cq-muted);
}

.cq-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(16, 35, 27, 0.18);
}

.cq-nav-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  border: 0;
  background: var(--cq-green);
  color: var(--cq-cream);
  cursor: pointer;
}

.cq-nav-btn + .cq-nav-btn {
  border-left: 1px solid rgba(251, 247, 236, 0.18);
}

.cq-nav-btn:hover {
  background: var(--cq-green-2);
}

.cq-nav-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.cq-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cq-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  max-width: 700px;
  margin-left: 46px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 22px;
  background: #FFFDF8;
  box-shadow: 0 24px 60px rgba(16, 35, 27, 0.1);
}

.cq-cal-month {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.cq-cal-month .cq-cal-grid {
  flex: 1;
  align-content: space-between;
}

.cq-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cq-cal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cq-cal-nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 35, 27, 0.14);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--cq-ease);
}

.cq-cal-nav:hover:not([disabled]) {
  background: rgba(30, 66, 51, 0.08);
}

.cq-cal-nav[disabled] {
  opacity: 0.3;
  cursor: default;
}

.cq-cal-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cq-cal-week,
.cq-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cq-cal-week {
  margin-bottom: 8px;
}

.cq-cal-week span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cq-muted);
}

.cq-cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: rgba(16, 35, 27, 0.32);
}

.cq-cal-day.is-open {
  background: rgba(30, 66, 51, 0.08);
  font-weight: 700;
  color: var(--cq-green);
  cursor: pointer;
  transition: background-color 0.2s var(--cq-ease), color 0.2s var(--cq-ease);
}

.cq-cal-day.is-open:hover {
  background: rgba(30, 66, 51, 0.16);
}

.cq-cal-day.is-open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cq-gold);
}

.cq-cal-day.is-active {
  background: var(--cq-green);
  color: var(--cq-cream);
}

.cq-cal-day.is-active::after {
  background: var(--cq-lime);
}

.cq-cal-day:focus-visible {
  outline: 2px solid var(--cq-green);
  outline-offset: 2px;
}

.cq-cal-times {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px;
  border-left: 1px solid var(--cq-line);
  background: #FBF7EC;
}

.cq-cal-date {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cq-cal-tz {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--cq-muted);
}

.cq-cal-tz svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cq-cal-slots {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: space-between;
}

.cq-cal-slots .cq-loading {
  grid-column: 1 / -1;
}

.cq-cal-slots .cq-loading {
  padding-left: 0;
}

.cq-time {
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 7px 4px;
  border-color: rgba(30, 66, 51, 0.35);
  border-radius: 9px;
  background: transparent;
  color: var(--cq-green);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cq-time:hover:not(:disabled) {
  background: var(--cq-green);
  border-color: var(--cq-green);
  color: var(--cq-cream);
}

.cq-time.is-off,
.cq-time:disabled {
  border-color: rgba(16, 35, 27, 0.1);
  background: rgba(16, 35, 27, 0.03);
  color: rgba(16, 35, 27, 0.3);
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .cq-cal {
    grid-template-columns: minmax(0, 1fr);
  }
  .cq-cal-times {
    border-left: 0;
    border-top: 1px solid var(--cq-line);
  }
}

@media (max-width: 640px) {
  .cq-logo {
    top: 18px;
    left: 18px;
  }
  .cq-logo img {
    width: 52px;
  }
  .cq-step {
    align-items: flex-start;
    padding: 104px 18px 96px;
  }
  .cq-q {
    padding-left: 0;
    padding-top: 28px;
    font-size: 21px;
  }
  .cq-num {
    top: 0;
  }
  .cq-options,
  .cq-actions,
  .cq-error,
  .cq-label {
    padding-left: 0;
  }
  .cq-input {
    width: 100%;
    margin-left: 0;
  }
  .cq-field-row,
  .cq-otp-note,
  .cq-otp-resend {
    margin-left: 0;
  }
  .cq-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .cq-cal-slots .cq-time {
    padding: 7px 2px;
    font-size: 11.5px;
    letter-spacing: -0.02em;
  }
  .cq-cal {
    margin-left: 0;
  }
  .cq-cal-month,
  .cq-cal-times {
    padding: 20px 16px;
  }
  .cq-option {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .cq-nav {
    right: 18px;
    bottom: 18px;
  }
}
