:root {
  --rf-blush: #e7b9ae;
  --rf-blush-dark: #c98d80;
  --rf-blush-darker: #ab6f63;
  --rf-sand: #d9c3a3;
  --rf-cream: #faf3ea;
  --rf-cream-card: #fffdfa;
  --rf-gold: #b99361;
  --rf-text: #4a3b33;
  --rf-text-soft: #8a7367;
  --rf-line: #e8dcd0;

  /* aliases kept for compatibility with other stylesheets/templates */
  --gift-pink: var(--rf-blush);
  --gift-pink-dark: var(--rf-blush-dark);
  --gift-blue: var(--rf-sand);
  --gift-cream: var(--rf-cream);
  --gift-text: var(--rf-text);
}

body {
  background-color: var(--rf-cream);
  color: var(--rf-text);
  font-family: 'Poppins', system-ui, sans-serif;
}

h1, h2, h3, .modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rf-blush) 0%, var(--rf-sand) 55%, var(--rf-blush-darker) 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .28), transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-monogram {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .12);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  letter-spacing: .02em;
  color: #fff;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-small {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(.78rem, 1.1vw, 1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .1em;
}

.hero-name {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(4.6rem, 15vw, 8.5rem);
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
  margin-top: -.05em;
}

.hero-tagline {
  color: rgba(255, 255, 255, .88);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Goal bar ---------- */

.goal-bar-wrap {
  background: linear-gradient(180deg, var(--rf-cream) 0%, var(--rf-cream-card) 100%);
  border-bottom: 1px solid var(--rf-line);
  padding: 1.1rem 0;
}

.goal-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--rf-cream-card);
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  padding: 1rem 1.35rem 1.1rem;
  box-shadow: 0 8px 22px rgba(74, 59, 51, .09);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rf-gold), var(--rf-blush-dark), var(--rf-gold));
  background-size: 200% 100%;
  animation: goalShimmer 3.5s linear infinite;
}

.goal-card-head {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-bottom: .6rem;
}

.goal-icon {
  font-size: 1rem;
  line-height: 1;
}

.goal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--rf-text);
  letter-spacing: .01em;
  flex-grow: 1;
}

.goal-percent {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rf-blush-darker);
  font-variant-numeric: tabular-nums;
}

.goal-bar-track {
  height: 11px;
  border-radius: 999px;
  background: var(--rf-line);
  overflow: hidden;
  margin-bottom: .5rem;
}

.goal-bar-fill {
  height: 100%;
  width: var(--goal-target, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rf-blush-dark), var(--rf-gold));
  background-size: 200% 100%;
  transform-origin: left center;
  animation: goalFillIn 1.15s cubic-bezier(.22, 1, .36, 1) both,
             goalShimmer 3.5s linear infinite 1.15s;
}

.goal-bar-caption {
  text-align: center;
  font-size: .78rem;
  color: var(--rf-text-soft);
}

@keyframes goalFillIn {
  from { width: 0%; }
  to   { width: var(--goal-target, 0%); }
}

@keyframes goalShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .goal-bar-fill,
  .goal-card::before {
    animation: none;
  }
}

/* ---------- Live search ---------- */

.search-input {
  border-radius: 999px;
  border: 1px solid var(--rf-line);
  padding: .6rem 1.1rem;
  background: var(--rf-cream-card);
}

.search-input:focus {
  border-color: var(--rf-gold);
  box-shadow: 0 0 0 .2rem rgba(185, 147, 97, .18);
}

/* ---------- Category filter ---------- */

.category-filter {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: .5rem;
  padding: .15rem .1rem .5rem;
  justify-content: flex-start;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .category-filter {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.category-filter-pill {
  flex: 0 0 auto;
  border: 1px solid var(--rf-line);
  background: var(--rf-cream-card);
  color: var(--rf-text-soft);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  padding: .4rem 1rem;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.category-filter-pill:hover {
  border-color: var(--rf-gold);
  color: var(--rf-text);
}

.category-filter-pill.active {
  background: var(--rf-blush-dark);
  border-color: var(--rf-blush-dark);
  color: #fff;
  font-weight: 600;
}

/* ---------- Phone field with fixed +55 prefix ---------- */

.phone-input-group .input-group-text {
  background: var(--rf-cream);
  border: 1px solid var(--rf-line);
  border-right: none;
  color: var(--rf-text-soft);
  font-weight: 600;
}

.phone-input-group .form-control {
  border-left: none;
}

.phone-input-group .form-control:focus {
  border-color: var(--rf-line);
  box-shadow: none;
  z-index: 0;
}

.phone-input-group:focus-within .input-group-text,
.phone-input-group:focus-within .form-control {
  border-color: var(--rf-gold);
}

.phone-input-group:focus-within {
  box-shadow: 0 0 0 .2rem rgba(185, 147, 97, .18);
  border-radius: .375rem;
}

/* ---------- PIN box (confirmation page) ---------- */

.pin-box {
  background: var(--rf-cream);
  border: 1px dashed var(--rf-gold);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: center;
}

.pin-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--rf-blush-darker);
}

/* ---------- Intro line ---------- */

.intro-lead {
  color: var(--rf-text-soft);
}

/* ---------- Categories ---------- */

.category-title {
  font-weight: 700;
  color: var(--rf-blush-darker);
  position: relative;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--rf-line);
}

.category-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 2px;
  background: var(--rf-gold);
}

/* ---------- Gift cards ---------- */

.gift-card {
  border: 1px solid var(--rf-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--rf-cream-card);
  box-shadow: 0 4px 16px rgba(74, 59, 51, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(74, 59, 51, .16);
  border-color: var(--rf-gold);
}

.gift-card.gift-taken {
  opacity: .55;
}

.gift-img {
  height: 190px;
  object-fit: cover;
  background: #fff;
}

.gift-card .card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.gift-card .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: .55rem;
}

.gift-card .card-text {
  color: var(--rf-text-soft);
  margin-bottom: .55rem;
}

.badge.text-bg-warning-subtle {
  background-color: rgba(231, 185, 174, .35) !important;
  color: var(--rf-blush-darker) !important;
  border: 1px solid rgba(201, 141, 128, .35);
  font-weight: 600;
}

.badge.text-bg-secondary {
  background-color: var(--rf-line) !important;
  color: var(--rf-text-soft) !important;
}

.secret-gift-alert {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  border-radius: 10px;
  background: rgba(185, 147, 97, .12);
  border: 1px solid rgba(185, 147, 97, .35);
  color: var(--rf-text);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
}

.secret-gift-alert-icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn-gift {
  background-color: var(--rf-blush-dark);
  border-color: var(--rf-blush-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .55rem 1.5rem;
  letter-spacing: .01em;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn-gift:hover {
  background-color: var(--rf-blush-darker);
  border-color: var(--rf-blush-darker);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-radius: 999px;
}

/* ---------- Modal ---------- */

.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--rf-line);
  background: var(--rf-cream);
}

.modal-footer {
  border-top: 1px solid var(--rf-line);
}

/* ---------- Confirmation page ---------- */

.confirmation-card {
  border: 1px solid var(--rf-line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(74, 59, 51, .10);
  background: var(--rf-cream-card);
}

.confirmation-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid var(--rf-cream);
  box-shadow: 0 0 0 2px var(--rf-gold);
}

/* ---------- Hero: cancel-reservation entry point ---------- */

.btn-hero-cancel {
  border: 1px solid rgba(255, 150, 140, .5);
  color: #ffe4e0;
  background: rgba(214, 90, 78, .18);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  padding: .3rem .85rem;
  letter-spacing: .01em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-hero-cancel:hover {
  background: rgba(214, 90, 78, .85);
  color: #fff;
  border-color: rgba(214, 90, 78, .9);
}

/* ---------- Cancel page: matching reservations ---------- */

.cancel-result {
  background: var(--rf-cream);
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  padding: .75rem 1rem;
}

/* ---------- Footer ---------- */

footer {
  color: var(--rf-text-soft);
  border-top: 1px solid var(--rf-line);
}

/* ---------- Mobile: two gift cards per row ---------- */

@media (max-width: 575.98px) {
  .hero-monogram { width: 58px; height: 58px; font-size: 1.55rem; }
  .hero .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

  .gift-img { height: 118px; }
  .gift-card .card-body { padding: .8rem; }
  .gift-card .card-title { font-size: .92rem; line-height: 1.25; }
  .gift-card .card-text { font-size: .76rem; }
  .badge { font-size: .68rem; }
  .btn-gift { font-size: .78rem; padding: .5rem .6rem; width: 100%; }
}
