/* ==========================================================================
   One-Step Form Styles  (Bootstrap-free)
   Shared by: front-page.php, page-contact.php, page-free-consultation.php
   Mirrors the lead-form design from the Landing Page template so both form
   variants share the same visual language.

   The page templates supply the outer section (.module.module--50.neutral-bg)
   and .container.  This file handles everything inside that container:
   heading, form layout, fields, button, and utilities.
   ========================================================================== */


/* ---------------------------------------------------------------------------
   Section helpers  –  background & spacing modifier
   --------------------------------------------------------------------------- */
.neutral-bg {
  background-color: #eee;
}

.module--50 {
  padding: 50px 0;
}


/* ---------------------------------------------------------------------------
   Heading above the form
   --------------------------------------------------------------------------- */
.row-heading {
  margin-bottom: 1rem;
}

.row-heading h2 {
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
}


/* ---------------------------------------------------------------------------
   Form  –  base & centering
   --------------------------------------------------------------------------- */
.ld-form {
  font-family: 'Mulish', sans-serif;
  margin-top: 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Inner flex grid: 2-column on >= 992 px, single column below */
.ld-form > .row {
  display: flex;
  flex-wrap: wrap;
}

.ld-form .form-item {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .ld-form .form-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Full-width children (TCPA text + submit button rows) */
.ld-form .col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hidden-input container */
.ld-form .d-none {
  display: none;
}

/* Utility: margins */
.ld-form .mt-3 { margin-top: 1rem;   }
.ld-form .mt-4 { margin-top: 1.5rem; }


/* ---------------------------------------------------------------------------
   Form items
   --------------------------------------------------------------------------- */
.ld-form .form-item {
  margin-bottom: 1.25rem;
  padding: 0 12px;
}

.ld-form .form-item label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #000;
}


/* ---------------------------------------------------------------------------
   Inputs & selects
   --------------------------------------------------------------------------- */
.ld-form .form-control,
.ld-form .form-select {
  width: 100%;
  font-size: 1rem;
  font-family: 'Mulish', sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ld-form .form-control {
  padding: 10px 14px;
  height: 42px;
  line-height: 1.5;
  vertical-align: middle;
}

.ld-form .form-select {
  padding: 10px 14px;
  padding-right: 40px;
  height: 42px;
  line-height: 1.5;
  vertical-align: middle;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.ld-form .form-control:focus,
.ld-form .form-select:focus {
  outline: none;
  border-color: var(--tl2-blue-hover);
  box-shadow: 0 0 0 3px rgba(0, 123, 194, 0.15);
}

.ld-form .form-control::placeholder {
  color: #999;
  font-weight: 400;
}


/* ---------------------------------------------------------------------------
   Validation errors
   --------------------------------------------------------------------------- */
.ld-form .form-error {
  display: block;
  color: #dc3545;
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-top: 3px;
}

.ld-form .form-item.has-error .form-control,
.ld-form .form-item.has-error .form-select {
  border-color: #dc3545;
}


/* ---------------------------------------------------------------------------
   TCPA / consent text
   --------------------------------------------------------------------------- */
.ld-form .col-lg-12 p {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

.ld-form .col-lg-12 p a {
  color: var(--tl2-blue-hover);
  text-decoration: underline;
}


/* ---------------------------------------------------------------------------
   Submit button  –  matches .lander-btn--submit from lander-page.css
   --------------------------------------------------------------------------- */
.ld-form .btn {
  display: inline-block;
  min-width: 260px;
  padding: 14px 40px;
  background-color: var(--tl2-blue-hover);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ld-form .btn:hover {
  background-color: #005f99;
}

.ld-form .btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 575.98px) {
  .ld-form .btn {
    width: 100%;
    min-width: unset;
  }

  .ld-form .form-item {
    padding: 0 4px;
  }
}
