/* --- 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; /* Changed to red */
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* --- FOMO & Security Boxes (Tailored for Italy) --- */
.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: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e10019; /* Changed to red */
  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 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 80%;
  max-width: 320px;
  text-align: center;
  position: relative;
}

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

/* --- Header Section --- */
.form-header-title {
  color: #e10019; /* Changed to red */
  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; /* Changed to red */
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 0, 25, 0.2); /* Subtle red halo */
  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; /* Changed to red */
}

/* --- Primary Submit Button --- */
.f1t-form button[type='submit'] {
  background-color: #e10019; /* Changed to red to maintain complete consistency */
  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); /* Shadow matching red */
}

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