/* ============================================================
   ICE PRO — B2B кратка кандидатстваща страница (Cloudflare Pages)
   Бранд извлечен от icepro.bg
   ============================================================ */

:root {
  --rose: #ef3f6b;
  --rose-dark: #d92a55;
  --rose-soft: #fde6ec;
  --rose-tint: rgba(239, 63, 107, 0.12);
  --gold: #f6a623;
  --gold-soft: #fef2dd;
  --plum: #3a1f2d;
  --plum-70: rgba(58, 31, 45, 0.72);
  --plum-55: rgba(58, 31, 45, 0.58);
  --cream: #fff8f5;
  --white: #ffffff;
  --field-bg: rgba(247, 241, 243, 0.6);
  --line: rgba(58, 31, 45, 0.12);
  --shadow-sm: 0 2px 10px rgba(58, 31, 45, 0.06);
  --shadow-md: 0 18px 45px -20px rgba(239, 63, 107, 0.45);
  --shadow-lg: 0 40px 90px -34px rgba(58, 31, 45, 0.30);
  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--plum);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) 30px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.02rem;
  border-radius: 100px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 55px -20px rgba(239,63,107,.6); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-lg { --pad-y: 18px; font-size: 1.08rem; }
.btn-block { width: 100%; margin-top: 6px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
}
.announce-in {
  min-height: 46px; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 9px 0; flex-wrap: wrap;
  font-size: 0.96rem; font-weight: 700; text-align: center;
}
.announce strong { font-weight: 800; }
.announce a {
  color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
  transition: opacity .2s;
}
.announce a:hover { opacity: .82; }
.announce-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .announce-pulse { animation: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 248, 245, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.42rem; color: var(--rose); letter-spacing: -0.02em; }
.nav-mail { font-weight: 700; color: var(--plum-70); font-size: .95rem; }
.nav-mail:hover { color: var(--rose); }
.nav-alt {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .96rem; color: var(--rose);
  padding: 9px 20px; border: 1.5px solid var(--rose); border-radius: 100px; transition: all .2s;
}
.nav-alt:hover { background: var(--rose); color: #fff; }

/* ---------- Background blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: #ffd9e2; top: -160px; right: -120px; }
.blob-2 { width: 460px; height: 460px; background: var(--gold-soft); bottom: -180px; left: -160px; }

/* ---------- Stage (hero + form) ---------- */
.stage { position: relative; overflow: hidden; padding: 56px 0 72px; }
.stage-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; gap: 40px; align-items: start;
}

/* Централизиран hero текст */
.hero-head { text-align: center; }
.hero-brand { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 26px; }
.hero-brand img { width: 44px; height: 44px; }
.hero-brand span { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.55rem; color: var(--rose); letter-spacing: -0.02em; }
.hero-head .eyebrow { margin-bottom: 20px; }
.hero-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.hero-head h1 .hl { color: var(--rose); position: relative; white-space: nowrap; }
.hero-head h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5%;
  height: 26%; background: var(--gold); opacity: .26; border-radius: 6px; z-index: -1;
}
.hero-head .hero-sub {
  font-size: clamp(1.03rem, 1.4vw, 1.2rem); color: var(--plum-70);
  margin: 20px auto 0; max-width: 54ch;
}

/* Left pitch */
.pitch { position: sticky; top: 100px; padding-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rose-tint); color: var(--rose-dark);
  font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.pitch h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.pitch h1 .hl { color: var(--rose); position: relative; white-space: nowrap; }
.pitch h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5%;
  height: 26%; background: var(--gold); opacity: .26; border-radius: 6px; z-index: -1;
}
.pitch-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--plum-70); margin: 22px 0 28px; max-width: 40ch; }
.pitch-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.pitch-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pitch-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.pitch-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 22px 10px 10px; box-shadow: var(--shadow-sm);
}
.pitch-badge img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--rose-soft); }
.pitch-badge b { display: block; font-family: "Fredoka", sans-serif; font-size: 1rem; }
.pitch-badge span { font-size: .84rem; color: var(--plum-55); font-weight: 700; }

/* ---------- Form panel ---------- */
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 38px 38px 34px;
}
.form-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.step-badge {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 8px 18px -6px rgba(239,63,107,.55);
}
.form-head h2 { font-size: 1.5rem; }
.form-sub { color: var(--plum-55); font-size: .92rem; margin-top: 3px; }
.req { color: var(--rose); }

.field { margin-bottom: 16px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 7px; color: var(--plum); }
input, select, textarea {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--field-bg);
  color: var(--plum); transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: rgba(58,31,45,.4); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px var(--rose-tint);
}
textarea { resize: vertical; min-height: 92px; }
.hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--plum-55); }

/* Highlighted sub-form card (as in reference) */
.subform {
  background: linear-gradient(180deg, var(--rose-soft) 0%, rgba(253,230,236,0.35) 100%);
  border: 1px solid rgba(239, 63, 107, 0.18);
  border-radius: var(--radius-lg); padding: 22px 22px 8px; margin: 6px 0 8px;
}
.subform-title { font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.05rem; color: var(--plum); margin-bottom: 18px; }
.subform-title b { font-weight: 600; color: var(--rose-dark); }
.subform input, .subform textarea { background: #fff; }

/* File input */
.file-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; }
.file-field input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.file-btn {
  display: inline-block; margin: 0; cursor: pointer;
  background: var(--rose-tint); color: var(--rose-dark);
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .92rem;
  padding: 9px 18px; border-radius: 100px; transition: background .2s;
}
.file-btn:hover { background: rgba(239,63,107,.2); }
.file-name { font-size: .9rem; color: var(--plum-55); }
.file-name.has { color: var(--plum); font-weight: 700; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* form messages */
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 700; display: none; }
.form-msg.ok { display: block; background: #e9f7ec; color: #1c7a3a; }
.form-msg.err { display: block; background: #fdeaea; color: #c62828; }
.form-note { font-size: .82rem; color: var(--plum-55); margin-top: 14px; text-align: center; }

/* ---------- Typeform-style форма ---------- */
.tf-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  min-height: 440px; display: flex; flex-direction: column;
}
.tf-progress { height: 5px; background: var(--rose-soft); flex: none; }
.tf-progress-fill {
  height: 100%; width: 0; border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width .45s var(--ease);
}
.tf-body { flex: 1; display: flex; align-items: center; padding: 44px 46px; }
.tf-slide { width: 100%; animation: tfIn .34s var(--ease) both; }
.tf-slide.tf-out { animation: none; opacity: 0; transform: translateY(-18px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
@keyframes tfIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.tf-num {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--rose); margin-bottom: 12px;
}
.tf-q {
  display: block; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.18; color: var(--plum); margin-bottom: 22px;
}
.tf-optional {
  font-family: "Nunito", sans-serif; font-weight: 700; font-size: .72rem; text-transform: none; letter-spacing: 0;
  color: var(--plum-55); background: var(--field-bg); padding: 3px 11px; border-radius: 100px;
  vertical-align: middle; margin-left: 6px; white-space: nowrap;
}
.tf-input-wrap { margin-bottom: 6px; }
.tf-input {
  width: 100%; font-family: inherit; font-size: 1.3rem; color: var(--plum);
  border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 12px 2px;
  transition: border-color .2s;
}
.tf-input::placeholder { color: rgba(58, 31, 45, .3); }
.tf-input:focus { outline: none; border-bottom-color: var(--rose); }
.tf-select { cursor: pointer; }
.tf-area {
  resize: none; min-height: 104px; border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 16px; font-size: 1.15rem; background: var(--field-bg);
}
.tf-area:focus { border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px var(--rose-tint); border-bottom-width: 2px; }
.tf-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.tf-hint { font-size: .82rem; color: var(--plum-55); margin-top: 10px; }
.tf-err { color: #c62828; font-weight: 700; font-size: .9rem; min-height: 1.2em; margin-top: 10px; }
.tf-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.tf-ok { padding: 12px 28px; font-size: 1rem; }
.tf-ok-arrow { opacity: .7; font-size: .9em; }
.tf-enter { font-size: .84rem; color: var(--plum-55); }
.tf-enter b { color: var(--plum-70); font-weight: 800; }
.tf-back { background: none; border: 0; color: var(--plum-55); font-weight: 700; font-size: .9rem; cursor: pointer; padding: 6px; margin-left: auto; }
.tf-back:hover { color: var(--rose); }

.tf-success { text-align: center; }
.tf-success .tf-check {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  display: grid; place-items: center; font-size: 2.1rem; box-shadow: var(--shadow-md);
}
.tf-success h3 { font-family: "Fredoka", sans-serif; font-size: 1.7rem; margin-bottom: 10px; }
.tf-success p { color: var(--plum-70); font-size: 1.08rem; max-width: 40ch; margin: 0 auto; }

@media (max-width: 540px) {
  .tf-body { padding: 34px 24px; }
  .tf-card { min-height: 400px; }
  .tf-back { margin-left: 0; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 10px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--plum-55); }
.footer-in a:hover { color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stage-grid { grid-template-columns: 1fr; gap: 34px; }
  .pitch { position: static; top: auto; }
  .pitch h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
}
@media (max-width: 540px) {
  .field.row2 { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 20px 24px; }
  .subform { padding: 18px 16px 6px; }
  .nav-mail { display: none; }
  .pitch h1 .hl, .hero-head h1 .hl { white-space: normal; }
}
