/* Legal Help Form Styles - Copied from existing Cordell form */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body.legal-help-form-page {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: #f8fafc;
  color: #333;
}

/* Container styles - shared between header and footer */
.legal-form-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Form Container */
.legal-form-container {
  min-height: calc(100vh - 300px);
  background: #f8fafc;
  padding: 40px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Wrapper - Matching existing Cordell form */
.legal-form-wrapper {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Progress Bar - Exact copy from existing form */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 8px;
}

.progress-line {
  height: 4px;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 30%;
  background-color: #0088a833;
  transition: background-color 0.3s ease;
}

.progress-line.active {
  background: #0088a8;
}

.progress-line.inactive {
  background: #e2e8f0;
}

.progress-text {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: #091747;
}

/* Main Question - Matching existing form */
.form-header h1 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #091747;
}

/* Service Options - Exact copy from existing form */
.service-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.service-option {
  padding: 1rem 1rem 1rem 1.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 2px solid #091747;
  display: flex;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #efefef;
    border: 2px solid #102a80;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(113 128 150 / .3);
  }
}

.service-option .fa-stack > .fa-arrow-right {
  color: #091747;
  transition: all 0.3s ease;
}

.service-option .fa-stack > .fa-circle {
  color: #091747;
  transition: all 0.3s ease;
}

.service-option:hover .fa-stack > .fa-arrow-right {
  color: #fff;
  transition: all 0.3s ease;
}
.service-option:hover .fa-stack > .fa-circle {
  font-weight: 900;
  transition: all 0.3s ease;
}

.service-option-text {
  flex: 1;
  color: #1a202c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.service-option-text strong {
  font-weight: 700;
}

.service-arrow {
  width: 32px;
  height: 32px;
  background: #20b2aa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

/* Form Elements - Matching existing form */
.legal-form {
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
  position: relative;

  &.inner-addon {
    position: relative;
    .valid-icon, .invalid-icon {
      position: absolute;
      top: 49%;
      right: 10px;
      font-size: 1.5rem;
      opacity: 0;
      transition: all 0.3s ease;
    }
  }

  &.valid {
    .valid-icon {
      opacity: 1;
      color: #90ad4d;
    }
    .invalid-icon {
      opacity: 0;
    }
  }
  
  &.invalid {
    .invalid-icon {
      opacity: 1;
      color: #be1600;
    }
    .valid-icon {
      opacity: 0;
    }
  }
}

/* align icon */
.left-addon .fa-stack  { left:  0px;}
.right-addon .fa-stack { right: 0px;}

/* add padding  */
.left-addon input  { padding-left:  30px; }
.right-addon input { padding-right: 30px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1rem;
  color: #091747;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
  padding: 0.85rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 2px solid #091747;
  display: flex;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #a2c445;
  box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.form-group input.error {
  border-color: #be1600;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input::placeholder {
  color: #091747;
}

.form-group.has-validation-text.invalid {
  margin-bottom: 0;
}

/* Validation error messages */
.email-error-message,
.phone-error-message {
  display: none;
  color: #be1600;
  font-size: 0.875rem;
  margin-top: 4px;
  margin-bottom: 24px;
  text-align: left;
  font-weight: 400;
}

.email-error-message.show,
.phone-error-message.show {
  display: block;
}


.communication-preference .form-label {
  display: block;
  font-weight: 700;
  color: #091747;
  margin-bottom: 12px;
  font-size: 1rem;
}

.communication-preference .option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.communication-preference .option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #091747;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.communication-preference .option input[type="radio"] {
  accent-color: #a2c445;
  width: 18px;
  height: 18px;
}

.communication-preference .option span {
  font-weight: 600;
  color: #091747;
}

.communication-preference .option:hover {
  border-color: #a2c445;
  box-shadow: 0 0 0 3px rgba(162, 196, 69, 0.15);
}

.text-opt-in-error {
  margin-top: 12px;
  margin-bottom: 0;
}

.privacy-disclaimer {
  margin-top: 16px;
}

.privacy-disclaimer small {
  font-size: 0.7rem;
  line-height: 1.1rem;
  color: #091747;
  display: block;
}

.safety-info {
  text-align: left;
  
  h6 {
    font-size: 0.875rem;
    line-height: 1rem;
    color: #091747;
    font-weight: bold;
    margin: 0;
  }
  
  p {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #091747;
    font-weight: 400;
  }
  
  a {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #091747;
    font-weight: 400;
    text-decoration: underline;
  }
}

/* Form Actions - Matching existing form */
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;

  .btn {
    /* Inherits from base .btn class below */
    padding: 15px;
    height: auto;
  }
  .btn-link {
    text-transform: uppercase;

    .fa-stack {
      .fa-circle {
        color: #091747;
      }
    }
    &.btn-next {
      .fa-stack {
        .fa-circle {
          color: #a2c445;
        }
      }
    }
  }

  .btn-primary {
  background-color: #90ad4d;
  color: #091747;
}

.btn-primary:hover {
  background-color: #a6bf6e;
  color: #091747;
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

  .btn-primary {
    .fa-stack {
      .fa-circle {
        color: #091747;
      }
    }

    &:hover {
      .fa-stack {
        .fa-circle {
          color: #0f2674;
        }
      }
    }
  }
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 120px;
  color: #0c1e3c;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
}

.btn-light {
  background-color: #ddd;
}

.btn-light:hover {
  background-color: #c4c4c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

/* Thank You Screen - Matching existing form */
.thank-you-screen {
  text-align: center;
  padding: 40px 20px;
}

/* Remove custom max-width for thank you screen, use Bootstrap defaults */
.thank-you-active .container {
  max-width: 950px;
}

/* Hide help bar on thank you screen */
.thank-you-active .help-bar {
  display: none !important;
}

.thank-you-wrapper {
  .card {
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: 1rem;
    background-color: #fff;
    border-color: #fff;

    .btn-primary {
          background-color: #90AD4D;
          color: #091747;
          font-weight: bold;
          padding: 1.25rem 2.5rem;
          border: none;
          border-radius: 0.25rem;
          cursor: pointer;
          text-transform: uppercase;
          text-decoration: none;
          display: inline-block;
    }

    h2 {
      font-size: 2rem;
      line-height: 2.5rem;
      color: #091747;
      margin-bottom: 2rem;
      font-weight: 800;
    }
    h5 {
      font-size: 1rem;
      line-height: 1.5rem;
      font-weight: 700;
      color: #091747;
      margin-bottom: 0.75rem;
      text-transform: uppercase;
    }
    h6 {
      font-size: 0.875rem;
      line-height: 0.875rem;
      letter-spacing: 0.98px;
      text-transform: uppercase;
      font-weight: 700;
      color: #091747;
    }

    ol {
      list-style-type: none;
      padding: 0;
      margin: 0 0 2.5rem 0;
      counter-reset: item;

      li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.5rem;
        color: #091747;
        font-weight: 700;
        counter-increment: item;
        
        &::before {
              content: counter(item);
              display: inline-flex;
              align-items: center;
              justify-content: center;
              background-color: #091747;
              color: #fff;
              font-weight: 700;
              border-radius: 50%;
              width: 1.5rem;
              height: 1.5rem;
              font-size: 1rem;
              flex-shrink: 0;
      }
    }
  }
}

/* Footer - Matching existing form */
.legal-form-footer {
  background: #000;
  color: #999;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 0;
}

.legal-form-footer-content {
  /* max-width, margin, padding now shared with header-content above */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-form-copyright {
  color: #999;
}

.legal-form-footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.legal-form-footer-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-form-footer-links a:hover {
  color: #fff;
}

.legal-form-footer-links .separator {
  width: 1px;
  height: 16px;
  background: #333;
}

/* Responsive Design - Matching existing form */
@media (max-width: 768px) {
  .legal-form-wrapper {
    padding: 30px 20px;
    margin: 20px;
  }

  .form-header h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .service-option {
    padding: 20px 16px;
  }

  .service-option-text {
    font-size: 14px;
  }

  /* Removed unused mobile styles for deleted elements */

  .legal-form-footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .thank-you-wrapper {
    .card {
        h2 {
            font-size: 1.5rem;
            line-height: 2.2rem;
            color: #091747;
            margin-bottom: 2rem;
            font-weight: 800;
        }
      }
  }
}

@media (max-width: 480px) {
  .legal-form-wrapper {
    padding: 25px 15px;
    margin: 10px;
  }

  .form-header h1 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .service-option {
    padding: 18px 14px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
    min-width: 100px;
  }
}

/* Hide default theme elements */
.legal-help-form-page .site-header,
.legal-help-form-page .site-footer,
.legal-help-form-page .main-navigation,
.legal-help-form-page .sidebar,
.legal-help-form-page .entry-header,
.legal-help-form-page .entry-meta,
.legal-help-form-page .entry-footer {
  display: none !important;
}

.legal-help-form-page .site-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.legal-help-form-page .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

.legal-help-form-page .entry-title {
  display: none !important;
}

/* Hide header */
.tm-header,
.tm-header-mobile {
  display: none;
}
