/* =========================================================
   Leadroitt Realty — Pricing & Offer Request module
   Scoped with .lor-* / #offerRequestModal to avoid conflicts
   ========================================================= */

:root {
  --lor-navy: #142b4f;
  --lor-navy-deep: #0d1f3c;
  --lor-gold: #dec05f;
  --lor-gold-dark: #b89435;
  --lor-ink: #3f3a64;
  --lor-muted: #6b7280;
  --lor-line: #e6eaf0;
  --lor-green: #25d366;
}

[hidden] {
  display: none !important;
}

/* ---------- Pricing block ---------- */
.lor-pricing {
  margin: 45px 0 55px;
  background: #fff;
  border: 1px solid var(--lor-line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(20, 43, 79, 0.07);
  overflow: hidden;
}

.lor-pricing__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 24px;
  color: #fff;
  background: linear-gradient(120deg, #142b4f 0%, #213e70 100%);
}

.lor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lor-gold);
}

.lor-pricing__head .lor-eyebrow {
  color: #f0d68a;
}

.lor-pricing__head h3 {
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
}

.lor-pricing__head p {
  margin: 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.lor-body-progress {
  padding: 24px 32px 0;
}

.lor-body-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lor-body-progress__label .lor-eyebrow {
  color: var(--lor-gold-dark);
}

.lor-body-progress__label strong {
  color: var(--lor-navy);
  font-size: 13px;
  font-weight: 700;
}

.lor-body-progress .meter {
  height: 35px;
  border-radius: 0;
  background: #f3efe6;
}

.lor-body-progress .meter span {
  border-radius: 0;
}

.lor-body-progress .meter .progress {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 4px;
  background-color: #083587;
  font-weight: 600;
}

.lor-body-progress .meter .progress b {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.lor-head-actions {
  margin-top: 18px;
}

.lor-pricing__head .lor-btn--outline:hover,
.lor-pricing__head .lor-btn--outline:focus {
  border-color: var(--lor-gold);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lor-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
}

.lor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.lor-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding: 28px 32px 10px;
}

.lor-unit {
  position: relative;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--lor-line);
  border-radius: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lor-unit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #083587;
}

.lor-unit:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 53, 135, 0.55);
  box-shadow: 0 14px 30px rgba(20, 43, 79, 0.1);
}

.lor-unit__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.lor-unit__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f2f5fa;
  color: var(--lor-navy);
  font-size: 17px;
}

.lor-unit__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #cfeedd;
  border-radius: 999px;
  background: #e9f8ef;
  color: #1f7a4d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.lor-unit h4 {
  margin: 0 0 4px;
  color: var(--lor-navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.lor-unit__meta {
  margin: 0 0 16px;
  color: var(--lor-muted);
  font-size: 12px;
}

.lor-unit__price {
  color: var(--lor-navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.lor-unit__price .lor-currency {
  margin-right: 3px;
  color: var(--lor-gold-dark);
  font-size: 18px;
  vertical-align: 3px;
}

.lor-unit__note {
  margin: 8px 0 0;
  color: #98a1b0;
  font-size: 11px;
}

.lor-pricing__foot {
  padding: 14px 32px 30px;
}

.lor-plan-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid #f3e5bf;
  border-radius: 10px;
  background: #fffaf0;
  color: #7a6324;
  font-size: 13px;
  line-height: 1.5;
}

.lor-plan-note .fa {
  color: var(--lor-gold-dark);
  font-size: 15px;
}

.lor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lor-quote-actions {
  margin-top: 18px;
  line-height: 1;
}

.lor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lor-btn:hover,
.lor-btn:focus {
  text-decoration: none;
}

.lor-btn--gold {
  background: var(--lor-gold);
  color: #1a2340;
  box-shadow: 0 6px 18px rgba(222, 192, 95, 0.32);
}

.lor-btn--gold:hover,
.lor-btn--gold:focus {
  background: var(--lor-gold-dark);
  color: #fff;
  transform: translateY(-1px);
}

[data-lor-open-offer].lor-btn {
  background: #083587;
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 53, 135, 0.28);
}

[data-lor-open-offer].lor-btn:hover,
[data-lor-open-offer].lor-btn:focus {
  background: #06276a;
  color: #fff;
}

.lor-btn--outline {
  background: #fff;
  border-color: #cfd7e4;
  color: var(--lor-navy);
}

.lor-btn--outline:hover,
.lor-btn--outline:focus {
  border-color: var(--lor-navy);
  background: #f8fafc;
  color: var(--lor-navy);
}

.lor-fineprint {
  margin: 12px 0 0;
  color: #98a1b0;
  font-size: 11px;
}

/* ---------- Modal ---------- */
#offerRequestModal .modal-dialog {
  max-width: 720px;
}

#offerRequestModal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 20, 40, 0.3);
}

.lor-close {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background 0.2s ease;
}

.lor-close:hover,
.lor-close:focus {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.lor-modal__head {
  position: relative;
  padding: 26px 32px 22px;
  background: linear-gradient(135deg, #142b4f 0%, #213e70 100%);
  color: #fff;
}

.lor-modal__head h3 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 25px;
  font-weight: 600;
}

.lor-modal__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.lor-modal__head p strong {
  color: #fff;
  font-weight: 600;
}

.lor-modal__body {
  padding: 26px 32px 30px;
  background: #fff;
}

.lor-step__intro {
  margin: 0 0 16px;
  color: var(--lor-ink);
  font-size: 14px;
  font-weight: 600;
}

.lor-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lor-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--lor-line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lor-option:hover,
.lor-option:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20, 43, 79, 0.1);
  outline: none;
}

.lor-option--wa:hover,
.lor-option--wa:focus {
  border-color: var(--lor-green);
}

.lor-option--form:hover,
.lor-option--form:focus {
  border-color: var(--lor-gold);
}

.lor-option__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
}

.lor-option--wa .lor-option__icon {
  background: #e7f9ed;
  color: #128c7e;
}

.lor-option--form .lor-option__icon {
  background: #fbf5e4;
  color: #a8872d;
}

.lor-option__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lor-option__title {
  color: var(--lor-navy);
  font-size: 16px;
  font-weight: 700;
}

.lor-option__text {
  min-height: 40px;
  color: var(--lor-muted);
  font-size: 13px;
  line-height: 1.5;
}

.lor-option__cta {
  color: var(--lor-gold-dark);
  font-size: 12px;
  font-weight: 700;
}

.lor-option__cta .fa {
  margin-left: 3px;
}

.lor-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lor-back:hover {
  color: var(--lor-navy);
}

.lor-wa-panel {
  padding: 20px;
  border: 1px solid #d8efe0;
  border-radius: 14px;
  background: #f7fdf9;
}

.lor-wa-panel h4 {
  margin: 8px 0 4px;
  color: var(--lor-navy);
  font-size: 18px;
  font-weight: 600;
}

.lor-wa-panel > p {
  margin: 0 0 16px;
  color: var(--lor-muted);
  font-size: 13px;
  line-height: 1.55;
}

.lor-wa-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #25d366;
  color: #fff;
}

.lor-wa-badge svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}

.lor-preview {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px dashed #cbd8e6;
  border-radius: 10px;
  background: #fff;
  color: #526074;
  font-size: 13px;
  line-height: 1.6;
}

.lor-btn--wa {
  background: var(--lor-green);
  color: #fff;
}

.lor-btn--wa svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: #fff;
}

.lor-btn--wa:hover,
.lor-btn--wa:focus {
  background: #1ebe5d;
  color: #fff;
}

.lor-hint {
  margin: 10px 0 0;
  color: #98a1b0;
  font-size: 11px;
}

/* ---------- Form ---------- */
.lor-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lor-field {
  margin-bottom: 15px;
}

.lor-field label,
.lor-field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  border: 0;
  color: #48536a;
  font-size: 12px;
  font-weight: 600;
}

.lor-field input[type="text"],
.lor-field input[type="email"],
.lor-field input[type="tel"],
.lor-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #17233d;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lor-field input:focus,
.lor-input:focus {
  border-color: var(--lor-gold);
  box-shadow: 0 0 0 3px rgba(222, 192, 95, 0.18);
}

.lor-field input:invalid.lor-touched {
  border-color: #e25353;
}

.lor-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0 !important;
  color: #5b6578 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.lor-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #9aabc6;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lor-check input[type="checkbox"]::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.lor-check input[type="checkbox"]:checked {
  background: #083587;
  border-color: #083587;
}

.lor-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.lor-check:hover input[type="checkbox"] {
  border-color: #083587;
}

.lor-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 53, 135, 0.18);
}

.lor-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  background: #f3f6fb;
  color: var(--lor-navy);
  font-size: 13px;
  font-weight: 600;
}

.lor-project-chip .fa {
  color: var(--lor-gold-dark);
}

.lor-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lor-radio,
.lor-choice {
  position: relative;
}

.lor-radio input,
.lor-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lor-radio span,
.lor-choice span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  color: #5b6578;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lor-radio input:checked + span,
.lor-choice input:checked + span {
  border-color: var(--lor-navy);
  background: var(--lor-navy);
  color: #fff;
}

.lor-radio input:focus-visible + span,
.lor-choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(222, 192, 95, 0.35);
}

.lor-choice-group.lor-touched legend {
  color: #e25353;
}

.lor-choice-group.lor-touched .lor-radio-group {
  outline: 1px dashed #e25353;
  outline-offset: 5px;
  border-radius: 999px;
}

.lor-submit {
  width: 100%;
  margin-top: 4px;
}

.lor-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.lor-privacy {
  margin: 11px 0 0;
  color: #98a1b0;
  font-size: 11px;
  text-align: center;
}

.lor-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  background: #fff2f2;
  color: #a82828;
  font-size: 12px;
  line-height: 1.5;
}

.lor-error.is-visible {
  display: block;
}

.lor-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ---------- Success ---------- */
.lor-success {
  padding: 8px 0;
  text-align: center;
}

.lor-success__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e9f8ef;
  color: #1f7a4d;
  font-size: 28px;
}

.lor-success h4 {
  margin: 0 0 8px;
  color: var(--lor-navy);
  font-size: 22px;
  font-weight: 600;
}

.lor-success p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--lor-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .lor-pricing__head,
  .lor-body-progress,
  .lor-pricing__foot,
  .lor-modal__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lor-unit-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lor-pricing__head {
    flex-direction: column;
    gap: 14px;
  }

  .lor-pricing__head h3 {
    font-size: 22px;
  }

  .lor-option-grid,
  .lor-form-row {
    grid-template-columns: 1fr;
  }

  .lor-option__text {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .lor-pricing {
    margin: 32px 0 40px;
  }

  #offerRequestModal .modal-dialog {
    margin: 10px;
  }

  .lor-modal__head,
  .lor-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lor-actions .lor-btn {
    width: 100%;
  }

  .lor-unit__top {
    align-items: flex-start;
    flex-direction: column;
  }
}
