/* Modern CSS Reset & Custom Fonts */
@font-face {
  font-family: 'EuropaGro';
  src: url('/fonts/EuropaGroNr2SHOP-Bol 2.otf') format('opentype'),
       url('../fonts/EuropaGroNr2SHOP-Bol 2.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 1. Full 100% Screen Width Display Edge-to-Edge */
body {
  background-color: #030305;
  background-image: url('/images/fondo.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #ffffff;
  font-family: 'EuropaGro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

.landing-canvas {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Outer Main Content Wrapper for Form & Headline */
.main-content {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2 & 3 & 4. Top Header Block: 35px top margin, 150% logo size, 15px bottom margin to date line */
header.brand-header {
  width: 360px;
  max-width: 90vw;
  text-align: center;
  margin: 35px auto 0 auto; /* 35px margin top */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-header {
  width: 360px; /* Scaled logo size matching event details line */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto; /* 15px margin bottom to text line */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.event-details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.event-details span.separator {
  color: #1DB954;
  margin: 0 2px;
}

/* 5. Hero Spacer: Fluid height scaling with viewport width to keep text strictly below band members on ALL screen sizes (small window & 1920px full screen) */
.hero-spacer {
  width: 100%;
  height: calc(52vw - 40px);
  min-height: 220px;
}

/* Headline starting directly below the band photo */
.main-title {
  font-family: 'EuropaGro', sans-serif;
  font-size: 34px;
  line-height: 1.16;
  font-weight: bold;
  text-align: left;
  width: 100%;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
  .landing-canvas {
    padding: 0 16px 40px 16px;
  }

  header.brand-header {
    width: 280px; /* 80% of desktop size */
    max-width: 86vw;
    margin: 25px auto 0 auto;
  }

  .logo-header {
    width: 280px;
    margin: 0 auto 10px auto;
  }

  .event-details {
    font-size: 9.2px;
    letter-spacing: 0.1px;
  }

  .main-title {
    font-size: 22px;
    line-height: 1.22;
    margin-bottom: 18px;
  }
}

@media (max-width: 360px) {
  header.brand-header {
    width: 245px;
    max-width: 88vw;
  }

  .logo-header {
    width: 245px;
  }

  .event-details {
    font-size: 8px;
  }

  .main-title {
    font-size: 19px;
  }
}

/* 8. Rainbow Line Dividers */
.rainbow-line {
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #FF6B00 0%, #E52E71 25%, #9B51E0 50%, #2F80ED 75%, #1DB954 100%);
  border-radius: 2px;
  margin: 20px 0;
  opacity: 0.95;
}

/* 6. Registration Form */
.registration-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100%;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 16px 20px;
  font-family: 'EuropaGro', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.25s ease-in-out;
  backdrop-filter: blur(4px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-family: 'EuropaGro', -apple-system, sans-serif;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

input[type="date"].form-input {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 16px 10px 16px 16px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  margin-left: 4px;
  padding: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #1DB954;
  background: rgba(20, 20, 26, 0.9);
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.35), inset 0 0 4px rgba(29, 185, 84, 0.2);
}

.input-error-msg {
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  font-weight: normal;
  text-transform: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
}

.form-group.has-error .input-error-msg {
  display: block;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background-color: #1DB954;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 18px 24px;
  font-family: 'EuropaGro', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.35);
}

.btn-submit:hover {
  background-color: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 185, 84, 0.55);
}

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

.btn-submit:disabled {
  background-color: #333333;
  color: #777777;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 7. Footer Section */
footer.brand-footer {
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding-bottom: 20px;
}

.logo-footer {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-footer:hover {
  opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #141418;
  border: 1px solid rgba(29, 185, 84, 0.4);
  border-radius: 12px;
  padding: 36px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(29, 185, 84, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(29, 185, 84, 0.15);
  border: 2px solid #1DB954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: #1DB954;
}

.modal-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: #ffffff;
}

.modal-message {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: normal;
}

.btn-modal-close {
  background-color: #1DB954;
  color: #000;
  border: none;
  padding: 12px 28px;
  font-family: 'EuropaGro', sans-serif;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background-color: #1ed760;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.4);
}
