/* Q4 Workspace: contact page (loaded after site.css) */
.ct {
  position: relative;
  isolation: isolate;
  padding: 170px 16px 120px;
}
.ct::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(1200px, 100vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 28%, rgba(42, 107, 102, 0.3), transparent 70%);
  pointer-events: none;
}
.ct__head { max-width: 680px; margin: 0 auto; text-align: center; }
.ct__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #b4bdbc; text-wrap: balance; }
.ct__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 64px auto 0;
  align-items: start;
}

/* ---------- Form ---------- */
.ct-form {
  padding: 32px;
  border-radius: 24px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1.2px) 0 0 / 16px 16px,
    linear-gradient(180deg, #0f1414, #090b0b);
  border: 1px solid rgba(111, 184, 174, 0.22);
}
.ct-form__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ct-form__note { margin-top: 6px; font-size: 14px; color: #8f9998; }
.ct-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.ct-field { display: grid; gap: 8px; min-width: 0; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font-size: 14px; font-weight: 500; color: #cfd6d5; }
.ct-field label span { color: var(--accent); }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color .2s ease, background .2s ease;
}
.ct-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.ct-field select {
  appearance: none;
  padding-right: 40px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='m2 3.5 3 3 3-3' fill='none' stroke='%236fb8ae' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat,
    rgba(255, 255, 255, 0.04);
}
.ct-field select option, .ct-field select optgroup { color: #111; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #6f7a79; }
.ct-field input:hover, .ct-field select:hover, .ct-field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.ct-field input:focus-visible, .ct-field select:focus-visible, .ct-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: rgba(111, 184, 174, 0.06);
  box-shadow: 0 0 0 3px rgba(111, 184, 174, 0.15);
}
.ct-field [aria-invalid="true"] { border-color: #e58a8a; }
.ct-field__error { font-size: 13px; color: #e58a8a; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.ct-form__legal { flex: 1 1 240px; font-size: 13px; line-height: 1.5; color: #7d8786; }
.ct-form__legal a { color: #a3acab; }
.ct-form .cta { border: none; cursor: pointer; font: inherit; font-weight: 700; }
.ct-form .cta[disabled] { opacity: .6; cursor: progress; }
.ct-form__status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.ct-form__status[data-state="ok"] { color: #dff5ef; background: rgba(42, 107, 102, 0.22); border: 1px solid rgba(111, 184, 174, 0.4); }
.ct-form__status[data-state="error"] { color: #f6dada; background: rgba(229, 138, 138, 0.1); border: 1px solid rgba(229, 138, 138, 0.35); }
.ct-form__status a { color: inherit; }

/* ---------- Side cards ---------- */
.ct-side { display: grid; gap: 16px; }
.ct-card {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #111717, #0b0e0e);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ct-card__title { margin-top: 16px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ct-card__text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #8f9998; }
.ct-card .cta, .ct-card .btn-ghost { margin-top: 20px; width: 100%; justify-content: center; height: 46px; }
.ct-card__link { display: inline-block; margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(111, 184, 174, 0.35); word-break: break-all; }
.ct-card__link:hover { border-bottom-color: var(--accent); }
.ct-card__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }

@media (max-width: 940px) {
  .ct__grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 860px) { .ct { padding-top: 130px; } }
@media (max-width: 560px) {
  .ct-form { padding: 24px 18px; }
  .ct-form__fields { grid-template-columns: 1fr; }
  .ct-form .cta { width: 100%; justify-content: center; }
}

/* ---------- Styled dropdowns (built by site.js from the native selects) ---------- */
.ct-field .ct-select__native { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.ct-select { position: relative; }
.ct-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color .2s ease, background .2s ease;
}
.ct-select__button.is-placeholder { color: #8f9998; }
.ct-select__button:hover { border-color: rgba(255, 255, 255, 0.22); }
.ct-select__button:focus-visible, .ct-select.is-open .ct-select__button {
  outline: none;
  border-color: var(--accent);
  background: rgba(111, 184, 174, 0.06);
  box-shadow: 0 0 0 3px rgba(111, 184, 174, 0.15);
}
.ct-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-select__button svg { flex: none; color: var(--accent); transition: transform .25s ease; }
.ct-select.is-open .ct-select__button svg { transform: rotate(180deg); }
.ct-select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: rgba(12, 16, 16, 0.97);
  border: 1px solid rgba(111, 184, 174, 0.25);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 184, 174, 0.4) transparent;
}
.ct-select__list:focus { outline: none; }
.ct-select__list ul { list-style: none; }
.ct-select__group + .ct-select__group, .ct-select__option + .ct-select__group, .ct-select__group + .ct-select__option { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ct-select__group-label { display: block; padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.ct-select__option {
  position: relative;
  padding: 10px 36px 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: #dfe5e4;
  cursor: pointer;
}
.ct-select__option.is-placeholder { color: #8f9998; }
.ct-select__option.is-active { color: #fff; background: rgba(111, 184, 174, 0.12); }
.ct-select__option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fb8ae' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Consent checkbox ---------- */
.ct-consent { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 280px; }
.ct-consent input {
  flex: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background .2s ease, border-color .2s ease;
}
.ct-consent input:hover { border-color: var(--accent); }
.ct-consent input:checked {
  border-color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaf6f4' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat,
    radial-gradient(circle at 35% 30%, #4f9a92, var(--brand) 72%);
}
.ct-consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-consent input[aria-invalid="true"] { border-color: #e58a8a; }
.ct-consent label { font-size: 14px; line-height: 1.5; color: #a3acab; cursor: pointer; }
.ct-consent label a { color: var(--accent); }
.ct-consent label span { color: var(--accent); }
.ct-form__foot > .ct-field__error { flex-basis: 100%; order: 1; margin-top: -6px; }
.ct-form__foot > .cta { order: 2; }
