/* ── iframe.css — Prostalab form styles ── */
/* Background must match iframe-box bg on parent (#fff) */

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

:root {
  --navy: #142c5c;
  --blue: #1c6fc6;
  --sky:  #3a9ee4;
  --gold: #f0a500;
  --bg:   #eef4ff;
  --white:#ffffff;
  --text: #0d1f3c;
  --muted:#5a6e8d;
  --border:#c5d9f5;
  --err:  #d0361a;
  --ok:   #1a8745;
  --r: 12px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
}

/* No heights on body/html — let content define height */

.content {
  padding: 32px 28px 24px;
  /* NO height / min-height / 100vh on .content */
}

/* ── Form header ── */
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.form-title {
  font-size: 22px;
  font-weight: 900;
  color: #142c5c !important;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.form-title .psevdonim_i {
  color: #142c5c !important;
  font-size: 22px;
  font-weight: 900;
}
.form-title-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.form-price-badge {
  background: linear-gradient(135deg, #f5b800, #e89500);
  color: #0d1f3c;
  font-size: 20px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Fields ── */
.al-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-wrap {
  margin-bottom: 18px;
  position: relative;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.req { color: var(--err); }

.field-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  min-height: 44px;
}
.field-input::placeholder { color: var(--muted); opacity: 0.7; }
.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,111,198,.15);
}

/* Error state */
.has-err .field-input {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(208,54,26,.12);
}
/* OK state */
.has-ok .field-input {
  border-color: var(--ok);
}

.field-err {
  font-size: 13px;
  color: var(--err);
  margin-top: 5px;
  min-height: 0;
  line-height: 1.4;
}
.field-err:empty { margin-top: 0; }

/* ── Submit button ── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #0d1f3c;
  background: linear-gradient(135deg, #f5b800, #e89500);
  box-shadow: 0 6px 24px rgba(240,165,0,.4);
  transition: all .25s ease;
  margin-top: 6px;
  min-height: 52px;
  animation: pulse-btn 2.5s ease-out infinite;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(240,165,0,.55);
  animation: none;
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  animation: none;
  transform: none;
}
.submit-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
@keyframes pulse-btn {
  0%   { box-shadow: 0 6px 24px rgba(240,165,0,.4), 0 0 0 0 rgba(240,165,0,.5); }
  70%  { box-shadow: 0 6px 24px rgba(240,165,0,.4), 0 0 0 14px rgba(240,165,0,0); }
  100% { box-shadow: 0 6px 24px rgba(240,165,0,.4), 0 0 0 0 rgba(240,165,0,0); }
}

/* ── Footer note ── */
.form-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .content { padding: 24px 18px 20px; }
  .form-header { flex-direction: column; align-items: flex-start; }
  .form-price-badge { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
