/* Pre-Registration Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 10, 8, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background: #0d1e19;
  border: 1px solid rgba(233, 191, 102, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  color: #f7f5ef;
  text-align: right;
  direction: rtl;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #f7f5ef;
}

.modal-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 13px;
  color: #a3b8a2;
  margin-bottom: 24px;
}

.reg-form-group {
  margin-bottom: 16px;
}

.reg-form-group label {
  display: block;
  font-size: 12.5px;
  color: #c9d9c8;
  margin-bottom: 6px;
}

.reg-form-input, .reg-form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.reg-form-input:focus, .reg-form-select:focus {
  border-color: #e9bf66;
  outline: none;
}

.btn-submit-reg {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #e9bf66;
  color: #052c24;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.16s ease;
}

.btn-submit-reg:hover {
  background: #f7d287;
}

.reg-success-msg {
  text-align: center;
  padding: 24px 0;
  display: none;
}

.reg-success-msg h4 {
  font-size: 20px;
  color: #0ece7b;
  margin-bottom: 10px;
}

.reg-success-msg p {
  font-size: 14px;
  color: #c9d9c8;
}

@media(max-width: 760px) {
  .safety-grid { grid-template-columns: 1fr; }
  .calc-stats-row { grid-template-columns: 1fr; }
  .driver-calc-box { padding: 22px 18px; }
  .calc-footer { flex-direction: column; align-items: stretch; }
  .btn-open-reg { width: 100%; }
}
