/*!
 * Lead Form Sign-In Widget
 * Copyright 2026 Steven Weise
 *
 * This code is proprietary and intended for use on authorized websites only.
 * Redistribution, reuse, or modification without permission is not allowed.
 * For inquiries about use, contact:
 * steve@weisefamilyhomes.com
 */

/* =========================
   Lead Form Widget Base
========================= */

:root {
  --lf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --lf-bg: #f3f4f6;
  --lf-surface: #ffffff;
  --lf-surface-alt: #f9fafb;
  --lf-text: #1f2937;
  --lf-text-soft: #6b7280;
  --lf-border: #d1d5db;

  --lf-primary: #2563eb;
  --lf-primary-hover: #1d4ed8;
  --lf-primary-text: #ffffff;

  --lf-secondary: #e5e7eb;
  --lf-secondary-hover: #d1d5db;
  --lf-secondary-text: #111827;

  --lf-radius: 18px;
  --lf-radius-sm: 12px;
  --lf-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);

  --lf-max-width: 640px;
  --lf-input-height: 44px;
  --lf-button-height: 44px;
  --lf-gap: 12px;
}

/* Root */
#lf-widget {
  margin: 0;
  padding: 0;
}

.lf-shell {
  box-sizing: border-box;
  max-width: var(--lf-max-width);
  margin: 0px auto 12px;
  padding: 16px;
  background: var(--lf-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  font-family: var(--lf-font);
  color: var(--lf-text);
}

/* Top text */
.lf-widget-title {
  margin-bottom: 4px;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--lf-text);
}

.lf-progress {
  min-height: 1em;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--lf-text-soft);
}

/* Pages */
.lf-rendered-page {
  display: block;
}

/* Fields */
.lf-field {
  margin-bottom: var(--lf-gap);
}

.lf-label {
  display: block;
  margin-bottom: 4px;
  padding-left: 14px;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lf-text);
}

.lf-help {
  margin: -1px 0 6px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--lf-text-soft);
}

.lf-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.lf-input,
.lf-select,
.lf-textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius-sm);
  background-color: #fff;
  color: var(--lf-text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lf-input {
  height: var(--lf-input-height);
  padding: 0 14px;
  font-size: 1rem;
}

.lf-select {
  height: var(--lf-input-height);
  padding: 0 40px 0 14px;
  font-size: 1rem;
}

.lf-textarea {
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.45;
}

.lf-input::placeholder,
.lf-textarea::placeholder {
  color: #9ca3af;
}

.lf-input:focus,
.lf-select:focus,
.lf-textarea:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* Checkbox + Checkbox Group Container */
.lf-checkbox,
.lf-checkbox-group-item {
  display: flex;
  align-items: center;
  gap: 12px;

  box-sizing: border-box;
  width: 100%;

  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius-sm);

  background: #fff;
  color: var(--lf-text);

  padding: 0 14px;
  height: var(--lf-input-height);

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Hover + focus feel like inputs */
.lf-checkbox:hover,
.lf-checkbox-group-item:hover {
  border-color: var(--lf-primary);
}

/* Checkbox input itself */
.lf-checkbox input,
.lf-checkbox-group-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
/*! Copyright 2026 Steven Weise */
/* Label text */
.lf-checkbox-label,
.lf-checkbox-group-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lf-text);
  text-transform: none; /* important */
}

.lf-page-header-rendered {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #eceff3;
  border-radius: var(--lf-radius-sm);
  background: var(--lf-surface-alt);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--lf-text-soft);
}

.lf-description {
  padding: 12px 14px;
  border: 1px solid #eceff3;
  border-radius: var(--lf-radius-sm);
  background: var(--lf-surface-alt);
  color: var(--lf-text-soft);
}

.lf-description-title {
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--lf-text);
}

.lf-description-body {
  font-size: 0.92rem;
  line-height: 1.45;
}

.lf-description-body p {
  margin: 0 0 8px;
}

.lf-description-body p:last-child {
  margin-bottom: 0;
}

/* Contact layout */
.lf-contact-rendered {
  display: block;
  margin-bottom: var(--lf-gap);
}

.lf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--lf-text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lf-divider::before,
.lf-divider::after {
  content: "";
  height: 1px;
  background: var(--lf-border);
  flex: 1;
}

.lf-divider::before,
.lf-divider::after {
  max-width: 50%;
}

@media (min-width: 600px) {
  .lf-contact-rendered {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }

  .lf-contact-rendered > .lf-field {
    margin-bottom: 0;
    min-width: 0;
  }

  .lf-contact-rendered > .lf-field[data-field-id="email"],
  .lf-contact-rendered > .lf-field[data-field-id="phone"] {
    grid-column: 1 / -1;
  }
}

/* Options */
.lf-options-group {
  display: grid;
  gap: 10px;
}

.lf-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius-sm);
  background: var(--lf-surface-alt);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.lf-option:hover {
  border-color: #bcc4d0;
  background: #f3f4f6;
}

.lf-option input {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lf-option span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

.lf-required {
  color: #dc2626;
  font-weight: 700;
}

.lf-required-note {
  margin: -4px 0 12px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--lf-text-soft);
}

.lf-options-inline {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* force single line */
}

.lf-option-inline {
  display: flex;
  width: auto !important;
  align-items: center;
  justify-content: center;
  flex: 1;              /* evenly distribute */
  white-space: nowrap;  /* prevent wrapping */
  min-height: var(--lf-input-height);
  padding: 8px 12px;
  border: 1px solid var(--lf-border);
  border-radius: 6px;
  cursor: pointer;
}

.lf-option-inline span {
  text-align: center;
}

/* Footer */
.lf-page-footer-rendered {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eceff3;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lf-text-soft);
}

/* Buttons */
.lf-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.lf-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  min-height: var(--lf-button-height);
  padding: 0 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.04s ease, background-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.lf-btn:active {
  transform: translateY(1px);
}

.lf-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lf-btn-next {
  flex: 1 1 auto;
  background: var(--lf-primary);
  color: var(--lf-primary-text);
}

.lf-btn-next:hover {
  background: var(--lf-primary-hover);
}

.lf-btn-back {
  flex: 0 0 auto;
  min-width: 110px;
  background: var(--lf-secondary);
  color: var(--lf-secondary-text);
}

.lf-btn-back:hover {
  background: var(--lf-secondary-hover);
}

.lf-reset-link-wrap {
  margin-top: 10px;
  text-align: center;
}

.lf-reset-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--lf-text-soft);
  text-decoration: underline;
  cursor: pointer;
}

.lf-reset-link:hover {
  color: var(--lf-text);
}

.lf-reset-link:focus {
  outline: none;
  color: var(--lf-text);
}

.lf-thankyou-rendered,
.lf-processing-rendered {
  padding: 24px 18px;
  text-align: center;
  color: var(--lf-text);
}

.lf-page-title,
.lf-processing-rendered-title,
.lf-thankyou-rendered-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--lf-text);
}

.lf-thankyou-rendered-message,
.lf-processing-rendered-message {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--lf-text);
}

.lf-input:-webkit-autofill,
.lf-input:-webkit-autofill:hover,
.lf-input:-webkit-autofill:focus,
.lf-select:-webkit-autofill,
.lf-textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--lf-text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Tablet */
@media (max-width: 900px) {
  .lf-shell {
    margin: 0px auto 12px;
  }
}

/* Phone */
@media (max-width: 640px) {
  .lf-shell {
    margin: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .lf-widget-title {
    font-size: 1.2rem;
  }

  .lf-page-title {
    font-size: 0.98rem;
  }

  .lf-nav {
    flex-direction: column;
  }

  .lf-btn-back,
  .lf-btn-next {
    width: 100%;
    min-width: 0;
  }

  .lf-input,
  .lf-select,
  .lf-textarea,
  .lf-option span,
  .lf-btn {
    font-size: 16px;
  }
}
/*! Copyright 2026 Steven Weise */