/* Animations for WebflowHomepage */

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Button fade in animation */
.button-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Email box fade in animation */
.email-box-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* Email Box Styles */
.email-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10;
  background: linear-gradient(135deg, #faf8f0 0%, #f5f3e8 50%, #e6ddc4 100%) !important;
  padding: 24px 30px !important;
  border: 3px solid #d4af37;
  border-radius: 24px;
  margin: 40px auto 30px auto !important;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.1);
  max-width: 650px !important;
  width: 100%;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.email-box-animated {
  animation: fadeIn 0.6s ease-in-out;
}

/* Click outside hint */
.click-outside-hint {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  font-style: italic;
}

/* Email Input Focus Styles */
.email-input-gold {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.email-input-gold:focus {
  border-color: #d4af37;
  outline: none;
}

/* Submit Button Styles */
.submit-button-4 {
  background-color: #124734 !important;
  color: #f5f5f0 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 28px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(18, 71, 52, 0.3) !important;
}

.submit-button-4:hover {
  background-color: #d4af37 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
}

.submit-button-4:active {
  transform: translateY(0) !important;
}

/* Checkbox Styles */
.checkbox-field-2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.checkbox-3 {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.checkbox-label-3 {
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.checkbox-label-3 a {
  color: #124734 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

.checkbox-label-3 a:hover {
  color: #d4af37 !important;
}

/* Form Hint Text */
.form-hint {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  margin-bottom: 0;
  font-style: italic;
}

/* Form Label Styles */
.field-label-4 {
  display: block !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #124734 !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
}

/* Email Input Styles */
.text-field-3 {
  width: 100% !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  background: white !important;
  margin-bottom: 0 !important;
}

.text-field-3:focus {
  border-color: #d4af37 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

/* Checkbox Styles */
.checkbox-field-2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.checkbox-3 {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.checkbox-label-3 {
  font-size: 13px !important;
  color: #333 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Button Styles */
.button-4 {
  border: none;
  cursor: pointer;
  text-align: center;
}

.button-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.button-fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

/* Loading Overlay Styles */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #f5f5dc 0%, #fff8dc 100%);
  border-radius: 24px;
  border: 3px solid #d4af37;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.loading-text {
  font-size: 24px;
  font-weight: 600;
  color: #124734;
  text-align: center;
}

/* Progress Bar Styles */
.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background-color: rgba(18, 71, 52, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #124734 0%, #d4af37 100%);
  border-radius: 12px;
  animation: progressBar 2.5s ease-out forwards;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.loading-subtext {
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Error Message Styles */
.error-message {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 10px;
  padding: 10px;
  background-color: #ffebee;
  border-radius: 8px;
  border: 1px solid #ef5350;
}

/* Footer Styles */
.footer {
  padding: 40px 20px;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.footer-disclaimer {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Prevent layout shift on load */
.page-wrapper {
  min-height: 100vh;
}

/* Smooth transitions for dynamic content */
.button-4,
.submit-button-4 {
  transition: all 0.2s ease;
}

.button-4:hover,
.submit-button-4:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-4:active,
.submit-button-4:active {
  transform: translateY(0);
}
