/* --- Premium Registration Form Styles --- */

.main-bottom-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 40px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.form-main-container {
  position: relative;
  width: 100%;
}

/* Loading Overlay */
.overlay {
  display: none;
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.overlay.active {
  display: flex !important;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #cbd5e1;
  border-top-color: #0154c5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.spinner.active {
  display: block !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Popup inside form */
.message-modal {
  display: none;
  position: relative;
  padding: 30px 25px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 320px;
  width: 90%;
  animation: popIn 0.3s ease-out;
}

.message-modal.active {
  display: block !important;
}

.message__closer {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #64748b;
  font-weight: bold;
  transition: color 0.2s;
}

.message__closer:hover {
  color: #1e293b;
}

.message {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Form inputs & structure */
.form-header-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.f1t-form input[type="text"],
.f1t-form input[type="email"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 15px 16px !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.f1t-form input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  padding-right: 16px !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.f1t-form input[type="text"]:focus,
.f1t-form input[type="email"]:focus,
.f1t-form input[type="tel"]:focus {
  border-color: #0154c5 !important;
  box-shadow: 0 0 0 3px rgba(1, 84, 197, 0.12) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* Custom error highlight */
.f1t-form input.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.f1t-form input.input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* Error message label */
.field-wrapper {
  position: relative;
  width: 100%;
}

.field-invalid {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin: 5px 0 0 4px !important;
}

/* Phone input container width override */
.iti {
  width: 100% !important;
}

/* Terms checkbox */
.f1t-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.f1t-field--checkbox input[type="checkbox"] {
  margin-top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  accent-color: #0154c5;
  cursor: pointer;
}

.f1t-field--checkbox span {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
  user-select: none;
}

/* Submit Button styling */
.f1t-form button[type="submit"] {
  background-color: #0154c5 !important;
  color: #ffffff !important;
  padding: 16px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  margin-top: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(1, 84, 197, 0.2) !important;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
}

.f1t-form button[type="submit"]:hover {
  background-color: #0143a0 !important;
  box-shadow: 0 6px 16px rgba(1, 84, 197, 0.3) !important;
}

.f1t-form button[type="submit"]:active {
  transform: scale(0.98);
}

/* Mobile responsive styles */
@media (max-width: 600px) {
  .main-bottom-form {
    padding: 25px 20px;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }

  .form-header-title {
    font-size: 19px;
    margin-bottom: 20px;
  }

  .f1t-form input[type="text"],
  .f1t-form input[type="email"] {
    padding: 13px 14px !important;
    font-size: 15px !important;
  }

  .f1t-form input[type="tel"] {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    padding-right: 14px !important;
    font-size: 15px !important;
  }

  .f1t-field--checkbox span {
    font-size: 13px;
  }

  .f1t-form button[type="submit"] {
    padding: 14px !important;
    font-size: 15px !important;
  }
}
