/* ===== Birth Plan Generator — femipremium.pl/plan-porodu ===== */

.bp-page {
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--cream, #f7f3ee);
}

.bp-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Intro ── */

.bp-intro {
  padding-top: 24px;
}

.bp-sygnet {
  text-align: center;
  margin-bottom: 24px;
}

.bp-sygnet img {
  width: 60px;
  height: auto;
  opacity: 0.85;
}

.bp-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #7b1a1a;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bp-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #6b5e5e;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.bp-description {
  font-size: 15px;
  line-height: 1.6;
  color: #2c2424;
  margin-bottom: 24px;
}

.bp-description p + p {
  margin-top: 12px;
}

.bp-disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: #6b5e5e;
  background: #ede6dc;
  border-left: 3px solid #c4a882;
  padding: 12px 16px;
  margin-bottom: 32px;
  border-radius: 0 4px 4px 0;
}

/* ── Buttons ── */

.bp-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  -webkit-appearance: none;
}

.bp-btn:active {
  transform: scale(0.98);
}

.bp-btn--primary {
  background: #7b1a1a;
  color: #f7f3ee;
}

.bp-btn--primary:hover {
  background: #9a3030;
}

.bp-btn--secondary {
  background: transparent;
  color: #7b1a1a;
  border: 1.5px solid #7b1a1a;
  margin-top: 12px;
}

.bp-btn--secondary:hover {
  background: rgba(123, 26, 26, 0.05);
}

.bp-btn--back {
  display: inline-block;
  width: auto;
  background: none;
  border: none;
  color: #6b5e5e;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}

.bp-btn--back:hover {
  color: #7b1a1a;
}

/* ── Progress ── */

.bp-progress {
  width: 100%;
  height: 4px;
  background: #ede6dc;
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.bp-progress__bar {
  height: 100%;
  background: #7b1a1a;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.bp-step-counter {
  font-size: 12px;
  font-weight: 500;
  color: #6b5e5e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.bp-step-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #2c2424;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bp-step-subtitle {
  font-size: 14px;
  color: #6b5e5e;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Fields ── */

.bp-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.bp-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2c2424;
  margin-bottom: 6px;
}

.bp-field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ede6dc;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #2c2424;
  background: #fff;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.bp-field__input:focus {
  outline: none;
  border-color: #c4a882;
}

.bp-field__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ede6dc;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #2c2424;
  background: #fff;
  resize: vertical;
  -webkit-appearance: none;
}

.bp-field__textarea:focus {
  outline: none;
  border-color: #c4a882;
}

/* ── Options (checkboxes) ── */

.bp-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.bp-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #ede6dc;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  line-height: 1.4;
}

.bp-option:hover {
  border-color: #c4a882;
}

.bp-option--checked {
  border-color: #7b1a1a;
  background: rgba(123, 26, 26, 0.04);
}

.bp-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bp-option__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-top: 1px;
  position: relative;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.bp-option--checked .bp-option__check {
  background: #7b1a1a;
  border-color: #7b1a1a;
}

.bp-option--checked .bp-option__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bp-option__text {
  font-size: 15px;
  color: #2c2424;
}

/* ── Nav ── */

.bp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.bp-nav .bp-btn--primary {
  width: auto;
  flex-shrink: 0;
  padding: 14px 28px;
}

/* ── Plan output ── */

.bp-plan {
  background: #fff;
  border: 1px solid #ede6dc;
  border-radius: 8px;
  padding: 40px 32px;
  margin-bottom: 24px;
}

.bp-plan__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #7b1a1a;
}

.bp-plan__logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.bp-plan__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #7b1a1a;
  letter-spacing: 0.04em;
}

.bp-plan__info {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #f7f3ee;
  border-radius: 6px;
}

.bp-plan__info-row {
  font-size: 14px;
  color: #2c2424;
  line-height: 1.8;
}

.bp-plan__preamble {
  font-size: 13px;
  font-style: italic;
  color: #6b5e5e;
  line-height: 1.6;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ede6dc;
}

.bp-plan__section {
  margin-bottom: 24px;
}

.bp-plan__section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #7b1a1a;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ede6dc;
}

.bp-plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-plan__list li {
  font-size: 14px;
  color: #2c2424;
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}

.bp-plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7b1a1a;
  font-weight: 600;
}

.bp-plan__extra {
  font-size: 14px;
  color: #2c2424;
  line-height: 1.6;
}

.bp-plan__signatures {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 20px;
}

.bp-plan__sig-line {
  flex: 1;
  border-top: 1px solid #2c2424;
  padding-top: 8px;
}

.bp-plan__sig-line span {
  font-size: 11px;
  color: #6b5e5e;
}

.bp-plan__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #ede6dc;
}

.bp-plan__footer-logo img {
  opacity: 0.6;
}

.bp-plan__footer-info {
  font-size: 11px;
  color: #6b5e5e;
  line-height: 1.5;
  flex: 1;
}

.bp-plan__footer-date {
  font-size: 11px;
  color: #6b5e5e;
}

/* ── Actions (no-print) ── */

.bp-actions {
  margin-bottom: 40px;
}

/* ── Print ── */

@media print {
  body * {
    visibility: hidden;
  }

  .bp-page,
  .bp-page *,
  .bp-plan,
  .bp-plan * {
    visibility: visible;
  }

  .bp-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 15mm;
    background: #fff;
  }

  .bp-container {
    max-width: 100%;
  }

  .bp-plan {
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .bp-plan__header {
    border-bottom-color: #000;
  }

  .bp-plan__title {
    color: #000;
  }

  .bp-plan__section-title {
    color: #000;
  }

  .bp-plan__list li::before {
    color: #000;
  }

  .bp-plan__info {
    background: #f5f5f5;
  }

  .bp-plan__footer {
    position: fixed;
    bottom: 10mm;
    left: 15mm;
    right: 15mm;
  }

  .no-print,
  .bp-actions {
    display: none !important;
  }
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .bp-title {
    font-size: 26px;
  }

  .bp-step-title {
    font-size: 22px;
  }

  .bp-option {
    padding: 12px 14px;
  }

  .bp-option__text {
    font-size: 14px;
  }

  .bp-plan {
    padding: 24px 16px;
  }

  .bp-plan__signatures {
    flex-direction: column;
    gap: 24px;
  }

  .bp-plan__footer {
    flex-wrap: wrap;
  }
}
