/* =========================================================
   Beaty Corporate Intelligence
   Start a Project Form Styles
   ========================================================= */


/* ---------------------------------------------------------
   Form Layout
   --------------------------------------------------------- */

.form-container {
  max-width: 980px;
}

.project-form {
  display: grid;
  gap: 2rem;
}

.form-section {
  margin: 0;
  padding: 2rem;
  border: 1px solid #d9e0e6;
  border-radius: 10px;
  background: #ffffff;
}

.form-section legend {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f2940;
}

.form-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;
  margin-right: 0.65rem;

  border-radius: 50%;
  background: #173a56;
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 700;
}

.form-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #596978;
}


/* ---------------------------------------------------------
   General Form Fields
   --------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field > label {
  display: block;
  margin-bottom: 0.45rem;

  color: #102a42;
  font-size: 0.98rem;
  font-weight: 700;
}

.optional {
  color: #6d7b87;
  font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid #b9c5cf;
  border-radius: 6px;

  background: #ffffff;
  color: #172430;

  font: inherit;
  line-height: 1.5;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
  min-height: 46px;
  padding: 0.65rem 0.8rem;
}

.form-field textarea {
  min-height: 130px;
  padding: 0.75rem 0.8rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #173a56;
  box-shadow: 0 0 0 3px rgba(23, 58, 86, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7d8a95;
}

.field-help {
  margin-top: 0.45rem;
  margin-bottom: 0;

  color: #687784;
  font-size: 0.9rem;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   Service Selection Cards
   --------------------------------------------------------- */

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.service-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-choice-content {
  display: flex;
  flex-direction: column;

  min-height: 100%;
  box-sizing: border-box;

  padding: 1.25rem;

  border: 1px solid #ccd5dd;
  border-radius: 8px;

  background: #ffffff;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.service-choice:hover .service-choice-content {
  border-color: #7890a3;
}

.service-choice input[type="radio"]:focus-visible + .service-choice-content {
  outline: 3px solid rgba(23, 58, 86, 0.22);
  outline-offset: 2px;
}

.service-choice input[type="radio"]:checked + .service-choice-content {
  border-color: #173a56;
  background: #f2f6f9;
  box-shadow: 0 0 0 2px #173a56;
}

.service-choice-title {
  display: block;
  margin-bottom: 0.35rem;

  color: #102a42;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-choice-price {
  display: block;
  margin-bottom: 0.75rem;

  color: #6f4b1f;
  font-size: 0.95rem;
  font-weight: 700;
}

.service-choice-description {
  display: block;

  color: #445461;
  font-size: 0.94rem;
  line-height: 1.55;
}


/* ---------------------------------------------------------
   Service-Specific Panels
   --------------------------------------------------------- */

.service-panel {
  border-left: 4px solid #173a56;
  background: #f7f9fb;
}

.service-panel[hidden] {
  display: none !important;
}


/* ---------------------------------------------------------
   Callouts and Warnings
   --------------------------------------------------------- */

.form-callout {
  margin: 1rem 0 0;
  padding: 1.1rem 1.25rem;

  border-left: 4px solid #173a56;
  background: #f1f5f8;
}

.form-callout p {
  margin-top: 0;
}

.form-callout p:last-child {
  margin-bottom: 0;
}

.form-warning {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;

  border: 1px solid #d8c7ae;
  border-left: 4px solid #8b5c24;
  border-radius: 6px;

  background: #fbf8f3;
  color: #2d3439;
}

.form-warning strong {
  color: #503614;
}

.form-warning p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Radio Options
   --------------------------------------------------------- */

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;

  margin-top: 0.5rem;
}

.inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  cursor: pointer;
  font-weight: 400;
}

.inline-options input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;

  accent-color: #173a56;
}


/* ---------------------------------------------------------
   Checkbox
   --------------------------------------------------------- */

.checkbox-field label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;

  align-items: start;

  cursor: pointer;
  font-weight: 400;
}

.checkbox-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;

  accent-color: #173a56;
}


/* ---------------------------------------------------------
   Form Actions
   --------------------------------------------------------- */

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  margin-top: 1.5rem;
}

.form-actions button {
  font: inherit;
}

.form-footnote {
  margin-top: 1rem;
  margin-bottom: 0;

  color: #697784;
  font-size: 0.9rem;
}


/* ---------------------------------------------------------
   Form Status
   --------------------------------------------------------- */

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.1rem;

  border-radius: 6px;

  font-weight: 600;
}

.form-status.success {
  border: 1px solid #8fb99d;
  background: #f0f7f2;
  color: #244b31;
}

.form-status.error {
  border: 1px solid #cf9e9e;
  background: #fbf2f2;
  color: #682b2b;
}


/* ---------------------------------------------------------
   Validation
   --------------------------------------------------------- */

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #a83b3b;
}

.field-error {
  margin-top: 0.4rem;
  margin-bottom: 0;

  color: #8e2f2f;
  font-size: 0.88rem;
  font-weight: 600;
}


/* ---------------------------------------------------------
   Honeypot
   --------------------------------------------------------- */

.honeypot {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;

  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;
}


/* ---------------------------------------------------------
   Responsive Layout
   --------------------------------------------------------- */

@media (max-width: 760px) {

  .form-section {
    padding: 1.35rem;
  }

  .form-grid-2,
  .service-choice-grid {
    grid-template-columns: 1fr;
  }

  .form-section legend {
    font-size: 1.25rem;
  }

  .form-step {
    width: 1.8rem;
    height: 1.8rem;
    margin-right: 0.45rem;
  }

  .inline-options {
    flex-direction: column;
    gap: 0.7rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button,
  .form-actions button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

}


/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .service-choice-content,
  .form-field input,
  .form-field select,
  .form-field textarea {
    transition: none;
  }

}