/* --- Central Form Container --- */
.form-main-container {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 4px;
  box-shadow: 0px 15px 45px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 40px auto;
  border-top: 5px solid #1A1A1A; /* הותאם לשחור-פחם של Lumen */
  font-family: 'Source Sans Pro', Arial, sans-serif;
  box-sizing: border-box;
}

/* --- FOMO & Security Boxes (Tailored for Germany) --- */
.important-box {
  background-color: #F4F0E6; /* צבע הנייר של האתר */
  border-left: 4px solid #8C7355; /* צבע זהב/טאופ אלגנטי */
  padding: 15px 20px;
  margin-bottom: 25px;
  color: #333;
  font-size: 15px;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

.fomo-box {
  background-color: #FAFAFA;
  border-left: 4px solid #1A1A1A;
  padding: 18px 20px;
  margin-bottom: 25px;
  color: #111;
  font-size: 16px;
  border-radius: 2px;
  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: 4px;
}

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

/* --- Modern Circular Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8C7355; /* הותאם לזהב של Lumen */
  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: 4px;
  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: #1A1A1A; /* הותאם לפלטה המגזינית */
  font-family: 'Playfair Display', serif; /* פונט סריפי יוקרתי */
  font-weight: 900;
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- 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 #D6D0C4;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #FFFFFF;
  transition: all 0.2s ease;
  font-family: 'Source Sans Pro', sans-serif;
}

/* --- 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 #D6D0C4;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #FFFFFF;
  transition: all 0.2s ease;
  font-family: 'Source Sans Pro', sans-serif;
}

/* --- Focus State --- */
.f1t-form input:focus {
  border-color: #8C7355; /* צבע פוקוס אלגנטי */
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(140, 115, 85, 0.15); /* הילה עדינה תואמת */
  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: #1A1A1A; /* הותאם לשחור */
}

/* --- Primary Submit Button --- */
.f1t-form button[type='submit'] {
  background-color: #1A1A1A; /* שחור פחם כדי לשמור על אחידות מוחלטת */
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  border: none;
  padding: 18px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 15px;
}

.f1t-form button[type='submit']:hover {
  background-color: #8C7355; /* מעבר עכבר לגוון הזהב/בז' */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}