/* ============================================================
   HUDDLE — formularul de contact (pagina /contact/ și fereastra
   care se deschide de pe celelalte pagini). Încărcat de contact.js.
   ============================================================ */

.cf { display: grid; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: grid; gap: 6px; }
.cf-field label, .cf-motiv legend { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.cf-field small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-left: 6px; }
.cf input:not([type="radio"]):not([type="checkbox"]), .cf textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text-primary) 22%, transparent);
  background: #fff; font-size: 16px; color: var(--text-primary);
  transition: border-color var(--dur-ui), box-shadow var(--dur-ui);
}
.cf textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(118, 199, 83, .2); }
.cf [aria-invalid="true"] { border-color: #b4462f !important; }

.cf-motiv { border: 0; margin: 0; padding: 0; }
.cf-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cf-choice { position: relative; cursor: pointer; }
.cf-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cf-choice span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: #fff; border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
  transition: background var(--dur-ui), color var(--dur-ui), border-color var(--dur-ui);
}
.cf-choice input:checked + span { background: var(--green-800); border-color: var(--green-800); color: #f0f7ea; }
.cf-choice input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.cf-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.cf-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fbeee9; color: #8a3423; font-size: 14px; }
.cf-error a { text-decoration: underline; }
.cf-send { justify-self: start; border: 0; cursor: pointer; }
.cf-send.is-busy { opacity: .6; pointer-events: none; }

.cf-done { padding: 28px 0 8px; outline: none; }
.cf-done-mark {
  display: block; width: 48px; height: 48px; border-radius: 50%;
  background: var(--lime-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23263d28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.cf-done-title { margin-top: 16px !important; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--text-primary); }
.cf-done p + p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.cf-done a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- fereastra ---------- */
.cf-lock { overflow: hidden; }
.cf-dialog {
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px;
  background: var(--bg-page, #fafbf7); color: var(--text-primary); box-shadow: 0 40px 100px -30px rgba(15, 33, 26, .6);
}
.cf-dialog::backdrop { background: rgba(15, 33, 26, .55); backdrop-filter: blur(3px); }
.cf-dialog[open] { animation: cf-in .35s var(--ease-out); }
@keyframes cf-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cf-dialog-box { position: relative; padding: clamp(24px, 4vw, 40px); }
.cf-dialog .eyebrow { color: var(--accent-ink); }
.cf-dialog h2 { margin-top: 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.cf-dialog-lead { margin: 10px 0 22px; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.cf-dialog-lead a { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.cf-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.cf-close:hover { background: rgba(38, 61, 40, .08); }
.cf-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-send { justify-self: stretch; }
}

/* ---------- pagina /contact/ ---------- */
.page-contact { --bg-page: #fafbf7; background: var(--bg-page); }
.ct-page { padding: 0 var(--gutter); min-height: 100svh; }
.ct {
  max-width: 1180px; margin: 0 auto; padding: calc(var(--header-h) + clamp(40px, 8vh, 90px)) 0 clamp(80px, 12vh, 130px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start;
}
.ct .eyebrow { color: var(--accent-ink); }
.ct h1 { margin-top: 14px; font-size: clamp(40px, 5vw, 70px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.ct h1 em { color: #3f7424; }
.ct-lead { margin-top: 20px; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.ct-lines { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ct-lines > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ct-lines dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.ct-lines dd { margin: 0; font-size: 18px; }
.ct-phone { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; border-bottom: 2px solid var(--lime-300); }
.ct-phone:hover { border-bottom-color: var(--green-400); }
.ct-start { margin-top: 28px; font-size: 15px; color: var(--text-secondary); }
.ct-start a { font-weight: 600; color: var(--text-primary); border-bottom: 1px solid currentColor; }
.ct-card { padding: clamp(24px, 3.4vw, 40px); border-radius: 26px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 40px 70px -50px rgba(20, 44, 36, .45); }
@media (max-width: 900px) {
  .ct { grid-template-columns: 1fr; }
}
