/* Karta urodzin na stronie głównej: szybkie pole daty w hero i wysuwana karta (birthday-card.js).
   Jasna karta na ciemnym tle, bez okna modalnego: strona pod spodem działa normalnie. */

/* Hero: jedno pole i przycisk, widoczne od razu bez klikania. Prawa kolumna jest przez nie wyższa,
   więc tytuł po lewej stoi na środku zamiast przy dolnej krawędzi. */
.home-intro:has(.bday-quick) {
  align-items: center;
}

.bday-quick {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #f6d36b59;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6d36b1f, #f2a2bf1f);
}

.bday-quick-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #fff;
  font: 700 17px/1.3 var(--display);
}

.bday-quick-title .ic {
  color: var(--yellow);
  font-size: 20px;
}

.bday-quick-row {
  display: flex;
  gap: 10px;
}

.bday-quick-row label {
  flex: 1;
  min-width: 0;
}

.bday-quick-row label span,
.bday-date label span,
.bday-call-row label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bday-quick input,
.bday-card input:not([type='checkbox']) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 600 16px var(--font);
}

.bday-quick input {
  border-color: transparent;
}

.bday-quick .btn,
.bday-date .btn {
  flex: none;
  white-space: nowrap;
}

.bday-quick-note {
  margin: 10px 0 0;
  color: #ffffffb3;
  font-size: 13px;
}

/* Karta */
.bday-card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 55;
  width: min(400px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 30px 80px -20px #1f143099,
    0 0 0 1px #1f143014;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.35s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bday-card.is-in {
  opacity: 1;
  transform: none;
}

.bday-card[hidden] {
  display: none;
}

.bday-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1f14300d;
  color: var(--ink);
  cursor: pointer;
}

.bday-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.bday-peek {
  display: none;
}

.bday-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bday-card h2 {
  margin: 0 44px 6px 0;
  font: 800 24px/1.15 var(--display);
}

.bday-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.bday-date {
  display: flex;
  gap: 8px;
}

.bday-date label {
  flex: 1;
  min-width: 0;
}

.bday-date[hidden],
.bday-result[hidden] {
  display: none;
}

.bday-result {
  display: grid;
  gap: 12px;
}

.bday-change {
  justify-self: start;
  margin-top: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet);
  font: 700 13px var(--font);
  text-decoration: underline;
  cursor: pointer;
}

.bday-slots-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
}

.bday-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bday-slot {
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 14px var(--font);
  cursor: pointer;
}

.bday-slot:hover {
  border-color: var(--violet);
}

.bday-slot[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.bday-picked:empty {
  display: none;
}

.bday-picked,
.bday-small,
.bday-muted {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bday-muted {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
}

.bday-book {
  width: 100%;
}

.bday-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6d36b40, #f2a2bf40);
  font-size: 13px;
  line-height: 1.5;
}

.bday-promo[hidden] {
  display: none;
}

.bday-promo .ic {
  align-self: center;
  margin-right: 4px;
  color: #b0346a;
}

.bday-promo b {
  font-variant-numeric: tabular-nums;
}

.bday-promo a {
  color: inherit;
  font-weight: 700;
}

.bday-call {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bday-call-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.bday-call-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.bday-call input::placeholder {
  color: #6d617599;
}

.bday-trap {
  position: absolute;
  left: -9999px;
}

.bday-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.bday-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.bday-consent a {
  color: inherit;
}

.bday-call .btn {
  width: 100%;
}

.bday-status:empty {
  display: none;
}

.bday-status {
  margin: 0;
  font-size: 13px;
}

.bday-done-title {
  margin: 0;
  font: 800 20px var(--display);
}

.bday-done {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bday-more {
  justify-self: start;
  color: var(--violet);
  font-weight: 700;
  font-size: 14px;
}

/* Telefon: pole w hero jedno pod drugim, karta to wąski pasek nad dołem ekranu, rozwijany w arkusz. */
@media (max-width: 640px) {
  .bday-quick {
    margin-top: 18px;
    padding: 14px;
  }

  .bday-quick-row {
    flex-direction: column;
  }

  .bday-quick .btn {
    width: 100%;
  }

  .bday-quick-note {
    display: none;
  }

  .bday-card {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 88vh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .bday-card[data-mode='peek'] {
    left: 12px;
    right: 124px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    padding: 0;
    border-radius: 18px;
    overflow: visible;
  }

  .bday-card[data-mode='peek'] .bday-body {
    display: none;
  }

  .bday-card[data-mode='peek'] .bday-peek {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 8px 44px 8px 10px;
    border: 0;
    border-radius: 18px;
    background: none;
    color: var(--ink);
    font: 500 14px/1.3 var(--font);
    text-align: left;
    cursor: pointer;
  }

  .bday-peek b {
    display: block;
    font: 800 15px var(--display);
  }

  .bday-peek-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--yellow);
    font-size: 18px;
  }

  .bday-card[data-mode='peek'] .bday-close {
    top: 10px;
    right: 8px;
  }

  .bday-date {
    flex-direction: column;
  }

  .bday-call-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bday-card {
    transition: none;
  }
}
