/* Local rendering fixups for the saved Electro template.
   The page was authored for a ~500px design column. On desktop it is
   centered; on narrower phone screens it is scaled down to fit while
   keeping the exact layout (scale applied via JS zoom). */

html,
body {
  margin: 0;
  overflow-x: clip;
  background: #ffffff;
}

#recreate-wrap {
  width: 500px;
  margin: 0 auto;
}

#recreate-wrap .screen,
#recreate-wrap .background {
  /* clip не создаёт scroll-context (в отличие от hidden), поэтому
     touch-скролл страницы не перехватывается этими блоками */
  overflow-x: clip;
}

/* Center the couple's names on the cover (the original box floats left
   with content width, leaving them slightly off-center). */
#mymain .element_txt .moveBox:has([action="text10"]) {
  float: none !important;
  width: 100% !important;
  left: 0 !important;
}

/* ---- Removed blocks (per request) ---- */
#palitra,
#money,
#map,
#gmap,
.fullBox:has([customname="map"]),
#agree,
#comment,
.commentBox,
#textAgree,
#menu,
#ad2cal {
  display: none !important;
}

/* ---- Hide leftover constructor/editor controls ---- */
.addsBoxInside,
.customElements,
.repeatControl,
.opros-add-btn,
.tt-tier-badge {
  display: none !important;
}

/* ---- Buttons: make the whole button area clickable ---- */
.guestAgree,
.adtc .atcb-link,
.addComment,
.commentBox .sendComment,
.rsvp-submit {
  cursor: pointer;
}

.guestAgree *,
.adtc .atcb-link *,
.addComment * {
  pointer-events: none !important;
}

/* ---- Opros checkbox visual state ---- */
#opros #weddingOpros .form-check-label i.fa-check-circle {
  color: #c17c8c;
}

/* ---- Guest names block (added near the questions) ---- */
.rsvp-names {
  max-width: 360px;
  margin: 6px auto 18px;
  padding: 0 16px;
  text-align: center;
}

.rsvp-names__label {
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 16pt;
  color: #000;
  margin-bottom: 12px;
}

.rsvp-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 10px;
}

.rsvp-name-input {
  flex: 1 1 auto;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(193, 124, 140, 0.5);
  border-radius: 200px;
  background: rgba(255, 255, 255, 0.75);
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 13pt;
  color: #4a3a40;
  outline: none;
  text-align: center;
  box-sizing: border-box;
}

.rsvp-name-input:focus {
  border-color: #c17c8c;
}

.rsvp-name-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(193, 124, 140, 0.12);
  color: #c17c8c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.rsvp-name-add {
  display: inline-block;
  margin-top: 2px;
  padding: 7px 18px;
  border: 1px dashed rgba(193, 124, 140, 0.6);
  border-radius: 200px;
  background: transparent;
  color: #c17c8c;
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 12pt;
  cursor: pointer;
}

/* ---- Single submit button ---- */
.rsvp-submit {
  display: block;
  width: calc(100% - 48px);
  max-width: 320px;
  margin: 10px auto 6px;
  padding: 13px 24px;
  border: none;
  border-radius: 200px;
  background: #c17c8c;
  color: #fff;
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 15pt;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(193, 124, 140, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.rsvp-submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

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

.rsvp-submit[disabled] {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.rsvp-status {
  text-align: center;
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 13pt;
  margin: 8px auto 0;
  max-width: 340px;
  min-height: 20px;
}

.rsvp-status--ok {
  color: #5a8a5a;
}

.rsvp-status--err {
  color: #c0392b;
}

/* ---- In-form message to the couple ---- */
.rsvp-message {
  max-width: 360px;
  margin: 8px auto 4px;
  padding: 0 16px;
  text-align: center;
}

.rsvp-message__label {
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 14pt;
  color: #000;
  margin-bottom: 8px;
}

.rsvp-message textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid rgba(193, 124, 140, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 13pt;
  color: #4a3a40;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.rsvp-message textarea:focus {
  border-color: #c17c8c;
}

/* ---- Thank-you plaque shown after submitting ---- */
.rsvp-thanks {
  display: none;
  max-width: 380px;
  margin: 16px auto;
  padding: 22px 20px;
  border-radius: 16px;
  background: #dff0d8;
  color: #3c763d;
  text-align: center;
  font-family: CormorantInfant-Regular, Georgia, serif;
}

.rsvp-thanks .ic-hands-up {
  display: inline-block;
  margin-bottom: 8px;
}

.rsvp-thanks__text {
  font-size: 15pt;
  line-height: 1.45;
}

/* ---- Footer note (replaces Weddingpost branding) ---- */
#footer .footer-note {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 22px;
  font-family: CormorantInfant-Regular, Georgia, serif;
  font-size: 13pt;
  line-height: 1.55;
  color: #4a3a40;
  text-align: center;
}

#footer .footer-note a {
  color: #c17c8c;
  text-decoration: none;
}

#footer .footer-note a:hover {
  text-decoration: underline;
}

#footer .footer-note__lead {
  margin: 0 0 18px;
}

#footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#footer .footer-contact__role {
  font-size: 14pt;
  color: #c17c8c;
  margin-bottom: 4px;
}

/* Yandex map snapshot has a fixed pixel width; keep it inside the column. */
#map ymaps {
  max-width: 100% !important;
}
