@import url("/css/cds-bg.css?v=oferta2");

:root {
  --olive: #5a7a22;
  --olive-2: #7b9921;
  --mustard: #e4b31a;
  --sun: #f5d24a;
  --ink: #171717;
  --muted: #5a5a5a;
  --cream: #fffcf5;
  --paper: #fffef8;
  --wa: #25d366;
}

/* Floating widgets on the exported Webflow pages */
.ct-fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: "Open Sans", system-ui, sans-serif;
}

.ct-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--olive);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  background: var(--sun);
}

.ct-fab img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ct-fab-wa {
  background: var(--wa);
  color: #fff;
}
.ct-fab-wa svg {
  width: 28px;
  height: 28px;
  display: block;
}

.ct-chat {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 99991;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--olive);
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink);
}

.ct-chat.is-open { display: flex; }

.ct-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.ct-chat-head img { width: 36px; height: 36px; }
.ct-chat-head strong { display: block; font-size: 15px; }
.ct-chat-head span { font-size: 12px; color: var(--muted); }
.ct-chat-close {
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.ct-chat-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-msg {
  max-width: 90%;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ct-msg-bot { background: #fff; align-self: flex-start; box-shadow: 3px 3px 0 var(--sun); }
.ct-msg-user { background: var(--sun); align-self: flex-end; }

.ct-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 2px solid var(--ink);
  background: #fff;
}

.ct-chat-form input {
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.ct-chat-form button,
.ct-btn {
  border: 2px solid var(--ink);
  background: var(--mustard);
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--olive);
}
.ct-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.ct-btn-ghost {
  background: #fff;
}
.ct-btn-wa { background: var(--wa); color: #fff; }
.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.ct-banner {
  border: 2px solid var(--ink);
  padding: 12px 14px;
  margin: 0 0 16px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--sun);
}
.ct-banner.warn { box-shadow: 4px 4px 0 #c45c26; }
.ct-banner p { margin: 0; }
.ct-box {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 14px 16px;
  margin: 0 0 16px;
}
.ct-box h3 { margin: 0 0 8px; font-size: 16px; }
.ct-page button.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}
.ct-phone {
  display: block;
  font-family: Nunito, "Open Sans", system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 8px 0 6px;
  cursor: pointer;
  user-select: all;
}
.ct-phone-box {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--olive);
  padding: 18px 20px 16px;
  margin: 0 0 16px;
  text-align: center;
}
.ct-phone-box small { color: var(--muted); }

.ct-chip-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.ct-chip {
  border: 2px solid var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}

.w-webflow-badge { display: none !important; }

/* Standalone app pages (cerere + echipă) */
.ct-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, #e8f0c8 0 28px, transparent 29px),
    radial-gradient(circle at 88% 12%, #f5d24a 0 18px, transparent 19px),
    linear-gradient(#fffcf5, #f3efe4);
  color: var(--ink);
  font-family: "Open Sans", system-ui, sans-serif;
}

.ct-page h1, .ct-page h2, .ct-page h3 {
  font-family: Nunito, "Open Sans", system-ui, sans-serif;
  line-height: 1.2;
}

.ct-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 80px; }

.ct-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ct-top a { color: var(--ink); font-weight: 700; }

.ct-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--olive);
  padding: 28px 26px 32px;
}

.ct-card h1 { margin: 0 0 8px; font-size: 28px; }
.ct-card h1 span { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.ct-lead { color: #333; margin: 0 0 18px; max-width: 52ch; }

.ct-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ct-field span { font-weight: 700; font-size: 14px; }
.ct-field input, .ct-field textarea, .ct-field select {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.ct-files { display: grid; gap: 10px; margin: 8px 0 18px; }
.ct-file {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 10px 12px;
}
.ct-file small { color: var(--muted); display: block; margin-top: 4px; }

.ct-note { color: var(--muted); font-size: 13px; }

.ct-ok {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--sun);
  padding: 16px;
}

.ct-err { color: #8a1f11; font-weight: 700; }

.ct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct-table th, .ct-table td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.ct-table button.link,
.ct-dl button.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ct-dl { display: grid; gap: 8px; }
.ct-dl div { background: #fff; border: 2px solid var(--ink); padding: 10px 12px; }
.ct-dl dt { font-size: 12px; color: var(--muted); }
.ct-dl dd { margin: 2px 0 0; font-weight: 700; }

.ct-hills {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: radial-gradient(120px 50px at 20% 100%, var(--olive-2) 0 70%, transparent 71%),
              radial-gradient(160px 60px at 55% 110%, var(--olive) 0 70%, transparent 71%),
              radial-gradient(140px 50px at 85% 100%, var(--olive-2) 0 70%, transparent 71%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .ct-card { padding: 20px 16px 24px; }
  .ct-chat { bottom: 80px; }
}
