/* --- Central Form Container --- 
   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: 35px 30px;
  border-radius: 12px;
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.12);
  max-width: 500px;
  margin: 40px auto;
  border-top: 5px solid #e10019;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.important-box {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 15px 20px;
  margin-bottom: 25px;
  color: #555;
  font-size: 15px;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

.fomo-box {
  background-color: #fdf2f8;
  border-left: 4px solid #be185d;
  padding: 18px 20px;
  margin-bottom: 25px;
  color: #831843;
  font-size: 16px;
  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.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

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

/* --- Modern Circular Spinner --- */
.spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e10019;
  border-radius: 50%;
  display: none;
  box-shadow: 0 6px 18px rgba(225, 0, 25, 0.22);
}

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

/* --- Message Modal Styles --- */
.message-modal {
  display: none;
  background: #ffffff;
  padding: 26px 20px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 86%;
  max-width: 360px;
  text-align: center;
  position: relative;
  border-top: 4px solid #d1d5db;
}

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

.message-modal.is-success {
  border-top-color: #0f766e;
}

.message-modal.is-error {
  border-top-color: #b42318;
}

.loading-text {
  display: none;
  margin-top: 88px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.2px;
}

.loading-text.active {
  display: block;
}

.message__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  font-weight: 900;
}

.message-modal.is-success .message__icon {
  background: #ecfdf5;
  color: #0f766e;
}

.message-modal.is-error .message__icon {
  background: #fef2f2;
  color: #b42318;
}

.message__title {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 8px;
  color: #0f172a;
}

.message__text {
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
}

.message__button {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.message-modal.is-success .message__button {
  background: linear-gradient(90deg, #0f766e, #0d9488);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.message-modal.is-error .message__button {
  background: linear-gradient(90deg, #b42318, #dc2626);
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.22);
}

.message__button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* --- 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: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #888;
}

/* --- Header Section --- */
.form-header-title {
  color: #e10019;
  font-weight: 900;
  text-align: center;
  font-size: 20px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

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

/* --- Standard Input Fields --- */
.f1t-form input[type='text'],
.f1t-form input[type='email'],
.f1t-form input[type='password'] {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

/* --- Telephone Input --- */
.f1t-form input[type='tel'] {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-right: 12px;
  padding-left: 90px !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

/* --- Focus State --- */
.f1t-form input:focus {
  border-color: #e10019;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 0, 25, 0.2);
  outline: none;
}

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

#regUnavailable {
  margin: 0;
}

/* --- Checkbox Section --- */
.f1t-field--checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  color: #444;
}

.f1t-form input[type='checkbox'] {
  min-width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #e10019;
}

/* --- Primary Submit Button --- */
.f1t-form button[type='submit'] {
  background-color: #e10019;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  padding: 18px;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(225, 0, 25, 0.3);
}

.f1t-form button[type='submit']:hover {
  background-color: #c80016;
  transform: translateY(-2px);
}