body {
  font-family: Arial, sans-serif;
  background: #f7f9fc;
  padding: 0px;
}

.form-container {
  background: #fff;
  padding: 20px;
  max-width: 984px;
  margin: auto;  
}

.form-container h2 {
  margin-bottom: 15px;
  margin-top: 25px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  margin: auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: white;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  background: #A31919;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  float: right;
}

button:hover {
  background: #8a1313;
  
}

.hidden {
  display: none;
}

.step-indicator {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: #666;
}
.step-description {
  font-size: 14px !important;
  color: #555;
  margin-bottom: 35px;
}

button {
  position: relative;
  padding: 10px 20px;
  font-size: 16px;
  min-width: 100px; /* consistent width */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  border: 2px solid #f3f3f3; /* reduced from 3px to 2px */
  border-top: 2px solid #f35d71;
  border-radius: 50%;
  width: 16px; /* reduced from 18px to 16px */
  height: 16px;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Using transform instead of margins */
  margin: 0; /* Remove margins */
}

/* Spinner centered in button */
button.loading {
  color: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.loading .spinner {
  display: block;
}

.back-button {
  color: black;
  background: #d8d8d8;
}
.back-button:hover {
  background: #adadad;
}
.next-button {
  margin-left: auto;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.char-counter {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    text-align: right;
}

.char-counter.warning {
    color: #f0ad4e;
}

.char-counter.danger {
    color: #d9534f;
}