/* Progress Indicator */
.form-progress {
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 10px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fa0000 0%, #d70000 100%);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.progress-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.progress-step {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  background: #fa0000;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  transition: left 0.4s ease;
  box-shadow: 0 2px 8px rgba(250, 0, 0, 0.3);
}

.step {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.step h3 {
  margin-bottom: 15px;
  font-size: 20px;
}
.step input, .step select, .step textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}
button.next-step, button.prev-step, button[type="submit"] {
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background-color: #fa0000;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  float: right;
}
button.prev-step {
  background-color: #6c757d;
  margin-right: 10px;
  float: left;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#rataEstimata {
  font-weight: bold;
  margin-bottom: 15px;
  color: #198754;
}
.titlpas {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffffff;
  background: #0d0638;
  background: linear-gradient(36deg,rgba(13, 6, 56, 1) 0%, rgba(30, 30, 102, 1) 100%);
  padding: 20px;
  text-align: center;
}
.step label{
    font-size: 16px;
}
.form-group {
    width: 48%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding:20px;
}

@media (max-width: 768px) {
    .form-group {
        width: 100%;
        padding: 10px 0; /* optional, mai puțin padding pe mobil */
    }
}

/* Custom Styled Alert */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.custom-alert {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  max-width: 450px;
  animation: alertSlideIn 0.25s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-alert-title {
  background: linear-gradient(135deg, #fa0000 0%, #d70000 100%);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px 8px 0 0;
}

.custom-alert-message {
  padding: 20px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.custom-alert-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fa0000;
  color: white;
  border: none;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-alert-btn:hover {
  background: #d70000;
}

.custom-alert-btn:active {
  background: #b30000;
}

/* Success variant */
.custom-alert.custom-alert-success .custom-alert-title {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.custom-alert.custom-alert-success .custom-alert-btn {
  background: #28a745 !important;
}

.custom-alert.custom-alert-success .custom-alert-btn:hover {
  background: #218838 !important;
}

.custom-alert.custom-alert-success .custom-alert-btn:active {
  background: #1e7e34 !important;
}

/* Stilare checkboxuri vizibile */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #fa0000;
}

label input[type="checkbox"] + * {
  display: flex;
  align-items: center;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin: 15px 0;
  cursor: pointer;
}