/*
 * byRoman - coming soon email capture
 * Self-contained, namespaced under .byrs. Dark elegant palette matches the
 * Elementor global kit (bg #111110, cream #F5F2EE, taupe #888580).
 */
.byrs {
  --byrs-cream: #f5f2ee;
  --byrs-taupe: #888580;
  --byrs-line: rgba(245, 242, 238, 0.28);
  --byrs-line-active: rgba(245, 242, 238, 0.75);
  --byrs-rose: #d9a99f; /* soft error tone, not a harsh red */
  --byrs-ease: cubic-bezier(0.22, 1, 0.36, 1);

  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  text-align: left;
}

/* emphasized bordered field: input grows, a solid cream submit sits flush right */
.byrs__row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--byrs-line);
  border-radius: 2px;
  background: rgba(245, 242, 238, 0.02);
  overflow: hidden;
  transition: border-color 0.4s var(--byrs-ease), background 0.4s var(--byrs-ease);
}
.byrs__row:focus-within {
  border-color: var(--byrs-line-active);
  background: rgba(245, 242, 238, 0.05);
}

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

.byrs__input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--byrs-cream);
  font: inherit;
  font-size: 16px; /* >=16px keeps iOS from zooming on focus */
  letter-spacing: 0.01em;
  padding: 17px 18px;
}
.byrs__input::placeholder {
  color: var(--byrs-taupe);
  opacity: 1;
}
.byrs__input:disabled {
  opacity: 0.5;
}

.byrs__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--byrs-cream);
  border: 0;
  padding: 0 26px;
  cursor: pointer;
  color: #111110;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.3s var(--byrs-ease);
}
.byrs__submit:hover {
  opacity: 0.82;
}
.byrs__submit:disabled {
  cursor: default;
  opacity: 0.6;
}
.byrs__submit svg {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--byrs-ease);
}
.byrs__submit:hover svg {
  transform: translateX(4px);
}

/* honeypot - hidden from humans, visible to naive bots */
.byrs__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.byrs__consent {
  margin: 16px 0 0;
  color: rgba(136, 133, 128, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.byrs__msg {
  margin: 12px 0 0;
  min-height: 1em;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--byrs-rose);
}
.byrs__msg:empty {
  margin-top: 0;
}

/* loading: hide the arrow, label switches to "Odosielam…" via JS */
.byrs.is-loading .byrs__submit svg {
  opacity: 0;
}

/* success panel swaps in for the form */
.byrs__success {
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  /* resting state is visible; the animation is only an entrance flourish so the
     panel never gets stuck invisible if animations are throttled/paused */
  animation: byrs-rise 0.6s var(--byrs-ease);
}
.byrs__success-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--byrs-cream);
}
.byrs__success h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--byrs-cream);
}
.byrs__success p {
  margin: 0;
  color: var(--byrs-taupe);
  font-size: 15px;
  line-height: 1.6;
}
.byrs__success p b {
  color: var(--byrs-cream);
  font-weight: 500;
}
@keyframes byrs-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .byrs__row,
  .byrs__submit,
  .byrs__submit svg,
  .byrs__success { transition: none; animation: none; opacity: 1; transform: none; }
  .byrs.is-loading .byrs__submit svg { animation: none; }
}
