/* Estabilização para Safari */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #dfb3b5;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.invitation-card {
  background-color: #dfb3b5;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  box-sizing: border-box;
}

.invitation-card.reveal {
  opacity: 1 !important;
  filter: blur(0) !important;
}

/* --- LADO ESQUERDO (VERTICAL) --- */
.vertical-element-container {
  position: absolute;
  left: 8%;
  bottom: 5%;
  height: 90%;
  width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  pointer-events: none;
  z-index: 10;
}

.cross {
  width: 3px;
  height: 188px;
  background-color: #ffffff;
  position: relative;
  border-radius: 1px;
  margin-bottom: 109px;
  z-index: 2;
}

.cross-bar {
  width: 70px;
  height: 3px;
  background-color: #ffffff;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.batismo {
  font-family: "Allura", cursive;
  font-size: 130px;
  line-height: 1;
  padding: 0;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
  display: inline-block;
  white-space: nowrap;
  margin-left: 12px;
  -webkit-clip-path: inset(-15px 4px 0px 0px);
  clip-path: inset(-15px 4px 0px 0px);
}

/* --- LADO DIREITO (DETALHES) --- */
.details-container {
  position: absolute;
  right: 8%;
  bottom: 5%;
  width: 84%; /* Aumentado para permitir que o texto de baixo use a largura toda */
  text-align: right;
  color: #ffffff;
  letter-spacing: 1.5px;
  box-sizing: border-box;
}

/* Esta classe protege o conteúdo superior para não bater na cruz */
.top-content {
  padding-left: 22%;
}

.details-container h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 20px 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.2;
}

.details-container p {
  margin: 0 0 15px 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  text-transform: uppercase;
}

.highlight {
  font-weight: 500 !important;
}
.small-text {
  font-size: 9px;
  opacity: 0.9;
}
.section-title {
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 2px !important;
  opacity: 0.8;
}

.clickable-location {
  cursor: pointer;
  margin-bottom: 15px;
  -webkit-tap-highlight-color: transparent;
}
.location-name {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  display: inline-block;
  padding-bottom: 2px;
}
.arrow {
  font-size: 7px;
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.hidden-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}
.hidden-details.open {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}

.map-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.whatsapp-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* Estilo para a confirmação (sem o padding largo da esquerda) */
.confirmation-footer {
  margin-top: 30px;
  padding-left: 0;
}

/* Responsividade Extrema */
@media (max-width: 480px) {
  .invitation-card {
    height: 100dvh !important;
    max-width: 100%;
    box-shadow: none;
  }
}

@media (max-height: 720px), (max-width: 409px) {
  .batismo {
    font-size: 100px;
    margin-left: 10px;
  }
  .cross {
    height: 140px;
    margin-bottom: 82px;
  }
  .details-container h1 {
    font-size: 22px;
    margin: 15px 0;
  }
  .details-container p {
    margin: 0 0 10px 0;
    font-size: 10px;
  }
  .top-content {
    padding-left: 25%;
  }
}
