/* ===== RSVP PAGE ===== */

/* layout fix (override global styles) */
body {
  padding: 20px;
  display: block;
  /* 🔥 rompe el flex global */
}

/* container */
#content {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  text-align: center;
}

.bold {
  font-weight: bold;
}

/* HERO */
.hero-image {
  width: 66%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

/* TITLE (propio, NO usar .title global) */
#content h1 {
  font-family: 'Times New Roman', serif;
  font-size: 23px;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

/* TEXT BLOCK */
.preview-info {
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}

/* ===== FORM ===== */

form#rsvpForm {
  padding-bottom: 20px;
}

/* labels */
label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 25px;
  margin-bottom: 6px;
}

/* inputs */
input,
select,
textarea {
  width: 92%;
  margin: 0 auto;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  background: transparent;
  font-size: 14px;
  outline: none;
  display: block;
}

/* select custom */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  padding-right: 22px;
}

textarea {
  resize: none;
}

/* ===== GUEST BLOCK ===== */

.guest-block {
  margin: 40px 0;
  padding: 25px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s ease;
}

.guest-block.active {
  opacity: 1;
  transform: translateY(0);
}

/* remove guest */
.remove-btn {
  font-size: 10px;
  margin-top: 10px;
  cursor: pointer;
  opacity: 0.6;
}

.remove-btn:hover {
  opacity: 1;
}

/* ===== BUTTONS ===== */

/* wrapper para los botones */
.form-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* secundario (agregar) */
.button-secondary {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  border-bottom: 1px solid #aaa;
  color: #666;

  background: none;
  border-top: none;
  border-left: none;
  border-right: none;

  cursor: pointer;
  padding-bottom: 3px;
  transition: 0.2s;
}

.button-secondary:hover {
  color: #111;
  border-color: #111;
}

/* principal (confirmar) */
.button-primary {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;

  padding: 12px 26px;

  border: 1px solid #111;
  background: transparent;

  cursor: pointer;

  transition: all 0.25s ease;
}

.button-primary:hover {
  background: #111;
  color: #fff;
}

/* ===== COUNTER ===== */

.counter {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 20px;
  color: gray;
}

/* ===== SUCCESS ===== */

.content-wrapper.hidden-state {
  display: none;
}

.success-message {
  display: none;
  min-height: 50vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.success-message.active {
  display: flex;
}

.success-message h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.success-sub {
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-size: 18px;
  margin: 10px 0 40px;
}

/* arrow */
.success-arrow img {
  width: 120px;
  opacity: 0.7;
  transition: 0.3s;
}

.success-arrow img:hover {
  opacity: 1;
  transform: translateX(-6px);
}

/* ===== TOP BUTTON ===== */

.top-button {
  position: fixed;
  bottom: 15px;
  right: 0;
  height: 100px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.top-button.visible {
  opacity: 0.85;
  transform: translateY(0);
}