.certificate__body .full-row { display: block; }
.certificate__body .full-row > span { display: inline; margin-right: 4px; }
/* Fonts and base */
:root {
  --rose: #e89aa9;
  --rose-deep: #d07086;
  --gold: #c7a76c;
  --ink: #2f2b3a;
  --paper: #f9f6f2;
  --light: #fff9fb;
  --shadow: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--light), #ffffff);
  font-family: 'Montserrat', 'Noto Serif SC', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

.is-hidden { display: none !important; }

.container { width: min(960px, 92%); margin: 0 auto; }

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: url('first.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0; backdrop-filter: blur(2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.35));
}
.hero__content { position: relative; z-index: 1; padding: 2rem; }
.title { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: clamp(28px, 5vw, 48px); margin: 0 0 8px; }
.subtitle { margin: 0 0 20px; color: #555; }

.personalize {
  display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start;
  background: rgba(255,255,255,0.7); border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px var(--shadow);
  width: 86vw; margin: 0 auto;
}
.personalize .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: grid; grid-template-columns: auto auto; gap: 10px; align-items: center; }
@media (max-width: 840px) {
  /* Force two columns specifically for the actions row on mobile */
  .personalize .form-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px; align-items: center; }
  .personalize .form-actions .btn { width: 100%; white-space: nowrap; }
}
.personalize .form-row > label { display: grid; gap: 6px; }
.personalize label { display: grid; gap: 6px; font-size: 14px; text-align: left; }
.personalize input[type="text"],
.personalize input[type="date"],
.personalize input[type="file"],
.personalize select {
  padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; background: #fff; color: var(--ink);
  width: 74%; box-sizing: border-box;
}
.personalize select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b9b1b6' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  z-index: 10;
  position: relative;
}
.personalize input[type="date"] { font-family: inherit; }
.personalize input[type="file"] { padding: 6px 12px; }
.personalize input[type="file"]::-webkit-file-upload-button,
.personalize input[type="file"]::file-selector-button {
  margin-right: 10px; border: none; background: var(--rose); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px var(--shadow);
}
.personalize input[type="file"]::-webkit-file-upload-button:hover,
.personalize input[type="file"]::file-selector-button:hover { filter: brightness(0.95); }
.personalize .btn { white-space: nowrap; }
.avatar input { background: #fff; }

.invite { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; align-items: center; justify-items: center; text-align: center; background: #fff; padding: 16px; border-radius: 14px; box-shadow: 0 6px 20px var(--shadow); }
.invite.hidden { display: none; }
.invite__avatars { display: flex; gap: 12px; align-items: center; justify-content: center; }
.invite__avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--rose); }
.invite__text { max-width: 100%; }
.invite__text h2 { margin: 0; font-family: 'Noto Serif SC', serif; }
.invite__text p { text-align: center; }
.invite__meta { color: #8a7c88; margin: 4px 0 8px; }
.invite__actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; width: 100%; }

/* Invite styles */
.invite--classic { border: 2px solid var(--gold); background: #fffef8; }
.invite--lace { background: #fff; border: 2px dashed #eadfe3; box-shadow: inset 0 0 0 10px #fff, 0 6px 20px var(--shadow); }
.invite--minimal { background: #ffffff; border-radius: 20px; box-shadow: 0 10px 24px rgba(0,0,0,0.1); }

/* Theme background for invite card */
.invite { position: relative; overflow: hidden; }
.invite::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.78); z-index: 0; }
.invite > * { position: relative; z-index: 1; }
body.theme-garden .invite { background-image: url('qingtie.webp'); background-size: cover; background-position: center; }
body.theme-beach .invite { background-image: url('qingtie.webp'); background-size: cover; background-position: center; }
body.theme-starlit .invite { background-image: url('qingtie.webp'); background-size: cover; background-position: center; }

.music { position: absolute; right: 16px; top: 16px; z-index: 2; }
.icon-btn { border: none; background: #fff; width: 36px; height: 36px; border-radius: 999px; box-shadow: 0 4px 12px var(--shadow); cursor: pointer; font-size: 18px; }

/* Theme variants */
.hero.theme-garden { background-image: url('first.jpg'); }
.hero.theme-beach { background-image: url('first.jpg'); }
.hero.theme-starlit { background-image: url('first.jpg'); }

/* 主题背景图 - 通过JavaScript动态设置 */
.section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
/* Readability scrim only when a section has an inline background-image */
.section[style*="background-image"] { position: relative; }
.section[style*="background-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Subtle top/bottom gradient to improve text contrast without over-tinting */
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 18%, rgba(0,0,0,0.04) 50%, rgba(0,0,0,0.06) 82%, rgba(0,0,0,0.18) 100%);
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* Text legibility on image backgrounds */
.section[style*="background-image"] .narration:not(:empty),
.section[style*="background-image"] .feedback:not(:empty) {
  background: rgba(255,255,255,0.84);
  backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-radius: 14px;
}
/* Headings, paragraphs and choice labels get a thin translucent chip instead of text-shadow */
.section[style*="background-image"] h2:not(:empty),
.section[style*="background-image"] p:not(:empty),
.section[style*="background-image"] .choices__label {
  background: rgba(255,255,255,0.72);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
}

/* Buttons on image backgrounds get stronger shadow */
.section[style*="background-image"] .btn {
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Capture mode: keep readability scrim minimal to preserve result */
body.capture-mode .section[style*="background-image"]::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.04) 20%, rgba(0,0,0,0.04) 80%, rgba(0,0,0,0.12) 100%) !important;
}

/* Soft overlay for readability on sections - only apply to guestbook */
.section { position: relative; }
.section--light#section-guestbook::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.75); pointer-events: none; }
.section > .container { position: relative; z-index: 1; }

/* Capture mode: avoid tainted canvas by removing external backgrounds during export */
body.capture-mode .section { background-image: none !important; background: #ffffff !important; }
/* Export-only tuning: enlarge avatars area for certificate */
body.capture-mode #certificate .avatars-badge { padding: 20px 18px; }
body.capture-mode #certificate .avatars-badge img { width: 110px; height: 130px; object-fit: cover; }
body.capture-mode #certificate .avatars-badge img.overlap { margin-left: -16px; }
/* Ensure no overlays tint the red during export */
/* Keep watermark and badge BG visible during export */
body.capture-mode #certificate::before { display: flex !important; }
/* Ensure overlay badge persists in export */
body.capture-mode #certificate::after { display: block !important; }
body.capture-mode #certificate { background-color: #ffffff !important; border: none !important; }
body.capture-mode #certificate .certificate__body .persons { background: #ffffff !important; }
body.capture-mode #certificate .avatars-badge { background: #b3002d !important; box-shadow: none !important; }
/* Ensure badge renders during export */
body.capture-mode #certificate .certificate__badge { display: block !important; }

/* Timeline */
.timeline { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 10px; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid #f1e9ec; }
.timeline__item { border: 1px solid #f1e9ec; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.timeline__item div { display: block; line-height: 1.2; text-align: center; width: 2em; }
.timeline__item.active { background: var(--rose); color: #fff; border-color: var(--rose); }

/* Slides (horizontal) */
.slides { width: 100%; overflow: hidden; position: relative; }
.slides__track { display: flex; width: 100%; transition: transform .6s ease; }
.slides__track .section { width: 100%; flex: 0 0 100%; }

/* Sections */
.section { padding: 64px 0; opacity: 1; transform: none; transition: transform .5s ease; }
.section--light { background: var(--light); }
/* Only apply these backgrounds if no background-image is set */
.section--paper:not([style*="background-image"]) { background: var(--paper); }
.section--rose:not([style*="background-image"]) { background: linear-gradient(180deg, #fff0f4, #ffe6ee); }

.narration { font-size: 16px; background: #fff; border-left: 4px solid var(--rose); padding: 12px 14px; border-radius: 8px; box-shadow: 0 4px 12px var(--shadow); }
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--rose);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}
.typewriter-multiline {
  border-right: 2px solid var(--rose);
  white-space: pre-wrap;
  animation: blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--rose); }
}
.scene-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scene-element.visible {
  opacity: 1;
  transform: translateY(0);
}
.scene-element.sequence-1 { order: 1; }
.scene-element.sequence-2 { order: 2; }
.scene-element.sequence-3 { order: 3; }
.scene-element.sequence-4 { order: 4; }
.scene-element.sequence-5 { order: 5; }
.choices { display: grid; gap: 8px; margin: 10px 0; align-items: start; justify-items: start; }
.choices.hidden { display: none; }
.choices .btn { align-self: start; text-align: left; white-space: normal; }
.choices__label { color: #7b6a6f; font-weight: 600; margin-bottom: 4px; }
/* Make label occupy its own row so first option aligns left beneath it */
.choices__label { grid-column: 1 / -1; }
/* Ensure choices don't occupy space until revealed in sequence */
.choices.scene-element:not(.visible) { display: none; }
.feedback { color: #7b6a6f; margin-bottom: 6px; min-height: 1em; padding: 10px 12px; border-radius: 14px; }
.theme-flair {
  margin: 15px 0;
  text-align: left;
}
.flair {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 5px;
  background: linear-gradient(135deg, var(--rose-light), var(--rose));
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  transition: transform 0.2s ease;
}
.flair:hover {
  transform: translateY(-2px);
}
.flair--garden { color: #c85679; }
.flair--beach { color: #3b84a1; }
.flair--starlit { color: #7c5ab8; }

h2 { font-family: 'Noto Serif SC', serif; font-size: clamp(22px, 3.6vw, 34px); margin: 0 0 10px; }
p { line-height: 1.75; color: #4a4654; }
/* Ensure paragraphs and feedback blocks are left aligned in scenes */
.section p, .narration, .feedback { text-align: left; }

.btn { background: var(--rose); color: #fff; border: none; padding: 10px 16px; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 12px var(--shadow); text-align: left; }
/* Keep action buttons centered text */
.personalize .form-actions .btn { text-align: center; }
.btn:hover { background: var(--rose-deep); }
.btn--primary { background: var(--gold); }
.btn--primary:hover { filter: brightness(0.95); }
.next { margin-top: 12px; display: block; margin-left: auto; }

/* Vows */
.vows textarea {
  width: 100%; border: 1px dashed #e7dfe2; background: #fff; border-radius: 10px; padding: 14px; resize: vertical;
}
.vows__toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.vows__label { color: #7b6a6f; font-weight: 600; }
.vows__toolbar select { 
  padding: 8px 10px; 
  border-radius: 10px; 
  border: 1px solid #eee; 
  background: #fff; 
  z-index: 10;
  position: relative;
}
.vows__actions { display: flex; gap: 10px; margin-top: 10px; }
/* Vows text editor with count at bottom-right */
.vows__editor { position: relative; }
.vows__editor textarea { width: 100%; border: 1px dashed #e7dfe2; background: #fff; border-radius: 10px; padding: 14px 14px 26px; resize: vertical; }
.vows__count { position: absolute; right: 10px; bottom: 8px; color: #8a7c88; font-size: 12px; }

/* Rings */
.rings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.hands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hand { display: grid; place-items: center; height: 180px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 2px #f3e7ea; position: relative; background-size: contain; background-repeat: no-repeat; background-position: center; }
.left-hand { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='s' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%23ffe6d5'/><stop offset='1' stop-color='%23ffd1b3'/></linearGradient></defs><rect width='200' height='200' fill='white'/><path d='M60 160c-10-30 0-50 0-80 0-10 10-20 20-20 12 0 18 8 20 20 0-10 8-18 18-18s18 8 18 20c0-10 8-18 18-18s18 8 18 20c0 20-6 32-10 50-2 9-10 18-24 18H88c-12 0-22 4-28 8z' fill='url(%23s)' stroke='%23e5b09a' stroke-width='3' opacity='0.9'/></svg>"); }
.right-hand { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><linearGradient id='s' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%23ffe6d5'/><stop offset='1' stop-color='%23ffd1b3'/></linearGradient></defs><rect width='200' height='200' fill='white'/><g transform='scale(-1,1) translate(-200,0)'><path d='M60 160c-10-30 0-50 0-80 0-10 10-20 20-20 12 0 18 8 20 20 0-10 8-18 18-18s18 8 18 20c0-10 8-18 18-18s18 8 18 20c0 20-6 32-10 50-2 9-10 18-24 18H88c-12 0-22 4-28 8z' fill='url(%23s)' stroke='%23e5b09a' stroke-width='3' opacity='0.9'/></g></svg>"); }
.finger { position: relative; padding: 6px 10px; border: 2px dashed #e7dfe2; border-radius: 12px; color: #8c7f87; }
.ring-pool { display: flex; gap: 10px; justify-content: center; }
.ring { font-size: 28px; cursor: grab; user-select: none; padding: 6px 10px; background: #fff; border-radius: 999px; box-shadow: 0 4px 12px var(--shadow); }
.ring:active { cursor: grabbing; }
.message { margin-top: 10px; color: var(--gold); font-weight: 600; }
.ring-actions { margin-top: 10px; }

/* Gallery */
.uploader { display: flex; gap: 10px; align-items: center; }
.kiss { display: inline-flex; align-items: center; gap: 10px; }
.gallery { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 12px var(--shadow); }
.certificate { 
  margin-top: 16px; 
  background: #fff; 
  border: 2px solid var(--gold); 
  border-radius: 12px; 
  box-shadow: 0 6px 20px var(--shadow); 
  padding: 14px; 
  position: relative;
}
/* Foreground badge overlay to guarantee correct position in export */
.certificate::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 124px;
  width: 140px;
  height: 140px;
  background-image: url('huizhang.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 5;
}
@media (max-width: 480px) {
  .certificate::after { right: 16px; bottom: 124px !important; width: 100px; height: 100px; }
}
.certificate__badge {
  position: absolute;
  right: 20px !important;
  bottom: 60px !important;
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  pointer-events: none;
  z-index: 4;
}
@media (max-width: 480px) {
  .certificate__badge { width: 72px !important; height: 72px !important; bottom: 16px !important; }
}
.certificate::before { 
  content: "LOVE FOREVER"; 
  position: absolute; 
  inset: 0; 
  /* Remove tint/blocks: only keep text watermark */
  background: none; 
  pointer-events: none; 
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 300;
  color: rgba(255, 182, 193, 0.18);
  letter-spacing: 8px;
  transform: rotate(-15deg);
  z-index: 0;
}
.certificate * { box-sizing: border-box; }
.certificate__header { text-align: center; font-family: 'Noto Serif SC', serif; font-weight: 700; color: var(--gold); letter-spacing: 6px; margin-bottom: 8px; }
.certificate__avatars { display: grid; place-items: center; margin-bottom: 10px; }
.avatars-badge { position: relative; background: #b3002d; padding: 12px 18px; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4), 0 6px 16px var(--shadow); text-align: center; }
.avatars-badge img { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 12px var(--shadow); border: 2px solid #fff; }
.avatars-badge img.overlap { position: relative; left: -12px; }
.avatars-badge img:first-child { margin-left: 20px; }
.avatars-badge .cert-controls { display: flex; gap: 10px; margin-top: 10px; justify-content: center; }
.certificate__body { display: grid; gap: 10px; color: #5a4f58; text-align: left; }
.certificate__body .row { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: baseline; }
.certificate__body > .full-row { display: block !important; }
.certificate__body > .full-row > span { display: inline; margin-right: 4px; }
.certificate__body .row--full { display: block !important; }
.certificate__body .row.row--full { display: block !important; }
.certificate__body .row--full > span { display: inline; margin-right: 4px; }
.certificate__body .persons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px; background: #fff; border-radius: 8px; margin-bottom: 10px; }
.certificate__body .person { display: grid; gap: 6px; }
.certificate__body .full-row { display: block !important; padding: 4px 0; border-top: 1px dashed #e7dfe2; }
.certificate__body .full-row:first-of-type { border-top: none; }
.certificate__body .full-row > span { display: inline; margin-right: 6px; }
.certificate__body .full-row .editable { display: inline-block; min-width: 8em; padding: 2px 2px; cursor: text; }
.certificate__body .full-row { margin-left: 13px; }
.certificate__body .row--stack { grid-template-columns: auto 1fr; }
.certificate__body .stack-label { display: inline-grid; grid-auto-rows: min-content; line-height: 1.1; letter-spacing: 1px; }
.certificate .editable { border-bottom: 1px dashed #e7dfe2; min-width: 6em; outline: none; color: #3e3742; }
.certificate .editable:empty:before { content: attr(data-placeholder); color: #a69aa4; }
.certificate__actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.certificate__actions .btn { display: inline-grid; grid-auto-rows: min-content; line-height: 1.1; text-align: center; }
.photo-tools { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 10; }
.lightbox.hidden { display: none; }
.lightbox img { width: min(90vw, 960px); height: auto; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: #fff; font-size: 22px; }

.checklist { margin-top: 16px; background: #fff; padding: 12px; border-radius: 12px; box-shadow: 0 4px 12px var(--shadow); }
.checklist h3 { margin: 0 0 8px; }
.checklist label { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; }
.progress { margin-top: 8px; color: #7b6a6f; }

/* Footer */
.footer { padding: 36px 0; text-align: center; color: #766b76; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; }

/* Modal */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.5); z-index: 20; }
.modal__dialog { width: min(560px, 92vw); background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.modal__dialog h3 { margin: 0 0 8px; font-family: 'Noto Serif SC', serif; }
.modal__dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(47,43,58,0.92); color: #fff; padding: 10px 14px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.2); z-index: 30; max-width: 90vw; text-align: center; font-size: 14px; opacity: 1; transition: opacity .3s ease, transform .3s ease; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }

/* Guest header */
.guest-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-stats { display: inline-flex; align-items: center; gap: 10px; color: #766b76; }

/* Title row with action on the right */
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 相问环节样式 */
.questions-container { max-width: 600px; margin: 0 auto; }
.questions-progress { margin-bottom: 20px; }
.questions-progress .progress-bar { margin-bottom: 8px; }
.questions-progress span { font-size: 14px; color: #666; }

.question-card { 
  background: #fff; 
  border-radius: 12px; 
  padding: 24px; 
  box-shadow: 0 4px 16px var(--shadow); 
  margin-bottom: 20px; 
}
.question-card h3 { 
  color: var(--gold); 
  margin-bottom: 16px; 
  font-size: 18px; 
  text-align: center; 
}
.question-card p { 
  font-size: 16px; 
  line-height: 1.6; 
  margin-bottom: 20px; 
  text-align: center; 
  color: #555; 
}

.question-options { 
  display: grid; 
  gap: 12px; 
}
.question-option { 
  background: #f8f9fa; 
  border: 2px solid #e9ecef; 
  border-radius: 8px; 
  padding: 12px 16px; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  text-align: center; 
}
.question-option:hover { 
  background: #e3f2fd; 
  border-color: var(--rose); 
}
.question-option.selected { 
  background: var(--rose); 
  color: #fff; 
  border-color: var(--rose); 
}

.questions-actions { 
  display: flex; 
  justify-content: space-between; 
  gap: 12px; 
}
.questions-actions .btn { 
  flex: 1; 
  max-width: 120px; 
}

.questions-results { 
  text-align: center; 
  max-width: 560px; 
  margin: 0 auto; 
  position: relative;
  padding: 18px 18px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(120%) blur(4px);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.questions-results::before {
  content: "";
  position: absolute; inset: -1px; border-radius: 16px; pointer-events: none;
  background: linear-gradient(135deg, rgba(199,167,108,0.28), rgba(232,154,169,0.18) 45%, rgba(255,255,255,0) 75%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 1px;
}
.compatibility-score { 
  font-size: 56px; 
  font-weight: 800; 
  color: var(--gold); 
  margin: 10px 0 14px; 
  background: linear-gradient(135deg, #d7b56b 0%, #f1e2b5 45%, #d7b56b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.compatibility-analysis { 
  text-align: left;
  background: rgba(255,255,255,0.9); 
  border-radius: 14px; 
  padding: 18px 16px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.08); 
  border: 1px solid rgba(255,255,255,0.85);
  margin: 14px 0 4px; 
  line-height: 1.75; 
}

/* Responsive */
@media (max-width: 840px) {
  .personalize { grid-template-columns: 1fr; }
  .personalize .form-row { grid-column: 1 / -1; grid-template-columns: 1fr; }
}


