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

:root {
  --cream: #faf8f5;
  --latte: #e8dfd4;
  --mocha: #5c4a3a;
  --espresso: #2f2924;
  --sage: #8fb09a;
  --sky: #b8d4e8;
  --honey: #e8c98a;
  --shadow: rgba(47, 41, 36, 0.1);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: linear-gradient(150deg, #faf8f5 0%, #f0ebe4 50%, #e8eef2 100%);
  color: var(--espresso);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--sky);
  top: -70px;
  right: -50px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: var(--sage);
  bottom: -50px;
  left: -70px;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: var(--honey);
  top: 45%;
  left: 50%;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow:
    0 20px 50px var(--shadow),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  animation: float-in 0.7s ease-out;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coffee-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.greeting {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: 0.6rem;
}

.question {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--espresso);
}

.question em {
  font-style: normal;
  color: var(--mocha);
  background: linear-gradient(transparent 65%, rgba(184, 212, 232, 0.55) 65%);
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(47, 41, 36, 0.7);
  margin-bottom: 2rem;
  min-height: 3rem;
  transition: opacity 0.3s ease;
}

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

.btn {
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    padding 0.25s ease,
    font-size 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-no {
  background: #fff;
  color: var(--mocha);
  border: 2px solid var(--latte);
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  transform-origin: center;
}

.btn-no:hover {
  border-color: var(--sky);
  background: #f8fbfd;
}

.btn-yes {
  background: linear-gradient(135deg, var(--sage), #6d9a7a);
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(111, 154, 122, 0.3);
  transform-origin: center;
}

.btn-yes:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 26px rgba(111, 154, 122, 0.38);
}

.btn-yes:active,
.btn-no:active {
  transform: scale(0.97);
}

.hint {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(47, 41, 36, 0.45);
  min-height: 1.2rem;
}

.outing-section {
  background: rgba(143, 176, 154, 0.1);
  border: 2px solid rgba(143, 176, 154, 0.35);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.outing-label {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-align: left;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--latte);
  border-radius: 999px;
  background: #fff;
  color: var(--mocha);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.option-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.option-chip:has(input:checked),
.option-chip.selected {
  border-color: var(--sage);
  background: rgba(143, 176, 154, 0.22);
  color: var(--espresso);
}

.option-chip:hover {
  border-color: var(--sky);
}

.optional {
  font-weight: 500;
  color: rgba(47, 41, 36, 0.45);
}

.schedule {
  animation: float-in 0.5s ease-out;
}

.schedule-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--espresso);
}

.schedule-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(47, 41, 36, 0.68);
  margin-bottom: 1.5rem;
}

.schedule-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mocha);
  margin-top: 0.5rem;
}

.field-input:disabled {
  background: #f3f0ec;
  color: rgba(47, 41, 36, 0.4);
  cursor: not-allowed;
  border-color: var(--latte);
}

.date-later-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mocha);
  cursor: pointer;
  user-select: none;
}

.date-later-chip input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--sage);
  cursor: pointer;
}

.field-input,
.field-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--latte);
  border-radius: 12px;
  background: #fff;
  color: var(--espresso);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143, 176, 154, 0.25);
}

.field-textarea {
  resize: vertical;
  min-height: 5rem;
}

.field-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c45c5c;
  min-height: 1.1rem;
  margin-top: 0.25rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.success {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-inner {
  text-align: center;
  max-width: 400px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(12deg);
  }
  75% {
    transform: rotate(-8deg);
  }
}

.success h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--espresso);
}

.success p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(47, 41, 36, 0.75);
}

.success-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mocha);
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

@media (max-width: 420px) {
  .card {
    padding: 2rem 1.25rem 1.5rem;
  }

  .buttons {
    gap: 0.75rem;
  }
}
