/* -----------------------------------------------------------------------------
   Lead Capture Forms
----------------------------------------------------------------------------- */

.leadbox-container {
  max-width: 900px;
  width: 100%;
  background: #f1f1f1;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  overflow: hidden;
  margin: 40px auto 20px auto;
}

.leadbox-left {
  flex: 1 1 45%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 280px;
}

.leadbox-left img {
  max-width: 200px !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 15px;
}

.leadbox-left .label {
  font-size: 12px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 10px;
}

.leadbox-left .headline {
  color: #c00;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.leadbox-left .body {
  font-size: 15px;
  color: #000;
}

.leadbox-right {
  flex: 1 1 55%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 280px;
}

.leadbox-right h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.leadbox-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leadbox-form input {
  padding: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #ffffff;
  color: #000;
}

/* Force white inputs even when the active theme styles all <input> elements
   with a gray background or inset shadow. */
.leadbox-container .leadbox-form input,
.leadbox-container .leadbox-form input:focus,
.leadbox-container .leadbox-form input:hover {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #000 !important;
}

.leadbox-form button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  background: #c00;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}

.leadbox-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Override to fix injected form layout issues */
.leadbox-container .leadbox-form button {
  padding: 10px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.leadbox-success {
  color: green;
  margin-top: 10px;
  font-size: 14px;
}

.leadbox-error {
  color: #c00;
  margin-top: 10px;
  font-size: 14px;
}

.leadbox-name-row {
  display: flex;
  gap: 10px;
}

.leadbox-name-row input {
  flex: 1 1 0;
  min-width: 0;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .leadbox-container {
    flex-direction: column;
  }

  .leadbox-left,
  .leadbox-right {
    width: 100%;
    padding: 20px;
  }

  .leadbox-name-row {
    flex-direction: column;
  }

  .leadbox-name-row input {
    width: 100%;
  }
}
