body {
  font-family: Arial, sans-serif;
  padding: 30px;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 720px; /* reduced from 900px */
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6em;
  color: #333;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.repeatable-group {
  margin-top: 20px;
  border: 1px dashed #bbb;
  padding: 15px;
  border-radius: 8px;
  background-color: #fafafa;
}

/* ✅ Center the submit button only */
.submit-btn {
  margin: 30px auto 0;
  padding: 15px 40px;
  background-color: #1a73e8;
  font-size: 18px;
  font-weight: bold;
  display: block;     /* makes it take full width */
  width: fit-content; /* keeps the width tight around content */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0f5fd0;
}

/* ✅ Make responsive */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 20px;
    max-width: 95%;
  }

  .form-section h2 {
    font-size: 1.3em;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}
.radio-group {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  gap: 8px; /* space between radio and text */
  margin: 0;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.captcha-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.refresh-btn {
  margin-top: 5px;
  text-align: center;
}

.captcha-right {
  flex: 1;
  min-width: 200px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.contact-field {
  flex: 1;
  min-width: 200px;
}

.contact-field input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.error {
  margin-top: 4px;
  font-weight: normal;
}

.flash-message {
  text-align: center;
}

.flash-message div {
  display: inline-block;
  padding: 5px;
  font-weight: bold;
}

.flash-success {
  color: green;
}

.flash-error {
  color: red;
}


