/* contact-form.css
   Purpose: Recreate the Jotform embed look without loading Jotform CSS/JS.
   Based on your download3.css "designer" styles + missing base styles.
*/

/* Optional: load Inter (or self-host it) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ===== Base reset-ish ===== */
* { box-sizing: border-box; }
.form-all img { max-width: 100%; height: auto; }
.form-all { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ===== Outer wrapper (matches your embed structure) ===== */
.supernova { background: transparent; }
.supernova .form-all,
.form-all {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  max-width: 752px;
  width: 100%;
  margin: 0 auto;
  background-color: rgba(229, 231, 242, 0);
  border-radius: 20px;
  border: none;
  box-shadow: none;
}

ul.form-section {
  list-style: none;
  margin: 0;
  padding: 0px 38px; /* from your designer */
}

/* spacing between rows */
.form-line {
  margin-top: 22px;
  margin-bottom: 22px;
}

/* ===== Labels ===== */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3345;
}

.form-required {
  color: #f23a3c;
  margin-left: 4px;
}

/* ===== Inputs ===== */
.form-textbox,
.form-textarea,
.form-captcha input,
.form-spinner input,
.form-radio-other-input,
.form-checkbox-other-input {
  width: 100%;
  max-width: 648px;
  padding: 12px 14px;
  border: 1px solid rgba(44, 51, 69, 0.2);
  outline: none;
  background-color: #ffffff;
  color: #2c3345;
  border-radius: 20px; /* from your designer */
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.form-textarea {
  border-radius: 20px;
  padding: 10px;
  min-height: 140px;
  resize: vertical;
}

/* Focus */
.form-textbox:focus,
.form-textarea:focus,
.form-captcha input:focus {
  border-color: #2e69ff;
  box-shadow: 0 0 0 3px rgba(46, 105, 255, 0.18);
}

/* Half layout in your HTML should still be full width */
li[data-type="control_textbox"] div[data-layout="half"],
li[data-type="control_dropdown"] div[data-layout="half"],
li[data-type="control_email"] div[data-layout="half"],
li[data-type="control_number"] div[data-layout="half"],
li[data-type="control_phone"] div[data-layout="half"],
li[data-type="control_datetime"] div[data-layout="half"] {
  width: 100% !important;
  max-width: 648px;
}

/* Placeholder */
.form-textbox::placeholder,
.form-textarea::placeholder {
  color: rgba(44, 51, 69, 0.55);
}

/* ===== Checkbox grid ===== */
.form-multiple-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  align-items: start;
}

.form-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3345;
}

.form-checkbox-item label {
  font-weight: 500;
  cursor: pointer;
  color: #2c3345;
}

/* Make checkbox slightly nicer */
.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2e69ff;
  cursor: pointer;
}

/* Stack to one column on small screens */
@media (max-width: 640px) {
  ul.form-section { padding: 0px 18px; }
  .form-multiple-column { grid-template-columns: 1fr; }
}

/* ===== Submit button ===== */
.form-buttons-wrapper {
  display: flex;
  justify-content: center; /* from your designer */
}

.form-submit-button,
.submit-button {
  min-width: 180px;
  border-radius: 100px; /* from your designer */
  padding: 12px 22px;
  border: 1px solid #393939;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: #ffffff;
  background-color: #20387b; /* from your designer */
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.form-submit-button:hover {
  background: #fff !important;
  border-color: #20387B !important;
  color: #20387B !important;
}

.form-submit-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ===== Error + success messages ===== */
.form-status {
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

.form-status.success { color: #0f7a2f; }
.form-status.error { color: #b00020; }

.form-line-error {
  background-color: #fff4f4;
  border-radius: 16px;
  padding: 10px 10px;
}

.form-line-error .form-textbox,
.form-line-error .form-textarea {
  border-color: #f23a3c;
  box-shadow: 0 0 3px rgba(242, 58, 60, 0.55);
}

/* Hide old Jotform navigation junk if it exists */
.error-navigation-container { display: none !important; }
.form-error-message { display: none !important; }

/* Match your margin tweak */
.form-all {
  margin-top: -10px !important;
}
