/* Mobile-first RSVP form. Retains the existing watercolor/transparent info card. */
#panel-reply .rsvp-card{width:min(92vw,450px);max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:23px 21px 28px;}
#panel-reply .rsvp-card .subhead{margin:3px 0 13px;}
#panel-reply .rsvp-intro{font-size:12px;line-height:1.7;text-align:center;margin:0 0 21px;color:#74635b;}
.rsvp-form{display:flex;flex-direction:column;gap:9px;}
.rsvp-fieldset{border:0;padding:0;margin:0 0 8px;min-width:0;}
.rsvp-label{display:block;font-size:12px;line-height:1.5;color:#63534b;margin:7px 0 5px;}
.rsvp-label em,.rsvp-consent em{font:normal 10px sans-serif;color:#ae756c;}
.rsvp-label small{font-size:10px;color:#97867c;}
.rsvp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.rsvp-choice{display:block;position:relative;cursor:pointer;min-width:0;}
.rsvp-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.rsvp-choice span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:68px;padding:8px 5px;border:1px solid #d3c2b4;border-radius:12px;background:rgba(255,251,243,.74);text-align:center;color:#65564d;font-size:12px;transition:background .2s,border-color .2s;}
.rsvp-choice b{font-weight:400;font-size:12px;}
.rsvp-choice small{font-size:10px;color:#958078;}
.rsvp-choice input:checked+span{border-color:#b67f79;background:rgba(250,228,217,.9);box-shadow:inset 0 0 0 1px #b67f79;}
.rsvp-choice input:focus-visible+span{outline:2px solid #8a6663;outline-offset:3px;}
.rsvp-choices--small .rsvp-choice span{min-height:42px;}
.rsvp-input{width:100%;display:block;min-height:42px;padding:11px 12px;border:1px solid #d4c6b9;border-radius:9px;background:rgba(255,252,246,.86);font:13px "Cafe24Gowoonbam","Malgun Gothic",sans-serif;color:#4e403b;box-sizing:border-box;}
.rsvp-input::placeholder{color:#a29185;}
.rsvp-input:focus{outline:2px solid #ac8278;outline-offset:1px;}
.rsvp-textarea{min-height:79px;resize:vertical;line-height:1.6;}
.rsvp-control{margin:2px 0 4px;}
.rsvp-control[hidden]{display:none;}
.rsvp-privacy{font-size:11px;margin:9px 0 4px;color:#71645b;}
.rsvp-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.6;cursor:pointer;}
.rsvp-consent input{margin-top:4px;accent-color:#ae7970;}
.rsvp-privacy details{margin:6px 0 0 24px;font-size:10px;color:#8a7d74;line-height:1.7;}
.rsvp-privacy details summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.rsvp-privacy details p{margin:6px 0;padding:7px 9px;background:rgba(251,247,237,.67);border-radius:6px;}
.rsvp-footer{margin:7px 0 0;}
.rsvp-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:47px;border:0;border-radius:12px;background:#977266;color:#fffdf5;font-size:14px;box-shadow:0 4px 11px rgba(66,46,38,.17);cursor:pointer;}
.rsvp-submit:disabled{cursor:not-allowed;opacity:.52;}
.rsvp-status{margin:9px 0 0;text-align:center;color:#88766c;font-size:11px;line-height:1.6;min-height:15px;}
.rsvp-status.is-error{color:#a54f49;}
.rsvp-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;}
.rsvp-success{text-align:center;padding:28px 9px;color:#6d514c;}
.rsvp-success[hidden]{display:none;}
.rsvp-success>span{font-size:38px;}
.rsvp-success h3{font-size:21px;font-weight:400;margin:8px 0 5px;}
.rsvp-success p{font-size:13px;line-height:1.9;margin:8px 0 0;}
@media(max-width:350px){#panel-reply .rsvp-card{padding:18px 14px;}#panel-reply .rsvp-choices{gap:5px;}}
@media(prefers-reduced-motion:reduce){.rsvp-choice span{transition:none;}}

/* HTML hidden attribute must win against form display:flex. */
.rsvp-form[hidden]{display:none!important;}


/* Align gallery/reply POSTMARK and headline origins with Location. */
#panel-gallery .info-card,
#panel-reply .rsvp-card {
  padding-top:22px;
  padding-left:20px;
  padding-right:20px;
}

/* Keep all three card header origins aligned on narrow phones. */
@media(max-width:350px) {
  #panel-gallery .info-card,
  #panel-reply .rsvp-card {
    padding-top:18px;
    padding-left:14px;
    padding-right:14px;
  }
}


/* Ivory RSVP reading surface: begins at attendance choices. */
#panel-reply .rsvp-form {
  width:100%;
  padding:16px 14px 18px;
  border:1px solid rgba(173,143,127,.32);
  border-radius:12px;
  background:rgba(255,253,248,.97);
  box-shadow:0 5px 15px rgba(64,48,38,.09);
}
#panel-reply .rsvp-form .rsvp-label {
  color:#574a43;
}
#panel-reply .rsvp-form .rsvp-privacy,
#panel-reply .rsvp-form .rsvp-status {
  color:#695b52;
}
#panel-reply .rsvp-form .rsvp-status.is-error {
  color:#a54f49;
}
#panel-reply .rsvp-success {
  border:1px solid rgba(173,143,127,.32);
  border-radius:12px;
  background:rgba(255,253,248,.97);
}
@media(max-width:350px) {
  #panel-reply .rsvp-form {padding:13px 10px 15px;}
}

/* Match gallery and RSVP scrollbar to Location's warm brown scrollbar. */
#panel-gallery .info-card,
#panel-reply .rsvp-card {
  scrollbar-width:thin;
  scrollbar-color:#c7b3a7 transparent;
}
#panel-gallery .info-card::-webkit-scrollbar,
#panel-reply .rsvp-card::-webkit-scrollbar {width:6px;}
#panel-gallery .info-card::-webkit-scrollbar-thumb,
#panel-reply .rsvp-card::-webkit-scrollbar-thumb {
  background:#c7b3a7;
  border-radius:999px;
}
#panel-gallery .info-card::-webkit-scrollbar-track,
#panel-reply .rsvp-card::-webkit-scrollbar-track {background:transparent;}
