/* ============================================================
   HAGAG EUROPE PARTNERS — embeddable iframe (form-only)
   Minimal form for embedding on third-party sites. No logo, no
   hero text — just the three inputs + submit, transparent bg
   so it inherits the host page's background.
   ============================================================ */

/* ----- Narkiss Block (Masterfont) — self-hosted webfonts ----- */
@font-face {
  font-family: "Narkiss Block";
  src: url("assets/fonts/NarkissBlock-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Narkiss Block";
  src: url("assets/fonts/NarkissBlock-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Narkiss Block";
  src: url("assets/fonts/NarkissBlock-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Narkiss Block";
  src: url("assets/fonts/NarkissBlock-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: transparent;
}

body {
  font-family: "Narkiss Block", "Arial Hebrew", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.iframe-stage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vh, 20px) clamp(8px, 2vw, 20px);
}

/* ----- Form ----- */
.iframe-form {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 14px);
  width: 100%;
  max-width: 420px;
}

.iframe-form[hidden] {
  display: none !important;
}

/* ----- Heading "השאר/י פרטים" ----- */
.iframe-heading {
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vh, 28px);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 clamp(2px, 0.5vh, 6px);
  background: linear-gradient(
    to right,
    #b08d57 35.096%,
    rgba(250, 218, 105, 0.94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  direction: rtl;
}

@supports not (-webkit-background-clip: text) {
  .iframe-heading {
    color: #d2b051;
  }
}

.iframe-field input {
  display: block;
  width: 100%;
  height: clamp(42px, 6vh, 52px);
  background: #fff;
  border: 1px solid #d6d8e2;
  padding: 0 16px;
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1;
  color: #0e0e10;
  direction: rtl;
  text-align: right;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iframe-field input::placeholder {
  color: #0e0e10;
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 400;
  opacity: 1;
}

.iframe-field input:focus {
  border-color: #d2b051;
  box-shadow: 0 0 0 2px rgba(210, 176, 81, 0.25);
}

.iframe-submit {
  display: block;
  width: 100%;
  height: clamp(44px, 6vh, 56px);
  margin-top: clamp(4px, 0.8vh, 8px);
  background: linear-gradient(to bottom, #f4dc90 0%, #d2b051 100%);
  border: 0;
  cursor: pointer;
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 16px);
  letter-spacing: 0.03em;
  color: #0e0e10;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.iframe-submit:hover {
  filter: brightness(1.05);
}

.iframe-submit:active {
  transform: scale(0.99);
}

.iframe-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: none;
}

.iframe-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Consent checkbox ----- */
.iframe-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  direction: rtl;
  text-align: right;
}

.iframe-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #a8acc1;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.iframe-consent input[type="checkbox"]:checked {
  border-color: #d2b051;
}

.iframe-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -1px;
  width: 6px;
  height: 12px;
  border: solid #d2b051;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.iframe-consent-text {
  flex: 1;
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 300;
  font-size: clamp(10px, 1.6vw, 12px);
  line-height: 1.35;
  color: #5b5f73;
  text-align: right;
}

/* ----- Disclaimer (ט.ל.ח.) ----- */
.iframe-disclaimer {
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 300;
  font-size: clamp(9px, 1.4vw, 11px);
  line-height: 1.35;
  color: #5b5f73;
  text-align: center;
  direction: rtl;
  margin-top: 4px;
}

/* ----- Success state ----- */
.iframe-success[hidden] {
  display: none;
}

.iframe-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(12px, 2vh, 24px) 0;
  direction: rtl;
  width: 100%;
  max-width: 420px;
  animation: iframe-success-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iframe-success-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.iframe-success-icon {
  width: clamp(52px, 8vh, 80px);
  height: clamp(52px, 8vh, 80px);
  margin-bottom: clamp(12px, 2vh, 20px);
  animation: iframe-tick 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes iframe-tick {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.iframe-success-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.iframe-success-title {
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3.4vh, 32px);
  line-height: 1.1;
  margin: 0 0 clamp(6px, 1vh, 12px);
  background: linear-gradient(
    to right,
    #b08d57 35.096%,
    rgba(250, 218, 105, 0.94) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.iframe-success-text {
  font-family: "Narkiss Block", "Arial Hebrew", sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 2vh, 18px);
  line-height: 1.4;
  color: #14192b;
}

.iframe-success-wa {
  font-weight: 600;
  color: #25d366;
}

@supports not (-webkit-background-clip: text) {
  .iframe-success-title {
    color: #d2b051;
  }
}
