/* Original artwork and typography are in design.css and index.html. */
[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  background: #fff;
}

body {
  box-sizing: border-box;
  min-width: 1064px;
  padding: 48px 32px;
  overflow: visible;
}

#wedding {
  --design-width: 1351px;
  --content-scale: calc(1000 / 1351);
  width: 1000px;
  margin-inline: auto;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

#wedding section {
  position: relative;
  overflow: hidden;
}

#wedding section > div {
  width: var(--design-width);
  margin-inline: auto;
  zoom: var(--content-scale);
}

/* Extend the original canvases without stretching their artwork. */
.expanded-section :is(._8jGYJw, .onhyOQ, .GDnEHQ, ._mXnjA) {
  height: var(--section-height) !important;
}

/* Shift the photo, bow, and sparkles together from the original photo center. */
:is(#LBk9w7x6SrKgJMnx, #LBswTHTvLJM55Bf2, #LBwSDQDyj6KBy9JQ, #LBX4sx7mvFZPTgYP) {
  translate: 0 calc(var(--section-height) / 2 - 398.6255px);
}

/* Keep the map marker, flight path, and plane aligned with the centered map. */
:is(#LB98TLFnLptswSGT, #LBRWStV2ZfgHcXnZ, #LBYmQ22gtHMxFXgX, #LBRK1d8c2tw3L9hZ) {
  translate: 0 calc(var(--section-height) / 2 - 301.4041px);
}

/* Balance the details heading and body as one text block. */
:is(#LBdkQVGDh38GKMpl, #LBQC3y3DmzVQFKMz) {
  translate: 0 40.76px;
}


/* Equal-sized corner artwork with matching visible edge insets. */
.corner-decoration {
  position: absolute;
  width: 330px;
  height: 330px;
  pointer-events: none;
}

.corner-decoration img {
  display: block;
  width: 100%;
  height: 100%;
}

.corner-decoration--start {
  top: 60px;
  left: 60px;
  transform: scaleY(-1);
}

.corner-decoration--end {
  right: 60px;
  bottom: 60px;
  transform: scaleX(-1);
}

/* Center the visible gifts text rather than its trailing blank lines. */
:is(#LBdKCPhtgY68wNp3, #LBr8pQd6MDdnYDbh) {
  translate: 0 60px;
}

/* Align the curved caption and illustration with the closing text axis. */
:is(#LBxrTJydrV2WW818, #LBzm1rqx7pxg7xCL) {
  translate: 27.026px -8px;
}

:is(#LB5CDTY4psHbdtnc, #LBfwh9DhtRqchGVV) {
  translate: 0 -8px;
}
.section-copy {
  font-family: YAFdJkVWBPo_0, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.section-copy p {
  margin: 0 0 22px;
}

.section-copy h3 {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section-copy > :last-child {
  margin-bottom: 0;
}

/* RSVP Form & Interactive Elements */
#PBKQYdRSpMVnwlxg ._mXnjA {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  box-sizing: border-box !important;
  padding: 30px 20px !important;
}

#PBKQYdRSpMVnwlxg ._6t4CHA {
  position: absolute !important;
  inset: 0 !important;
}

#PBKQYdRSpMVnwlxg .WyoGFw,
#PBKQYdRSpMVnwlxg .QhExXw {
  display: none !important;
}

#PBKQYdRSpMVnwlxg #LB4M93pg3smCJvYm {
  position: static !important;
  transform: none !important;
  width: 362px !important;
  height: 60px !important;
  order: 1 !important;
  z-index: 2;
  margin: 0 !important;
}

#PBKQYdRSpMVnwlxg #LBbv9sMj4wwJYMyL {
  position: static !important;
  transform: none !important;
  contain: none !important;
  width: 620px !important;
  max-width: 90% !important;
  height: auto !important;
  order: 2 !important;
  z-index: 2;
  margin: 0 !important;
}

#PBKQYdRSpMVnwlxg #LBbv9sMj4wwJYMyL > div {
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

#PBKQYdRSpMVnwlxg .S3wQqg {
  opacity: 1 !important;
  width: 100% !important;
  height: auto !important;
}

#PBKQYdRSpMVnwlxg .uqhtBg {
  width: 100% !important;
  height: auto !important;
}

.rsvp-card {
  box-sizing: border-box;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 38px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #2b2b2b;
  font-family: YAFdJkVWBPo_0, system-ui, -apple-system, sans-serif;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsvp-form[hidden] {
  display: none !important;
}

.rsvp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rsvp-label {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.02em;
}

.rsvp-required {
  color: #b33939;
  font-weight: bold;
}

.rsvp-hint {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #717171;
  margin-top: 2px;
}

.rsvp-input,
.rsvp-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5cfc0;
  border-radius: 8px;
  background-color: #faf9f5;
  color: #222222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  background-color: #ffffff;
  border-color: #75752f;
  box-shadow: 0 0 0 3px rgba(117, 117, 47, 0.2);
  outline: none;
}

.rsvp-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}

/* Attendance Choice Tiles */
.rsvp-attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rsvp-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid #dcd7c9;
  border-radius: 10px;
  background: #faf9f5;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rsvp-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #a39c89;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #ffffff;
}

.rsvp-radio-card input[type="radio"]:checked ~ .rsvp-radio-custom {
  border-color: #75752f;
  background-color: #75752f;
}

.rsvp-radio-custom::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: none;
}

.rsvp-radio-card input[type="radio"]:checked ~ .rsvp-radio-custom::after {
  display: block;
}

.rsvp-radio-card:has(input[type="radio"]:checked) {
  border-color: #75752f;
  background-color: #f5f6ed;
  box-shadow: 0 2px 8px rgba(117, 117, 47, 0.15);
}

.rsvp-radio-card:hover {
  border-color: #75752f;
}

.rsvp-radio-text {
  display: flex;
  flex-direction: column;
}

.rsvp-radio-text strong {
  font-size: 15px;
  color: #2e2e2e;
}

.rsvp-radio-text small {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #666666;
  margin-top: 2px;
}

/* Pre-filled Guest Attending Checkboxes */
.rsvp-party-header {
  margin-bottom: 4px;
}

.rsvp-party-title {
  margin: 0 0 4px;
  font-size: 24px;
  color: #2b2b2b;
}

.rsvp-party-subtitle {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #666666;
}

.rsvp-guest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.rsvp-guest-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid #dcd7c9;
  border-radius: 10px;
  background: #faf9f5;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rsvp-guest-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #a39c89;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #ffffff;
}

.rsvp-checkbox-custom::after {
  content: "";
  display: none;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.rsvp-guest-item input[type="checkbox"]:checked ~ .rsvp-checkbox-custom {
  border-color: #75752f;
  background-color: #75752f;
}

.rsvp-guest-item input[type="checkbox"]:checked ~ .rsvp-checkbox-custom::after {
  display: block;
}

.rsvp-guest-item:has(input[type="checkbox"]:checked) {
  border-color: #75752f;
  background-color: #f5f6ed;
}

.rsvp-guest-name {
  font-size: 17px;
  font-weight: 500;
  color: #2b2b2b;
}

.rsvp-guest-item.is-disabled,
.rsvp-guest-item:has(input[type="checkbox"]:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1eee8;
  border-color: #e0dcd2;
}

.rsvp-guest-item:has(input[type="checkbox"]:disabled) .rsvp-guest-name {
  color: #777777;
  text-decoration: line-through;
}

/* RSVP Placeholder on Main Index & Prompts */
.rsvp-placeholder-card {
  text-align: center;
}

.rsvp-placeholder-title {
  margin: 0 0 10px;
  font-size: 26px;
  color: #2b2b2b;
}

.rsvp-placeholder-text {
  margin: 0 0 22px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #555555;
  line-height: 1.5;
}

.rsvp-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.rsvp-lookup-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.rsvp-code-input {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 18px;
  text-align: center;
  max-width: 280px;
}

.rsvp-lookup-btn {
  white-space: nowrap;
  width: auto !important;
  padding: 12px 24px;
}

.rsvp-placeholder-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #666666;
}

.rsvp-placeholder-hint {
  font-weight: 500;
}

.rsvp-sample-link {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f5f6ed;
  border: 1px solid #75752f;
  color: #75752f;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.rsvp-sample-link:hover {
  background-color: #75752f;
  color: #ffffff;
}

.rsvp-code-prompt {
  text-align: center;
}

.rsvp-code-prompt[hidden] {
  display: none !important;
}

.rsvp-prompt-title {
  margin: 0 0 8px;
  font-size: 24px;
  color: #2b2b2b;
}

.rsvp-prompt-text {
  margin: 0 0 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: #555555;
}

/* Status Message */
.rsvp-status-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.rsvp-status-message.error {
  display: block;
  background-color: #fdf2f2;
  color: #b33939;
  border: 1px solid #f8b4b4;
}

.rsvp-status-message.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Submit Button */
.rsvp-submit-wrap {
  margin-top: 6px;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 14px 28px;
  background-color: #75752f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: YAFdJkVWBPo_0, sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(117, 117, 47, 0.25);
}

.rsvp-submit-btn:hover:not(:disabled) {
  background-color: #616124;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(117, 117, 47, 0.35);
}

.rsvp-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.rsvp-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success Card */
.rsvp-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px;
}

.rsvp-success-card[hidden] {
  display: none !important;
}

.rsvp-success-icon {
  width: 60px;
  height: 60px;
  background-color: #75752f;
  color: #ffffff;
  font-size: 32px;
  line-height: 60px;
  border-radius: 50%;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-success-title {
  margin: 0;
  font-size: 26px;
  color: #2b2b2b;
}

.rsvp-success-text {
  margin: 0 0 24px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
  max-width: 400px;
}

.rsvp-secondary-btn {
  background: transparent;
  border: 1.5px solid #75752f;
  color: #75752f;
  font-family: YAFdJkVWBPo_0, sans-serif;
  font-size: 16px;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-secondary-btn:hover {
  background: #f5f6ed;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
