/* static/css/contact-drafts.css
   The Contact page (.kb) and its three-step form. Builds on home-drafts.css. */

/* Shared form pieces */

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.cf-field label {
  font-size: 14px;
  font-weight: 700;
}

.cf-field label small {
  margin-left: 6px;
  font-weight: 400;
}

.cf-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.cf-input {
  min-height: 150px;
  resize: vertical;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.cf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 15px;
}

.cf-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
}

.cf-note {
  display: none;
  margin-top: 16px !important;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.cf-note.is-visible {
  display: block;
}

.cf-note a {
  font-weight: 700;
}

.cf-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}

.cf-prompt {
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .cf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================================================
   KAPCSOLAT B — "Jeladás" (dark, .mb family)
   ================================================================ */

.kb .cf-field label { color: var(--text); }
.kb .cf-field label small { color: var(--muted); }

.kb .cf-input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.kb .cf-input::placeholder { color: #7d889e; }

.kb .cf-input:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 165, 61, 0.18);
}

.kb .cf-check { color: var(--muted); }
.kb .cf-check a { color: var(--text); }
.kb .cf-check input { accent-color: var(--amber); }

.kb .cf-note {
  border: 1px solid rgba(255, 165, 61, 0.4);
  background: rgba(255, 165, 61, 0.1);
  color: #ffd9a6;
}

.kb .cf-note a { color: #fff; }

.kb .cf-prompt {
  border: 1px dashed rgba(255, 165, 61, 0.55);
  background: transparent;
  color: #ffc27a;
}

.kb .cf-prompt:hover {
  background: rgba(255, 165, 61, 0.1);
}

.kb-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: start;
}

.kb-form {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 34, 64, 0.85), rgba(10, 18, 36, 0.95));
  box-shadow: 0 -30px 90px -40px rgba(255, 165, 61, 0.25);
}

.kb-step {
  position: relative;
  margin: 0;
  padding: 0 0 30px 58px;
  border: 0;
}

.kb-step::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 6px;
  left: 17px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 165, 61, 0.6), rgba(255, 165, 61, 0.1));
}

.kb-step:last-of-type::before {
  display: none;
}

.kb-step > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 180, 90, 0.7));
}

.kb-step legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
  color: var(--text);
}

.kb-step legend small {
  display: block;
  margin-bottom: 2px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.kb-step > .kb-step__body {
  clear: both;
}

.kb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kb-pill {
  position: relative;
}

.kb-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kb-pill span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kb-pill span:hover {
  border-color: rgba(255, 165, 61, 0.7);
}

.kb-pill input:checked + span {
  border-color: var(--amber);
  background: linear-gradient(180deg, #ffb65c, var(--amber-2));
  color: #1a0f02;
}

.kb-pill input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* After sending: this card takes the form's place. */
.kb-sent {
  position: relative;
  padding-left: calc(clamp(24px, 3.4vw, 44px) + 58px);
}

.kb-sent > svg {
  position: absolute;
  top: clamp(24px, 3.4vw, 44px);
  left: clamp(24px, 3.4vw, 44px);
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 180, 90, 0.7));
}

.kb-sent h2 {
  margin: 4px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
}

.kb-sent h2 em {
  color: var(--amber);
}

.kb-sent p:not(.mb-kicker) {
  max-width: 34em;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
}

.kb-formal {
  margin-top: 14px !important;
  font-size: 14px;
}

.kb-side {
  display: grid;
  gap: 16px;
}

.kb-side .mb-panel {
  padding: 28px;
}

.kb-mail {
  display: inline-block;
  margin: 6px 0 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2.6vw, 32px);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
}

.kb-mail:hover {
  color: var(--amber);
}

.kb-side .mb-constellation li {
  font-size: 15.5px;
}

/* Kapcsolat B — responsive */

@media (max-width: 960px) {
  .kb-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .kb-step {
    padding-left: 46px;
  }

  .kb-step > svg {
    width: 30px;
    height: 30px;
  }

  .kb-step::before {
    left: 14px;
  }

  .kb-sent {
    padding-left: calc(clamp(24px, 3.4vw, 44px) + 46px);
  }

  .kb-sent > svg {
    width: 30px;
    height: 30px;
  }
}

/* Live form (2026-09-28): field errors, and the hidden honeypot field. */
.cf-error {
  margin: 6px 0 0 !important;
  font-size: 14px;
  font-weight: 600;
}

.kb .cf-error { color: #ffb4a6; }

.kb-form .contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
