:root {
  --navy: #071f43;
  --navy-2: #0c2d58;
  --gold: #c79a47;
  --gold-2: #d9b66e;
  --cream: #fbf6ee;
  --cream-2: #fffaf3;
  --soft: #f1e5d5;
  --text: #2c3a50;
  --muted: #5d687a;
  --card: rgba(255, 252, 247, 0.9);
  --shadow: 0 22px 50px rgba(13, 31, 55, 0.12);
  --shadow-soft: 0 12px 28px rgba(13, 31, 55, 0.1);
  --radius-lg: 26px;
  --radius-xl: 36px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 182, 110, 0.14), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(7, 31, 67, 0.07), transparent 36rem),
    linear-gradient(135deg, #fffaf3 0%, #f8efe4 48%, #fffaf6 100%);
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.page-shell {
  width: min(100%, 1620px);
  margin: 0 auto;
  min-height: 100svh;
  padding: 18px;
}

.thank-you {
  position: relative;
  min-height: calc(100svh - 36px);
  overflow: hidden;
  border: 1px solid rgba(199, 154, 71, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 236, 0.92)),
    var(--cream);
  box-shadow: var(--shadow);
}

.content-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: clamp(22px, 6vw, 56px) clamp(18px, 5vw, 58px) 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.brand-mark {
  font-family: var(--serif);
  font-size: clamp(42px, 13vw, 72px);
  line-height: 0.84;
  letter-spacing: -0.08em;
  color: var(--gold);
  font-weight: 400;
}

.brand-divider {
  width: 1px;
  align-self: stretch;
  min-height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(199, 154, 71, 0.85), transparent);
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  white-space: nowrap;
}

.mobile-portrait {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  aspect-ratio: 4 / 4.35;
  border-radius: 28px;
  border: 1px solid rgba(199, 154, 71, 0.24);
  background: var(--soft);
  box-shadow: var(--shadow-soft);
}

.mobile-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 31, 67, 0.12), transparent 42%);
  pointer-events: none;
}

.mobile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-copy {
  display: grid;
  gap: 15px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10.8ch;
  font-family: var(--serif);
  font-size: clamp(44px, 13.8vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  color: var(--navy);
  font-weight: 400;
}

.ornament {
  position: relative;
  width: min(100%, 260px);
  height: 12px;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) center / 14px 14px no-repeat;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 10px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(199, 154, 71, 0.85));
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
  transform: scaleX(-1);
}

.hero-copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(17px, 4.5vw, 24px);
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.confirmation-card,
.step-card {
  display: grid;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(197, 173, 139, 0.36);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.8));
  box-shadow: var(--shadow-soft);
}

.confirmation-card {
  grid-template-columns: auto 1fr auto;
  padding: clamp(18px, 5vw, 28px);
}

.status-icon,
.step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
}

.status-icon {
  width: clamp(58px, 15vw, 78px);
  height: clamp(58px, 15vw, 78px);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 26px rgba(199, 154, 71, 0.24);
}

.status-icon svg {
  width: 54%;
  fill: #fff;
}

.confirmation-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.confirmation-text strong {
  color: var(--navy);
  font-size: clamp(19px, 5vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.confirmation-text span {
  color: var(--muted);
  font-size: clamp(15px, 4vw, 20px);
  line-height: 1.35;
}

.mail-icon {
  display: none;
  color: var(--gold);
}

.mail-icon svg {
  width: 46px;
  height: 46px;
}

.mail-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-divider {
  display: grid;
  grid-template-columns: 1fr 16px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 -2px;
}

.section-divider span {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(199, 154, 71, 0.72));
}

.section-divider span:last-child {
  transform: scaleX(-1);
}

.section-divider i {
  display: block;
  width: 14px;
  height: 14px;
  rotate: 45deg;
  background: var(--gold);
}

.step-card {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(22px, 6vw, 34px);
}

.step-icon {
  width: clamp(82px, 22vw, 112px);
  height: clamp(82px, 22vw, 112px);
  color: var(--gold-2);
  background: radial-gradient(circle at 30% 20%, #133965, var(--navy));
  box-shadow: 0 18px 34px rgba(7, 31, 67, 0.22);
}

.step-icon svg {
  width: 58%;
  height: 58%;
}

.step-icon circle,
.step-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-copy {
  display: grid;
  gap: 8px;
}

.step-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(20px, 5.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.step-copy p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(16px, 4.4vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.primary-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 590px);
  min-height: 70px;
  padding: 18px 20px;
  margin: -2px auto 0;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--navy), #082853);
  box-shadow: 0 22px 34px rgba(7, 31, 67, 0.22);
  font-size: clamp(17px, 4.6vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 26px 42px rgba(7, 31, 67, 0.26);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(199, 154, 71, 0.78);
  outline-offset: 4px;
}

.whatsapp-icon {
  width: clamp(34px, 9vw, 47px);
  height: clamp(34px, 9vw, 47px);
}

.whatsapp-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-icon path:last-child {
  fill: currentColor;
  stroke: none;
}

.button-arrow {
  color: var(--gold-2);
  font-size: 1.5em;
  line-height: 1;
  transform: translateY(-1px);
}

.portrait-panel {
  display: none;
}

@media (min-width: 520px) {
  .mail-icon {
    display: block;
  }

  .step-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }
}

@media (min-width: 820px) {
  .page-shell {
    padding: 24px;
  }

  .thank-you {
    border-radius: 28px;
  }

  .content-panel {
    max-width: 850px;
    padding: 42px 54px 46px;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .mobile-portrait {
    max-width: 560px;
    min-height: 420px;
  }
}

@media (min-width: 1080px) {
  .page-shell {
    display: grid;
    place-items: center;
    padding: 0;
  }

  .thank-you {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    border-inline: 0;
  }

  .content-panel {
    justify-content: center;
    gap: clamp(26px, 3vh, 38px);
    max-width: none;
    padding: clamp(34px, 4vw, 58px) clamp(40px, 5vw, 86px);
  }

  .mobile-portrait {
    display: none;
  }

  .brand-mark {
    font-size: clamp(62px, 5vw, 82px);
  }

  .brand-name {
    font-size: clamp(28px, 2.4vw, 40px);
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(68px, 5.4vw, 96px);
  }

  .ornament {
    width: 470px;
  }

  .confirmation-card,
  .step-card {
    max-width: 790px;
  }

  .confirmation-card {
    min-height: 140px;
  }

  .step-card {
    margin-left: clamp(70px, 8vw, 150px);
    padding: 30px 42px;
  }

  .primary-button {
    margin-left: clamp(130px, 15vw, 230px);
    margin-right: 0;
  }

  .portrait-panel {
    position: relative;
    display: block;
    min-height: 100svh;
    overflow: hidden;
    background: linear-gradient(130deg, rgba(199, 154, 71, 0.08), rgba(255, 250, 243, 0.2));
  }

  .portrait-shell {
    position: absolute;
    inset: 0;
  }

  .portrait-shell::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 14px;
    width: clamp(160px, 18vw, 220px);
    border-left: 3px solid rgba(199, 154, 71, 0.72);
    border-top-left-radius: 220px;
    border-bottom-left-radius: 220px;
    pointer-events: none;
  }

  .portrait-shell::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: clamp(70px, 7vw, 92px);
    background: linear-gradient(to right, var(--cream-2) 0 55%, rgba(255, 250, 243, 0.84) 78%, transparent 100%);
    pointer-events: none;
  }

  .portrait-frame {
    position: absolute;
    inset: 0 0 0 28px;
    overflow: hidden;
    border-top-left-radius: 240px;
    border-bottom-left-radius: 240px;
    background: #eee2d2;
  }

  .portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% 34%;
  }
}

@media (min-width: 1440px) {
  .content-panel {
    padding-left: 86px;
  }

  .portrait-shell::before {
    left: 18px;
  }

  .portrait-frame {
    left: 34px;
  }

  .portrait-frame img {
    object-position: 55% 32%;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding: 12px;
  }

  .content-panel {
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    white-space: normal;
  }

  .confirmation-card {
    grid-template-columns: auto 1fr;
  }

  .primary-button {
    min-height: 66px;
    padding-inline: 16px;
  }
}
