/* General Styles */
body {
  font-family:  system-ui, Roboto, Arial, sans-serif;
  margin: 20px;
  background-color: #89B8CB;
  color: #222;
}

.form-container {
  background: #fff;
  padding: 20px 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: left;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 600;
}

h3 {
  text-align: left;
  margin-bottom: 16px;
  font-size: 18px;
}

/* Flexbox Layout for Form Rows */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: flex-start;
}

/*  Section headings (h3) in form rows to take full width */
.form-row > h3 {
  flex: 0 0 100%;
  margin: 0 0 10px;
  padding: 0;
}

/* Form Field styles */
.three-col-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: row;
  width: 100%;
}

.three-col-row .one-col {
  flex: 1;
  max-width: 253px;
}

.three-col-row .two-col {
  flex: 2;
  width: 530px;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 253px;
}

.form-field label {
  font-weight: 400;
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="datetime-local"],
.form-field input[type="tel"],
.form-field input[type="location"],
.form-field select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fafafa;
  height: 34px;
}

/* Checkbox Group Styles */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 20px; /* row gap and column gap */
  margin-bottom: 0px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  background-color: #fafafa;
}

.checkbox-group legend {
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  min-width: 200px;
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  font-size: 13px;
  color: #222;
}

.checkbox-group label input[type="checkbox"] {
  margin-right: 8px;
  flex-shrink: 0;
}

/* Submit Button */
.submit-button {
  text-align: right;
  margin-top: 20px;
}

.submit-button button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 2px;
  background-color: #4285f4;
  color: #fff;
  cursor: pointer;
}

.checkbox-title {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #222;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.form-section {
  margin-bottom: 40px;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #89B8CB;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.splash-content p {
  font-size: 2rem;
  color: white;
  text-align: center;
  margin: 0;
}

.hidden {
  display: none;
}
