:root{
  --brown: #3B241D;
  --brown-deep: #291711;
  --cream: #F5EEC7;
  --cream-soft: #FBF7E9;
  --blue: #C3DBE4;
  --blue-deep: #9FC2CE;
  --ink: #2C1913;
  --ink-soft: #6b5648;
}

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  background: var(--brown);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

body{
  display:flex;
  justify-content:center;
  padding: 56px 20px 80px;
}

.page{
  width:100%;
  max-width: 460px;
}

/* ---------- Hero ---------- */
.hero{
  text-align:center;
  margin-bottom: 40px;
  position:relative;
}

.eyebrow{
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

h1{
  font-family:'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 9vw, 52px);
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
  position: relative;
  z-index: 1;
  display:inline-block;
}

.star{
  width: 52px;
  height: 52px;
}

.hero-star{
  position:absolute;
  top: -20px;
  right: -10px;
  width: 150px;
  height: 150px;
  z-index: 0;
  opacity: 0.35;
}

.sub{
  margin: 18px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.8;
}

/* ---------- Card ---------- */
.card{
  background: var(--cream-soft);
  border-radius: 22px;
  padding: 34px 26px 30px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}

.field{
  margin-bottom: 20px;
}

label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

label .opt{
  font-weight: 400;
  color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width:100%;
  font-family:'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(44,25,19,0.15);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea{
  resize: vertical;
  min-height: 84px;
  line-height:1.4;
}

input:focus, select:focus, textarea:focus{
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(159,194,206,0.4);
}

.chip-group{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.chip{
  position:relative;
}

.chip input{
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  cursor:pointer;
  margin:0;
}

.chip span{
  display:inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(44,25,19,0.18);
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  transition: all 0.15s ease;
}

.chip input:checked + span{
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

button{
  width:100%;
  margin-top: 6px;
  padding: 15px 18px;
  border: none;
  border-radius: 12px;
  background: var(--brown);
  color: var(--cream);
  font-family:'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor:pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

button:hover{ background: var(--brown-deep); }
button:active{ transform: scale(0.98); }

.foot{
  text-align:center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--cream);
  opacity: 0.65;
}

.success{
  display:none;
  text-align:center;
  padding: 40px 10px;
}

.success.show{ display:block; }
.card.hide{ display:none; }

.success .star{
  position:static;
  display:block;
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
}

.success h2{
  font-family:'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 10px;
}

.success p{
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin:0;
}

@media (prefers-reduced-motion: reduce){
  button{ transition:none; }
}
