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

html, body {
  height: 100%;
}

body {
  font-family: 'Quicksand', sans-serif;
  min-height: 100vh;
  background: linear-gradient(160deg, #ffe8d6 0%, #ffd3b0 45%, #ffb88c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  padding: 1rem;
}

/* keep the dodge page from scrolling so the "no" button can't hide off-screen */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ---------- floating flower decorations ---------- */

.flowers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.flower {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.55;
  animation: sway 6s ease-in-out infinite;
}

.f1 { top: 6%; left: 8%; animation-delay: 0s; }
.f2 { top: 14%; right: 10%; font-size: 2.6rem; animation-delay: 1s; }
.f3 { top: 78%; left: 12%; animation-delay: 2s; }
.f4 { top: 85%; right: 14%; font-size: 2.4rem; animation-delay: 0.5s; }
.f5 { top: 40%; left: 4%; font-size: 1.8rem; animation-delay: 1.5s; }
.f6 { top: 50%; right: 5%; font-size: 1.8rem; animation-delay: 2.5s; }
.f7 { top: 4%; left: 45%; font-size: 1.6rem; animation-delay: 3s; }
.f8 { top: 92%; left: 48%; font-size: 1.6rem; animation-delay: 1.2s; }

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- main card ---------- */

.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 2.2rem 1.6rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 150, 100, 0.25);
}

.question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #7a4a30;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.buttons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 60px;
}

.choice {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #8a5638;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.4rem;
  box-shadow: 0 6px 16px rgba(255, 150, 100, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, left 0.18s ease, top 0.18s ease;
  touch-action: none;
}

.choice:active {
  transform: scale(0.96);
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #a9765a;
  min-height: 1.2rem;
}

/* ---------- schedule / calendar page ---------- */

.calendar-card {
  max-width: 380px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cal-header button {
  font-family: inherit;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #c97b4a;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
}

.cal-header button:disabled {
  opacity: 0.25;
  cursor: default;
}

.cal-title {
  font-weight: 700;
  color: #7a4a30;
  font-size: 1.05rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 1.2rem;
}

.cal-weekday {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c9967a;
  padding-bottom: 4px;
}

.cal-day {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-radius: 10px;
  cursor: pointer;
  color: #7a4a30;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.cal-day.empty {
  visibility: hidden;
  cursor: default;
}

.cal-day.disabled {
  color: #d9b9a8;
  cursor: default;
  background: transparent;
}

.cal-day.selected {
  background: #ffb88c;
  color: #fff;
  font-weight: 700;
  transform: scale(1.05);
}

.cal-day:not(.disabled):not(.empty):hover {
  background: #ffd3b0;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-height: 190px;
  overflow-y: auto;
  margin-bottom: 1.4rem;
  padding: 0.2rem;
}

.time-chip {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a5638;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.time-chip.selected {
  background: #ffb88c;
  color: #fff;
  transform: scale(1.05);
}

.confirm-btn {
  font-family: inherit;
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #f3946a;
  border: none;
  border-radius: 999px;
  padding: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 150, 100, 0.35);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.confirm-btn:not(:disabled):active {
  transform: scale(0.97);
}

.result {
  margin-top: 1.4rem;
  text-align: center;
}

.result p {
  color: #7a4a30;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.result .status {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a9765a;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  color: #a9765a;
  font-size: 0.85rem;
  text-decoration: none;
}

.hidden {
  display: none;
}
