/*!
 * Wedding Layout - Common Styles
 * Shared styles for both desktop and mobile
 */

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fixed background container for all platforms including iOS Safari */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/background.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  background-color: #ffffff;
  z-index: -1;
}

body.modal-open { 
  overflow: hidden; 
}

/* Main content container */
#mainContent {
  position: relative;
  z-index: 15;
}

/* Hide scrollbars for modals */
#rsvpModal::-webkit-scrollbar,
#infoPanel::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

#rsvpModal, #infoPanel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Token Form Styling */
#tokenForm input[type="text"] {
  padding: 15px 20px;
  border: 2px solid rgba(231, 213, 213, 0.3);
  color: #e7d5d5;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  width: 280px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  outline: none;
}

#tokenForm input[type="text"]:focus {
  border-color: rgba(231, 213, 213, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#tokenForm input[type="text"]::placeholder {
  color: rgba(231, 213, 213, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#tokenForm button[type="submit"] {
  padding: 15px 30px;
  border: 2px solid rgba(231, 213, 213, 0.3);
  color: #e7d5d5;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 140px;
  transition: all 0.3s ease;
  outline: none;
}

#tokenForm button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(231, 213, 213, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#tokenForm button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* RSVP Form Styling */
#rsvpForm label {
  display: block;
  margin-bottom: 20px;
  color: #e7d5d5;
  font-weight: 500;
  text-align: left;
}

#rsvpForm select,
#rsvpForm input[type="text"],
#rsvpForm textarea {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid rgba(231, 213, 213, 0.3);
  color: #e7d5d5;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  margin-top: 8px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

#rsvpForm select:focus,
#rsvpForm input[type="text"]:focus,
#rsvpForm textarea:focus {
  border-color: rgba(231, 213, 213, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#rsvpForm select option {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 10px;
}

#rsvpForm input[type="text"]::placeholder,
#rsvpForm textarea::placeholder {
  color: rgba(231, 213, 213, 0.6);
}

#rsvpForm textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

#rsvpForm button[type="submit"] {
  width: 100%;
  padding: 15px 30px;
  border: 2px solid rgba(231, 213, 213, 0.3);
  color: #e7d5d5;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  transition: all 0.3s ease;
  outline: none;
}

#rsvpForm button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(231, 213, 213, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#rsvpForm button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Companion inputs styling */
#companionInputs input[type="text"] {
  margin-bottom: 10px;
}

/* Error and success messages */
#rsvpError,
#rsvpSuccess {
  padding: 12px 20px;
  border-radius: 10px;
  margin: 15px 0;
  backdrop-filter: blur(10px);
}

#rsvpError {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ffcccb;
}

#rsvpSuccess {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #90ee90;
}

/* Guest info section styling */
#guestInfo {
  text-align: left;
  margin-bottom: 25px;
  padding: 20px;
  background: transparent;
  border-radius: 15px;
  border: none;
}

#guestInfo h3 {
  margin: 0 0 10px 0;
  color: #e7d5d5;
  font-size: 1.2rem;
}

#guestInfo p {
  margin: 0;
  color: rgba(231, 213, 213, 0.8);
  font-size: 0.95rem;
}

/* Info Panel content styling */
#infoPanel header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  text-align: center;
}

#infoPanel h2 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

.info-content {
  color: white;
}

.info-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-section h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.info-section p {
  color: white;
  margin: 8px 0;
  line-height: 1.5;
}

.info-section strong {
  color: white;
  font-weight: 600;
}

.info-detail {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
}

.info-note {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 15px !important;
}

.accommodation-group {
  margin: 15px 0;
}

.accommodation-group h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 8px 0;
}

.hotel-item {
  margin: 10px 0;
}

.info-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-section a:hover {
  color: white;
}

.iban-code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 10px 0;
  backdrop-filter: blur(10px);
}

/* Common animations */
@keyframes namesEnter {
  0% {
    top: 50vh;
    transform: translateX(-50%) translateY(-50%) scale(1.2);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes noivosEnter {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Loading states */
body:not(.loaded) #names,
body:not(.loaded) #noivos,
body:not(.loaded) #simvaiacontecer {
  animation-play-state: paused;
}

body.loaded #names,
body.loaded #noivos,
body.loaded #simvaiacontecer {
  animation-play-state: running;
}