/* Geometry derived from the Figma export (scaled to a 320px card) and the designer renders. */

:root {
  --teal: #004447;
  --cyan: #00cfd9;
  --muted: #90a1b9;
  --white: #ffffff;
  --black: #000000;
  --font: "Noto Sans Hebrew", sans-serif;
  --radius-pill: 63px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  background: var(--teal);
  font-family: var(--font);
  color: var(--white);
}

.card {
  width: 320px;
  margin: 0 auto;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px 18px;
}

/* Logo: 116 x 19 */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  margin-bottom: 16px;
}

.logo img {
  display: block;
  width: 116px;
  height: 19px;
}

/* Title: 11.82px bold in the export -> 15.4px */
.title {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 16px;
  white-space: nowrap;
  color: var(--white);
  margin-bottom: 20px;
}

.lead-form {
  width: 264px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
}

.email-phone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

/* Pills: 31px tall, icon side padding 8.82 -> 11.5px, icon/text gap 8.82 -> 11.5px */
.pill {
  width: 100%;
  height: 31px;
  background: var(--white);
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11.5px;
  padding: 0 11.5px 0 14px;
}

.pill:focus-within {
  outline: 1px solid var(--cyan);
}

.pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 15.4px;
  line-height: 16px;
  color: var(--black);
  text-align: right;
}

.pill input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Icons: Lucide user/mail/phone on a shared 24-unit grid, 10px in Figma -> 13px.
   Same box for all three so they share one horizontal and vertical centre. */
.icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
}

.icon img {
  display: block;
  width: 13px;
  height: 13px;
  max-width: none;
}

/* Phone row: prefix 25.9% / gap 2.17% / phone 71.9% of 264 */
.phone-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.prefix {
  width: 68px;
  flex-shrink: 0;
  height: 31px;
  background: var(--white);
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 10.65px 0 4px;
}

.prefix-code {
  font-family: var(--font);
  font-size: 12.8px;
  line-height: 16px;
  color: var(--black);
}

.prefix-chevron {
  display: block;
  width: 7.8px;
  height: 3.9px;
  max-width: none;
}

.phone-pill {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  direction: rtl;
}

/* Checkboxes: rows are 96.98% of the form width, right-aligned; box/text gap 12.6 -> 16.4px */
.checks {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16.4px;
  width: 256px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.box {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  background: var(--white);
  border-radius: 3.3px;
}

.check input:focus-visible + .box {
  outline: 1px solid var(--cyan);
  outline-offset: 1px;
}

.check input:checked + .box {
  background: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.2L4.7 8.5 9.6 3.4' fill='none' stroke='%23004447' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.check-text {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 11.1px;
  line-height: 15px;
  color: var(--white);
}

.check-text a {
  color: var(--white);
  text-decoration: underline;
}

/* Button: 39px, 10.08px bold in the export -> 13.1px */
.submit {
  width: 100%;
  height: 39px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.1px;
  line-height: 16px;
  cursor: pointer;
}

.submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.status {
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 15px;
}

.status:empty {
  display: none;
}

.status.error {
  color: #ffb4b4;
}

.card.is-thanks .lead-form,
.card.is-thanks .title {
  display: none;
}

.thanks {
  display: none;
  text-align: center;
  font-size: 15.4px;
  line-height: 20px;
  font-weight: 700;
  padding: 24px 8px;
}

.card.is-thanks .thanks {
  display: block;
}
