@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');

:root {
  --primary: #F63864;
  --primary-dark: #D92753;
  --secondary: #FF97B0;
  --accent: #F5D76D;
  --ink: #392A31;
  --muted: #8D7B83;
  --line: #F0E3E7;
  --cream: #FFFAF7;
  --pink-bg: #FFF0F4;
  --white: #FFFFFF;
  --shadow: 0 18px 48px rgba(106, 52, 72, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 5%, rgba(255, 151, 176, .17), transparent 33%),
    radial-gradient(ellipse at 94% 25%, rgba(245, 215, 109, .13), transparent 28%),
    var(--cream);
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button, input, select { font: inherit; }
a { color: inherit; }
.site-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.3px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 13px; color: var(--primary); background: #FFE5EC; font-size: 25px; }
.back-link { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.back-link:hover, .page-footer a:hover { color: var(--primary); }
.page-shell { width: min(1050px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; padding: 42px 12px 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #F8D6E0; border-radius: 999px; padding: 5px 12px; color: #C54A6A; background: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { margin: 16px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25; letter-spacing: -1.1px; }
.hero h1 span { display: block; color: var(--primary); }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 22px; align-items: stretch; }
.input-card, .result-card { border: 1px solid rgba(240, 227, 231, .9); border-radius: 25px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.card-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 27px; }
.heading-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 16px; background: #FFF0F4; color: var(--primary); font-size: 27px; }
.card-heading h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.field { margin-bottom: 20px; min-width: 0; }
.field label, .label-row label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.required { color: var(--primary); }
.input-with-unit { position: relative; }
.input-with-unit input, .field select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 65px 11px 14px; outline: none; color: var(--ink); background: #FFFEFE; transition: border-color .2s, box-shadow .2s; }
.field select { padding-right: 12px; cursor: pointer; }
.input-with-unit input:focus, .field select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(255,151,176,.18); }
.input-with-unit > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row label { margin-bottom: 0; }
.label-row output { color: var(--primary); font-weight: 700; font-size: 14px; }
.range-input { width: 100%; margin: 16px 0 0; accent-color: var(--primary); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 2px; color: #AA9AA1; font-size: 11px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 12px; padding: 11px 17px; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button-primary { flex: 1; color: white; background: var(--primary); box-shadow: 0 7px 16px rgba(246,56,100,.2); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: #806B74; background: #FFF7F9; border-color: var(--line); }
.button-secondary:hover { background: #FFEAF0; }
.privacy-note { margin: 15px 0 0; color: #9A8B91; font-size: 11px; text-align: center; }
.result-card { position: relative; overflow: hidden; color: white; border: 0; background: linear-gradient(145deg, #F63864 0%, #E84770 56%, #D95D7D 100%); box-shadow: 0 18px 42px rgba(214, 52, 94, .2); }
.result-card::before, .result-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; pointer-events: none; }
.result-card::before { width: 250px; height: 250px; top: -150px; right: -85px; }
.result-card::after { width: 190px; height: 190px; bottom: -120px; left: -100px; }
.result-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.result-kicker { font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: rgba(255,255,255,.8); }
.result-sparkle { font-size: 31px; line-height: 1; color: #FFE9A5; }
.result-label { position: relative; z-index: 1; margin: 25px 0 0; color: rgba(255,255,255,.9); font-size: 14px; }
.main-result { display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; margin: 0 0 24px; }
.main-result strong { font-size: clamp(55px, 6vw, 76px); line-height: 1.2; letter-spacing: -2px; }
.main-result span { font-size: 18px; font-weight: 500; }
.result-breakdown { position: relative; z-index: 1; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.result-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; }
.result-breakdown span { color: rgba(255,255,255,.82); }
.result-breakdown strong { text-align: right; font-weight: 600; }
.budget-panel { position: relative; z-index: 1; margin: 20px 0; padding: 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; background: rgba(255,255,255,.13); }
.budget-panel > span { display: block; color: rgba(255,255,255,.86); font-size: 12px; }
.budget-panel > strong { display: block; margin-top: 4px; font-size: clamp(27px, 3vw, 34px); line-height: 1.35; }
.budget-panel small { font-size: 13px; font-weight: 500; }
.budget-panel p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 11px; }
.button-outline { position: relative; z-index: 1; width: 100%; border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.08); }
.button-outline:hover { background: rgba(255,255,255,.17); }
.result-note { position: relative; z-index: 1; margin: 13px 0 0; color: rgba(255,255,255,.73); font-size: 10px; text-align: center; }
.how-it-works { padding: 52px 0 25px; }
.how-it-works h2 { margin: 0 0 19px; text-align: center; font-size: 22px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step-card { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.78); padding: 20px; }
.step-number { display: inline-block; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.step-card h3 { margin: 8px 0 5px; font-size: 14px; }
.step-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.page-footer { padding: 23px 0 30px; text-align: center; color: #9A8B91; font-size: 12px; }
.page-footer p { margin: 0; }
.page-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) {
  .site-header { padding: 17px 20px; }
  .page-shell { width: min(540px, calc(100% - 28px)); }
  .hero { padding: 30px 5px 25px; }
  .hero p { font-size: 13px; }
  .calculator-layout { grid-template-columns: 1fr; gap: 16px; }
  .input-card, .result-card { border-radius: 21px; padding: 22px; }
  .result-card { order: 2; }
  .input-card { order: 1; }
  .main-result strong { font-size: 65px; }
  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card { padding: 16px 18px; }
}
@media (max-width: 420px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; }
  .back-link { font-size: 11px; }
  .field-grid { gap: 10px; }
  .form-actions { flex-direction: column; }
  .button-secondary { width: 100%; }
  .desktop-only { display: none; }
}


/* Wedding planning tips */
.tips-section { padding: 42px 0 10px; }
.tips-heading { text-align: center; margin: 0 auto 24px; max-width: 650px; }
.tips-eyebrow { color: #C54A6A; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; }
.tips-heading h2 { margin: 8px 0 5px; font-size: clamp(23px, 4vw, 30px); letter-spacing: -.5px; }
.tips-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tip-card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(106,52,72,.035); }
.tip-card-featured { background: linear-gradient(135deg, #FFF0F4, #FFF9F4); border-color: #F7D3DE; }
.tip-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 14px; color: var(--primary); background: #FFF0F4; font-size: 23px; }
.tip-card-featured .tip-icon { background: #FFE0E9; }
.tip-number { color: #C65B77; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.tip-card h3 { margin: 5px 0 7px; font-size: 15px; line-height: 1.55; }
.tip-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.rsvp-promo { display: flex; align-items: flex-start; gap: 18px; margin-top: 18px; padding: clamp(22px, 4vw, 30px); border: 1px solid #F4D1DC; border-radius: 22px; background: linear-gradient(120deg, #FFF0F4 0%, #FFF8F1 100%); }
.rsvp-promo-icon { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 17px; background: #FFFFFF; font-size: 27px; box-shadow: 0 5px 15px rgba(106,52,72,.06); }
.rsvp-promo-content { flex: 1; min-width: 0; }
.rsvp-promo-eyebrow { color: #C54A6A; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.rsvp-promo h3 { margin: 4px 0 7px; font-size: 19px; line-height: 1.5; }
.rsvp-promo p { margin: 0 0 12px; color: #795F69; font-size: 13px; line-height: 1.85; }
.rsvp-coming-soon { display: inline-block; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.75); color: #986878; font-size: 11px; }
.tips-disclaimer { margin: 12px 4px 0; color: #9A8B91; font-size: 11px; text-align: center; }
@media (max-width: 600px) {
  .tips-section { padding-top: 32px; }
  .tips-grid { grid-template-columns: 1fr; gap: 10px; }
  .tip-card { padding: 19px; }
  .rsvp-promo { gap: 12px; padding: 19px; }
  .rsvp-promo-icon { flex-basis: 43px; height: 43px; font-size: 22px; }
  .rsvp-promo h3 { font-size: 16px; }
}
