/* Language Switcher */
.top-header-bar {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1000;
}
.lang-switcher {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: 0.3s;
}
.lang-switcher:hover {
  background: rgba(0, 0, 0, 0.8);
}
.lang-switcher option {
  background: #333;
  color: #fff;
}

/* Beautiful Form Styling */
.beautiful-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  margin: 0 auto;
}
.beautiful-form .form-group {
  margin-bottom: 20px;
}
.row-group {
  display: flex;
  gap: 15px;
}
.col-half {
  flex: 1;
}
.beautiful-form input[type="text"],
.beautiful-form input[type="email"],
.beautiful-form input[type="tel"],
.beautiful-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #374151;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.beautiful-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}
.iti-wrapper {
  width: 100%;
}
.iti-wrapper .iti {
  width: 100%;
  display: block;
}

/* Legal Checkbox Group */
.terms-group {
  margin-bottom: 25px !important;
}
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #4b5563;
  cursor: pointer;
  text-align: left;
}
.terms-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}
.terms-label a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.beautiful-form .submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.beautiful-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.beautiful-form .submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.form-msg {
  text-align: center;
  font-weight: 500;
  margin-top: 10px;
  font-size: 14px;
}
.form-msg.success { color: #16a34a; }
.form-msg.error { color: #dc2626; }

/* MODALS - Privacy Policy & Terms */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;        /* Hidden by Default */
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;        /* Visible via JS */
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 750px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-content h2, .modal-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #1f2937;
}
.modal-content h2 { margin-top: 0; font-size: 24px; }
.modal-content h3 { font-size: 18px; }
.modal-content p { margin-bottom: 15px; }
.modal-content ul { padding-left: 20px; margin-bottom: 15px; }
.modal-content li { margin-bottom: 8px; }
.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
  text-decoration: none;
  transition: 0.2s;
}
.modal-close:hover {
  color: #111827;
}