/* ==========================================================================
   TLC Lead Engine - Official Lead Form Styling
   Branding: The Leaders Camp (Navy #001832, Gold #CD9B46, Cream #E0D8C4)
   Typography: Archivo (Headings/Buttons/Labels) & Manrope (Body/Inputs)
   ========================================================================== */

#tlc-lead-form,
.tlc-scope {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

#tlc-lead-form *,
#tlc-lead-form *::before,
#tlc-lead-form *::after,
.tlc-scope *,
.tlc-scope *::before,
.tlc-scope *::after {
  box-sizing: border-box;
}

#tlc-lead-form [hidden],
.tlc-scope [hidden] {
  display: none !important;
}

#tlc-lead-form .tlc-lf-card,
.tlc-scope .tlc-lf-card {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 32px 32px 28px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #FFFFFF !important;
  box-shadow: 0 18px 40px -16px rgba(0, 16, 34, 0.55) !important;
}


#tlc-lead-form h3.tlc-lf-title,
.tlc-scope h3.tlc-lf-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  color: #001832 !important;
}

#tlc-lead-form p.tlc-lf-sub,
.tlc-scope p.tlc-lf-sub {
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14.4px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  text-align: left !important;
  color: #4F5962 !important;
}

#tlc-lead-form .tlc-lf-field,
.tlc-scope .tlc-lf-field {
  display: block;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

#tlc-lead-form label.tlc-lf-label,
.tlc-scope label.tlc-lf-label {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  color: #001832 !important;
}

#tlc-lead-form .tlc-lf-req,
.tlc-scope .tlc-lf-req {
  color: #B3261E !important;
}

#tlc-lead-form input.tlc-lf-control,
#tlc-lead-form select.tlc-lf-control,
.tlc-scope input.tlc-lf-control,
.tlc-scope select.tlc-lf-control {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #E0D8C4 !important;
  border-radius: 4px !important;
  background-color: #FFFFFF !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #001832 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tlc-lead-form select.tlc-lf-control,
.tlc-scope select.tlc-lf-control {
  padding-right: 40px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A87A2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  cursor: pointer;
}

#tlc-lead-form input.tlc-lf-control::placeholder,
.tlc-scope input.tlc-lf-control::placeholder {
  color: #8A949D !important;
  opacity: 1;
}

#tlc-lead-form input.tlc-lf-control:focus,
#tlc-lead-form select.tlc-lf-control:focus,
.tlc-scope input.tlc-lf-control:focus,
.tlc-scope select.tlc-lf-control:focus {
  border-color: #CD9B46 !important;
  box-shadow: 0 0 0 3px rgba(205, 155, 70, 0.22) !important;
}

#tlc-lead-form .tlc-lf-control.tlc-lf-invalid,
.tlc-scope .tlc-lf-control.tlc-lf-invalid {
  border-color: #B3261E !important;
}

#tlc-lead-form button.tlc-lf-submit,
.tlc-scope button.tlc-lf-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 8px 0 0 !important;
  padding: 15px 26px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #CD9B46 !important;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13.76px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  color: #001832 !important;
  box-shadow: 0 4px 14px rgba(205, 155, 70, 0.28) !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

#tlc-lead-form button.tlc-lf-submit span,
#tlc-lead-form button.tlc-lf-submit .tlc-btn-text,
.tlc-scope button.tlc-lf-submit span,
.tlc-scope button.tlc-lf-submit .tlc-btn-text {
  color: #001832 !important;
}

#tlc-lead-form button.tlc-lf-submit:hover,
.tlc-scope button.tlc-lf-submit:hover {
  background: #BF8E3C !important;
}

#tlc-lead-form button.tlc-lf-submit:focus-visible,
.tlc-scope button.tlc-lf-submit:focus-visible {
  outline: 3px solid #001832 !important;
  outline-offset: 3px;
}

#tlc-lead-form button.tlc-lf-submit:disabled,
.tlc-scope button.tlc-lf-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

#tlc-lead-form button.tlc-lf-submit svg,
.tlc-scope button.tlc-lf-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #001832;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#tlc-lead-form p.tlc-lf-error,
.tlc-scope p.tlc-lf-error {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  color: #B3261E !important;
}

#tlc-lead-form p.tlc-lf-note,
.tlc-scope p.tlc-lf-note {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  text-align: center !important;
  color: #4F5962 !important;
}

.tlc-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 24, 50, 0.25);
  border-top-color: #001832;
  border-radius: 50%;
  animation: tlcSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes tlcSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  #tlc-lead-form .tlc-lf-card,
  .tlc-scope .tlc-lf-card {
    padding: 24px 18px 22px !important;
  }

  #tlc-lead-form h3.tlc-lf-title,
  .tlc-scope h3.tlc-lf-title {
    font-size: 21px !important;
  }

  #tlc-lead-form p.tlc-lf-sub,
  .tlc-scope p.tlc-lf-sub {
    margin-bottom: 18px !important;
  }

  #tlc-lead-form input.tlc-lf-control,
  #tlc-lead-form select.tlc-lf-control,
  .tlc-scope input.tlc-lf-control,
  .tlc-scope select.tlc-lf-control {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tlc-lead-form input.tlc-lf-control,
  #tlc-lead-form select.tlc-lf-control,
  #tlc-lead-form button.tlc-lf-submit,
  .tlc-scope input.tlc-lf-control,
  .tlc-scope select.tlc-lf-control,
  .tlc-scope button.tlc-lf-submit {
    transition: none;
  }
}

/* ==========================================================================
   Universal Modal Dialog
   ========================================================================== */
.tlc-modal-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.tlc-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 16, 34, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

.tlc-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF !important;
  border-radius: 4px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 16, 34, 0.65);
  padding: 0;
  animation: tlcModalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tlc-modal-dialog .tlc-lf-card {
  box-shadow: none !important;
  padding: 32px 28px 24px !important;
}

@keyframes tlcModalScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tlc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F4F6F8;
  border: none;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4F5962;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 5;
}

.tlc-modal-close:hover {
  background: #E0D8C4;
  color: #001832;
}

@media (max-width: 640px) {
  .tlc-modal-dialog .tlc-lf-card {
    padding: 24px 18px 20px !important;
  }
}
