@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

.form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  /* font-family: 'Montserrat', sans-serif; */
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.intro {
  font-size: 1.25rem;
  margin: 0.5rem;
}
.form-container p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.section_label{
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
  font-size: small;
}

.radio-group {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.radio-group label {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  /* font-size: 0.95rem;
  font-weight: 500; */
}

.form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-container input[type="checkbox"] {
  margin-right: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.form-actions button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.form-actions button:hover {
  background: #ddd;
}