/* ============================================================
   Free-trial booking page  -  dark-blue form card
   Two layouts:
     - phones / tablets : title on top, form card below (single column)
     - desktop (>=992px): title on the LEFT, form card on the RIGHT, sized to fit one screen (no scrolling)
   All classes are prefixed "ft-" so nothing collides with style.css.
   Palette = site tokens: navy #1E3A8A / deep #172554 / ink #0F172A, orange #FF7A00.
   ============================================================ */

.ft-page { background: #FBF8F3; }

/* ---------- stage: soft animated background ---------- */
.ft-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 68px);
  padding: clamp(34px, 7vw, 80px) 18px clamp(50px, 8vw, 100px);
  background:
    radial-gradient(1200px 520px at 50% -10%, #FFF1E0 0%, rgba(255, 241, 224, 0) 70%),
    linear-gradient(180deg, #FBF8F3 0%, #F1F4FB 100%);
}
.ft-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.ft-blob--orange { width: 420px; height: 420px; top: -120px; left: -110px; background: #FFA24D; animation: ft-float-a 16s ease-in-out infinite; }
.ft-blob--navy   { width: 520px; height: 520px; bottom: -190px; right: -120px; background: #3F5FC8; opacity: .34; animation: ft-float-b 20s ease-in-out infinite; }
.ft-blob--gold   { width: 260px; height: 260px; top: 55%; left: 30%; background: #FFD08A; opacity: .38; animation: ft-float-c 24s ease-in-out infinite; }
@keyframes ft-float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 70px) scale(1.12); } }
@keyframes ft-float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, -50px) scale(1.08); } }
@keyframes ft-float-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px, -40px) scale(.92); } }

.ft-stage::before { /* dotted texture */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(30, 58, 138, .09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.ft-wrap { max-width: 560px; margin: 0 auto; }

/* ---------- title block ---------- */
.ft-hero { text-align: center; margin-bottom: clamp(22px, 4vw, 34px); }

.ft-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(30, 58, 138, .16);
  box-shadow: 0 4px 14px -6px rgba(30, 58, 138, .25);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #1E3A8A;
}
.ft-badge i { width: 8px; height: 8px; border-radius: 50%; background: #FF7A00; animation: ft-pulse 2s ease-out infinite; }
@keyframes ft-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,0,.55); } 80%,100% { box-shadow: 0 0 0 10px rgba(255,122,0,0); } }

.ft-title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #0F172A;
}
.ft-accent {
  background: linear-gradient(100deg, #FF7A00 0%, #F24E00 50%, #1E3A8A 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: ft-shine 6s ease-in-out infinite alternate;
}
@keyframes ft-shine { to { background-position: 100% 0; } }

.ft-sub { margin: 0 auto; max-width: 430px; font-size: 16.5px; line-height: 1.6; color: #334155; }

.ft-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ft-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #E2E8F0;
  font-size: 13.5px; font-weight: 700; color: #1E293B;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .4);
}
.ft-chips svg { width: 16px; height: 16px; color: #F26100; flex: none; }

/* ---------- the dark-blue card ---------- */
.ft-card {
  position: relative;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(255, 122, 0, .20), transparent 70%),
    radial-gradient(380px 300px at 0% 100%, rgba(59, 130, 246, .22), transparent 70%),
    linear-gradient(160deg, #1E3A8A 0%, #172554 55%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 40px 70px -28px rgba(15, 23, 42, .65),
    0 14px 30px -14px rgba(30, 58, 138, .6),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ft-card::before { /* orange hairline on top */
  content: "";
  position: absolute; left: 28px; right: 28px; top: 0; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #FF7A00, #FFB36B, #7FA2FF);
}

.ft-row { display: grid; grid-template-columns: 1fr; column-gap: 14px; }
.ft-field { margin-bottom: 18px; }
.ft-label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: #DCE6FF;
}

.ft-input, .ft-select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1.5px solid transparent;
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  font-weight: 500;
  color: #0F172A;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.ft-input::placeholder { color: #8391A7; font-weight: 400; }
.ft-input:hover, .ft-select:hover { border-color: #9DB2E8; }
.ft-input:focus, .ft-select:focus { border-color: #FF8A1F; box-shadow: 0 0 0 4px rgba(255, 138, 31, .28); }
.ft-select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' stroke='%231E3A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.ft-select:invalid { color: #8391A7; font-weight: 400; }
.ft-select option { color: #0F172A; }

.is-invalid { border-color: #F87171 !important; box-shadow: 0 0 0 4px rgba(248, 113, 113, .28) !important; }
.ft-shake { animation: ft-shake .38s ease; }
@keyframes ft-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- contact choice ---------- */
.ft-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ft-app {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 78px; padding: 10px 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700;
  color: #E6EDFF;
  cursor: pointer;
  transition: transform .2s var(--ease, ease), border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.ft-app:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.ft-app:active { transform: scale(.97); }
.ft-app img, .ft-app svg { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.ft-app svg { padding: 4px; background: rgba(255, 255, 255, .16); color: #fff; }
.ft-app.is-on {
  border-color: #FF8A1F;
  background: linear-gradient(180deg, rgba(255, 138, 31, .30), rgba(255, 138, 31, .14));
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, .25), 0 14px 24px -14px rgba(255, 138, 31, .9);
}
.ft-app.is-on::after {
  content: "";
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #FF7A00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4 7 11l4.8-5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  animation: ft-pop .28s var(--ease, ease);
}
@keyframes ft-pop { from { transform: scale(0); } to { transform: scale(1); } }
.ft-app:focus-visible, .ft-btn:focus-visible, .ft-link:focus-visible { outline: 3px solid #FFB36B; outline-offset: 2px; }

.ft-contact-field { animation: ft-slide .35s var(--ease, ease); }
@keyframes ft-slide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ft-err { display: none; margin: 7px 2px 0; font-size: 13px; font-weight: 700; color: #FFB4B4; }
.ft-err.is-shown { display: block; animation: ft-slide .25s ease; }

/* ---------- submit ---------- */
.ft-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 56px; margin-top: 6px;
  border: 0; border-radius: 15px;
  background: linear-gradient(135deg, #FF8A1F 0%, #F26100 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 16px 28px -12px rgba(242, 97, 0, .9);
  transition: transform .2s var(--ease, ease), box-shadow .2s ease, filter .2s ease;
}
.ft-btn::after { /* light sweep */
  content: "";
  position: absolute; top: 0; bottom: 0; width: 60px; left: -90px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: ft-sweep 3.4s ease-in-out infinite;
}
@keyframes ft-sweep { 0%, 55% { left: -90px; } 100% { left: 120%; } }
.ft-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 34px -12px rgba(242, 97, 0, 1); }
.ft-btn:active { transform: translateY(0) scale(.99); }
.ft-btn svg { width: 20px; height: 20px; transition: transform .2s ease; }
.ft-btn:hover svg { transform: translateX(4px); }
.ft-btn[disabled] { filter: grayscale(.4); opacity: .75; cursor: progress; }

.ft-note { margin: 14px 4px 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #B7C6EA; }

/* ---------- entrance animation (staggered) ---------- */
.ft-rise { opacity: 0; transform: translateY(18px); animation: ft-rise .7s var(--ease, ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes ft-rise { to { opacity: 1; transform: none; } }

/* ---------- success ---------- */
.ft-done { display: none; text-align: center; padding: 10px 0 6px; }
.ft-done.is-shown { display: block; animation: ft-slide .5s var(--ease, ease); }
.ft-check { width: 84px; height: 84px; margin: 4px auto 16px; }
.ft-check circle { fill: rgba(74, 222, 128, .16); stroke: #4ADE80; stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: ft-draw .7s ease forwards; }
.ft-check path { fill: none; stroke: #4ADE80; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: ft-draw .45s .55s ease forwards; }
@keyframes ft-draw { to { stroke-dashoffset: 0; } }
.ft-done h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(24px, 5.5vw, 30px); font-weight: 800; color: #fff; }
.ft-done p { margin: 0 auto 22px; max-width: 400px; font-size: 16px; line-height: 1.6; color: #D3DEF7; }
.ft-done strong { color: #fff; }
.ft-done .ft-pick { color: #FFB36B; }
.ft-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.ft-link:hover { background: #fff; color: #1E3A8A; transform: translateY(-2px); }

/* honeypot (off-screen rather than display:none so bots still fill it) */
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- tablet: name + country share a row ---------- */
@media (min-width: 521px) {
  .ft-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- phones: contact choice as 2x2 rows ---------- */
@media (max-width: 640px) {
  /* phones: drop the badge + 3 chips so the whole form is visible without scrolling */
  .ft-badge, .ft-chips { display: none; }
  .ft-title { margin-top: 0; }
}
@media (max-width: 520px) {
  .ft-stage { padding-top: 26px; }
  .ft-hero { margin-bottom: 20px; }
  .ft-title { font-size: clamp(30px, 8.6vw, 38px); margin-bottom: 10px; }
  .ft-sub { font-size: 15px; }
  .ft-apps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ft-app { flex-direction: row; justify-content: flex-start; gap: 9px; min-height: 52px; padding: 8px 10px; font-size: 13px; letter-spacing: 0; }
  .ft-app img, .ft-app svg { width: 24px; height: 24px; flex: none; }
  .ft-app.is-on::after { top: -6px; right: -6px; margin: 0; width: 18px; height: 18px; box-shadow: 0 0 0 2px #172554; }
  .ft-field { margin-bottom: 14px; }
  .ft-input, .ft-select { height: 48px; }
  .ft-blob--orange { width: 300px; height: 300px; }
  .ft-blob--navy { width: 320px; height: 320px; }
}

/* =====================================================================
   DESKTOP  (>= 992px)  -  its own layout: title left, form right,
   everything inside one screen so the visitor never scrolls.
   ===================================================================== */
@media (min-width: 992px) {
  .ft-stage {
    display: flex; align-items: center;
    padding: 28px 48px;
    min-height: calc(100vh - 68px);
  }
  .ft-wrap {
    width: 100%; max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    column-gap: clamp(48px, 6vw, 96px);
  }
  .ft-hero { text-align: left; margin: 0; }
  .ft-title { font-size: clamp(46px, 4.6vw, 68px); margin: 22px 0 18px; }
  .ft-sub { margin: 0; max-width: 470px; font-size: 18px; }
  .ft-chips { justify-content: flex-start; margin-top: 26px; }

  .ft-card { padding: 28px 30px 24px; }
  .ft-field { margin-bottom: 16px; }
  .ft-input, .ft-select { height: 48px; }
  .ft-app { min-height: 68px; padding: 8px 4px; gap: 5px; }
  .ft-app img, .ft-app svg { width: 26px; height: 26px; }
  .ft-btn { height: 52px; margin-top: 4px; }
  .ft-note { margin-top: 12px; }
}

/* short desktop windows (laptops, small browser windows): tighten further so it still fits */
@media (min-width: 992px) and (max-height: 720px) {
  .ft-stage { padding-top: 16px; padding-bottom: 16px; }
  .ft-card { padding: 22px 26px 18px; }
  .ft-field { margin-bottom: 12px; }
  .ft-label { margin-bottom: 6px; }
  .ft-input, .ft-select { height: 44px; }
  .ft-app { min-height: 58px; }
  .ft-btn { height: 48px; font-size: 16px; }
  .ft-note { display: none; }
  .ft-title { font-size: clamp(40px, 4vw, 56px); }
}

@media (prefers-reduced-motion: reduce) {
  .ft-blob, .ft-badge i, .ft-accent, .ft-btn::after { animation: none !important; }
  .ft-rise { animation: none !important; opacity: 1; transform: none; }
  .ft-contact-field, .ft-done.is-shown, .ft-err.is-shown, .ft-shake { animation: none !important; }
  .ft-check circle, .ft-check path { animation: none !important; stroke-dashoffset: 0; }
}
