/* --- Central Form Container & Modal Overlays --- 
   Main wrapper for the form, centered with a shadow and top border 
*/
.form-main-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 38px 32px;
  border-radius: 18px;
  box-shadow: 0px 18px 45px rgba(30, 64, 175, 0.12);
  max-width: 540px;
  margin: 20px auto;
  border-top: 5px solid #2563eb;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

/* --- Important & FOMO Boxes --- */
.important-box {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 15px 20px;
  margin-bottom: 25px;
  color: #1e3a8a;
  font-size: 15px;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

.fomo-box {
  background-color: #f0fdf4;
  border-left: 4px solid #059669;
  padding: 16px 20px;
  margin-bottom: 25px;
  color: #065f46;
  font-size: 15.5px;
  border-radius: 4px;
  line-height: 1.5;
}

.fomo-box strong {
  font-weight: 800;
}

/* --- Overlay Background --- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 18px;
}

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

/* --- Modern Circular Spinner --- */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  display: none;
}

.spinner.active {
  display: block;
  animation: spin 0.8s linear infinite;
}

/* --- Message Modal Styles --- */
.message-modal {
  display: none;
  background: #ffffff;
  padding: 30px 24px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
  width: 85%;
  max-width: 360px;
  text-align: center;
  position: relative;
  border: 1px solid #dbe4f0;
}

.message-modal.active {
  display: block;
  animation: fadeInUp 0.4s ease-out forwards;
}

/* --- Animations --- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.message__closer {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  font-weight: bold;
  color: #64748b;
  font-size: 16px;
}

.message__closer:hover {
  color: #0f172a;
}

/* --- Inner Form Reset --- */
.f1t-form {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.f1t-form .iti {
  display: block;
  width: 100%;
}

#regUnavailable {
  margin: 0;
}