:root {
  --cream: #FCFAF7;
  --dusty-rose: #844C5C;
  --dusty-rose-dark: #6B3D4A;
  --gold: #C2A689;
  --text-dark: #3D2B2B;
  --text-muted: #7A6A6A;
  --white: #FFFFFF;

  --font-serif: Georgia, "Times New Roman", "Cambria", serif;
  --font-sans: "Segoe UI", Helvetica, Arial, sans-serif;

  --wave-height: clamp(50px, 8vh, 80px);
  --space-content: clamp(10px, 2.2vh, 22px);
  --space-section: clamp(14px, 2.5vh, 26px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #EDE7E2;
  font-family: var(--font-sans);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  max-width: 480px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 481px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
  }
  .page {
    height: min(100dvh, 900px);
    max-height: min(100dvh, 900px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(107, 61, 74, 0.18);
  }
}

/* ---------- Decorative background ---------- */

.bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wave-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: min(58vw, 240px);
  height: auto;
  display: block;
}

.leaf {
  position: absolute;
  width: 110px;
  height: auto;
  opacity: 0.45;
  display: block;
}

.leaf-top-right {
  top: 10px;
  right: -55px;
  transform: scaleX(-1) rotate(10deg);
}

.leaf-bottom-left {
  bottom: calc(var(--wave-height) + 8px);
  left: -70px;
  transform: rotate(-172deg);
}

.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: var(--wave-height);
  object-fit: fill;
  pointer-events: none;
}

/* ---------- Content shell ---------- */

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-content);
  height: 100%;
  padding:
    calc(clamp(10px, 2vh, 20px) + env(safe-area-inset-top, 0px))
    20px
    calc(var(--wave-height) + 8px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-section);
  min-height: 0;
}

/* ---------- Header / brand ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-top: clamp(16px, 5vh, 48px);
}

.brand-logo {
  width: clamp(140px, 30vh, 300px);
  max-width: 82vw;
  height: auto;
  margin-bottom: clamp(4px, 1vh, 10px);
  display: block;
}

/* ---------- Thank you section ---------- */

.thank-you {
  margin-top: 0;
  flex-shrink: 0;
}

.thank-you-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 4.2vh, 32px);
  letter-spacing: 1.5px;
  color: var(--text-dark);
}

.thank-you-subtitle {
  margin: clamp(2px, 0.4vh, 4px) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(11px, 2vh, 14px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(6px, 1vh, 10px) 0;
}

.divider-line {
  width: 52px;
  height: 1px;
  background: var(--gold);
}

.icon-heart {
  width: clamp(12px, 1.8vh, 15px);
  height: clamp(12px, 1.8vh, 15px);
  fill: var(--dusty-rose);
  flex-shrink: 0;
}

.thank-you-message {
  margin: 0 auto;
  max-width: 320px;
  font-size: clamp(14px, 2.6vh, 17px);
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---------- Section labels (shared) ---------- */

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.label-line {
  width: 32px;
  height: 1px;
  background: var(--dusty-rose);
  opacity: 0.6;
}

.label-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dusty-rose);
  white-space: nowrap;
}

/* ---------- Review section ---------- */

.review-section {
  margin-top: 0;
  width: 100%;
  flex-shrink: 0;
}

.review-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: clamp(44px, 6vh, 56px);
  padding: clamp(8px, 1.6vh, 12px) 18px clamp(8px, 1.6vh, 12px) 14px;
  border: 1px solid rgba(132, 76, 92, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8F6 100%);
  box-shadow:
    0 4px 18px rgba(132, 76, 92, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  text-decoration: none;
  color: var(--text-dark);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.review-button:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF3F0 100%);
  border-color: rgba(132, 76, 92, 0.4);
  box-shadow:
    0 6px 22px rgba(132, 76, 92, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.review-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(132, 76, 92, 0.08);
}

.review-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 5vh, 38px);
  height: clamp(32px, 5vh, 38px);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(132, 76, 92, 0.1);
  flex-shrink: 0;
}

.icon-google {
  width: clamp(18px, 3vh, 22px);
  height: clamp(18px, 3vh, 22px);
  flex-shrink: 0;
}

.review-button-text {
  flex: 1;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-dark);
}

.icon-chevron {
  width: 18px;
  height: 18px;
  fill: var(--dusty-rose);
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.review-button:hover .icon-chevron {
  opacity: 1;
  transform: translateX(2px);
}

/* ---------- Social section ---------- */

.social-section {
  margin-top: 0;
  width: 100%;
  flex-shrink: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1vh, 8px);
  min-height: clamp(76px, 9.5vh, 98px);
  padding: clamp(10px, 1.8vh, 14px) 10px;
  border: 1px solid rgba(132, 76, 92, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF8F6 100%);
  box-shadow: 0 3px 14px rgba(132, 76, 92, 0.08);
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.social-item:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF3F0 100%);
  border-color: rgba(132, 76, 92, 0.35);
  box-shadow: 0 5px 18px rgba(132, 76, 92, 0.12);
}

.social-item:active {
  transform: scale(0.98);
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6vh, 48px);
  height: clamp(40px, 6vh, 48px);
  border-radius: 50%;
  background: var(--dusty-rose);
  box-shadow: 0 2px 8px rgba(132, 76, 92, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-item:active .social-circle {
  transform: scale(0.94);
  background: var(--dusty-rose-dark);
}

.social-circle svg {
  width: clamp(18px, 2.8vh, 22px);
  height: clamp(18px, 2.8vh, 22px);
  fill: var(--white);
}

.social-circle .icon-facebook {
  width: clamp(13px, 2vh, 16px);
  height: clamp(20px, 3vh, 24px);
}

.social-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}

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

.page-footer {
  margin-top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.footer-divider {
  width: 100%;
  max-width: 260px;
  height: 1px;
  background: #E2D9D2;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.footer-message {
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vh, 6px);
  flex-direction: column;
  font-size: clamp(11px, 1.8vh, 13px);
  color: var(--text-muted);
  line-height: 1.4;
}

.icon-heart-small {
  width: clamp(12px, 1.8vh, 14px);
  height: clamp(12px, 1.8vh, 14px);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 340px) {
  .social-grid {
    gap: 8px;
  }
}
