:root {
  --ith-navy: #081a38;
  --ith-blue: #1167e8;
  --ith-cyan: #6ee7ff;
  --ith-ink: #0b1830;
  --ith-muted: #657289;
  --ith-line: #dbe3ef;
  --ith-bg: #f5f8fc;
}

.ith-smart-form,
.ith-smart-form * { box-sizing: border-box; }

.ith-smart-form {
  width: min(920px, 100%);
  margin: 40px auto;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 26px;
  background: #fff;
  color: var(--ith-ink);
  box-shadow: 0 22px 70px rgba(8, 26, 56, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ith-smart-form.is-modal { margin: 0; box-shadow: none; }
.ith-form-heading { margin-bottom: 28px; }
.ith-form-heading > span { color: var(--ith-blue); font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.ith-form-heading h2 { margin: 8px 0 10px; color: var(--ith-navy); font-size: clamp(32px, 5vw, 52px); line-height: 1.03; letter-spacing: -.035em; }
.ith-form-heading p { max-width: 680px; margin: 0; color: var(--ith-muted); font-size: 17px; line-height: 1.6; }
.ith-grid { display: grid; gap: 18px; }
.ith-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ith-form label { display: block; margin: 0 0 18px; }
.ith-form label > span { display: block; margin-bottom: 8px; color: var(--ith-navy); font-weight: 750; }
.ith-form input:not([type="checkbox"]):not([type="file"]),
.ith-form select,
.ith-form textarea,
.ith-form input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--ith-line);
  border-radius: 12px;
  background: var(--ith-bg);
  color: var(--ith-ink);
  font: inherit;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ith-form textarea { resize: vertical; min-height: 140px; }
.ith-form input:focus,
.ith-form select:focus,
.ith-form textarea:focus { border-color: var(--ith-blue); background: #fff; box-shadow: 0 0 0 4px rgba(17,103,232,.12); }
.ith-form small { display: block; margin-top: 7px; color: var(--ith-muted); line-height: 1.45; }
.ith-check { display: flex !important; gap: 11px; align-items: flex-start; padding: 15px; border-radius: 12px; background: #eef5ff; }
.ith-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ith-blue); flex: 0 0 auto; }
.ith-check span { margin: 0 !important; font-size: 14px; line-height: 1.5; }
.ith-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ith-blue), #0753c7);
  color: #fff;
  font: 800 17px/1.2 inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17,103,232,.25);
  transition: transform .2s, box-shadow .2s;
}
.ith-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(17,103,232,.32); }
.ith-form-foot { margin: 12px 0 0; text-align: center; color: var(--ith-muted); font-size: 13px; }
.ith-ai-privacy { margin: -7px 0 18px; color: var(--ith-muted); font-size: 12px; line-height: 1.5; }
.ith-message { margin: 0 0 24px; padding: 15px 18px; border-radius: 12px; font-weight: 700; }
.ith-message.success { color: #075d35; background: #e5f8ed; border: 1px solid #9bd8b6; }
.ith-message.error { color: #8a1d27; background: #fff0f1; border: 1px solid #f2b8bd; }
.ith-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ith-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  min-height: 70px;
  padding: 10px 14px 10px 11px;
  border: 2px solid rgba(110,231,255,.75);
  border-radius: 18px;
  background: linear-gradient(135deg, #0a2148, #0d4eae);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(8,26,56,.42), 0 0 0 5px rgba(17,103,232,.12);
  text-align: left;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ith-floating-button:hover { transform: translateY(-3px); border-color: var(--ith-cyan); box-shadow: 0 24px 58px rgba(8,26,56,.48), 0 0 0 6px rgba(17,103,232,.16); }
.ith-floating-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ith-floating-button__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: var(--ith-blue); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ith-floating-button__icon svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ith-floating-button__copy { display: block; flex: 1 1 auto; }
.ith-floating-button__copy strong { display: block; color: #fff; font: 800 16px/1.15 Inter, ui-sans-serif, system-ui, sans-serif; }
.ith-floating-button__copy small { display: block; margin-top: 5px; color: #bceeff; font: 650 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.ith-floating-button__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 700 18px/1 system-ui, sans-serif; }
.ith-modal[hidden] { display: none; }
.ith-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; }
.ith-modal__backdrop { position: absolute; inset: 0; background: rgba(3,13,30,.82); backdrop-filter: blur(7px); }
.ith-modal__dialog { position: relative; width: min(940px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 26px; background: #fff; }
.ith-modal__close { position: sticky; z-index: 3; float: right; top: 12px; right: 12px; width: 42px; height: 42px; margin: 12px 12px -54px 0; border: 0; border-radius: 50%; background: var(--ith-navy); color: #fff; font: 400 28px/1 inherit; cursor: pointer; }
body.ith-modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .ith-grid.two { grid-template-columns: 1fr; gap: 0; }
  .ith-smart-form { margin: 20px auto; border-radius: 18px; padding: 25px 18px; }
  .ith-modal { padding: 0; }
  .ith-modal__dialog { max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .ith-floating-button { right: 14px; bottom: 14px; min-width: 0; width: min(330px, calc(100vw - 28px)); min-height: 64px; border-radius: 16px; }
  .ith-floating-button__icon { width: 43px; height: 43px; flex-basis: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .ith-submit, .ith-form input, .ith-form select, .ith-form textarea { transition: none; }
}
