/* =========================
   1. OVERLAY / BACKDROP
========================= */

.housing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   2. MODAL SHELL
========================= */

.housing-modal {
  position: relative;
  width: min(90vw, 1420px);
  height: min(90vh, 920px);
  background: #ffffff;
  border-radius: 24px;
  display: grid;
  grid-template-columns: clamp(280px, 24vw, 330px) minmax(560px, 1fr) clamp(280px, 20vw, 320px);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
}


/* =========================
   3. SHARED PANEL SCROLLING
========================= */

.housing-sidebar-left,
.housing-content,
.housing-sidebar-right {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.housing-sidebar-left::-webkit-scrollbar,
.housing-content::-webkit-scrollbar,
.housing-sidebar-right::-webkit-scrollbar {
  display: none;
}

/* =========================
   LEFT PANEL REFINEMENT
========================= */

.housing-sidebar-left {

  background: rgba(244, 248, 252, 0.6);

  padding-left: clamp(28px, 1vw, 36px);

  padding-right: clamp(28px, 1vw, 36px);

  padding-top: 4%;

  padding-bottom: 4%;

  display: flex;

  flex-direction: column;

  justify-content: space-evenly;

  overflow: hidden;

}

.housing-sidebar-header h2 {
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1.15;
  font-weight: 800;
  color: #071b3a;
  margin: 0 0 clamp(10px, 0.8vw, 16px);
}

.housing-sidebar-header p {
  font-size: clamp(11px, 0.75vw, 13px);
  line-height: 1.45;
  color: #4b5563;
  margin: 0 0 clamp(12px, 1vw, 20px);
}

.housing-step-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.35vw, 8px);
}

.housing-step-item {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(24px, 1.5vw, 30px) 1fr;
  align-items: center;
  gap: clamp(8px, 0.75vw, 12px);
  border: none;
  border-radius: clamp(8px, 0.7vw, 12px);
  padding: clamp(7px, 0.65vw, 11px) clamp(10px, 0.8vw, 14px);
  background: rgba(255, 255, 255, 0.55);
  color: #6b7280;
  text-align: left;
  cursor: pointer;
}

.housing-step-item.is-active {
  background: #071b3a;
  color: #ffffff;
}

.housing-step-number {
  width: clamp(22px, 1.45vw, 28px);
  height: clamp(22px, 1.45vw, 28px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #071b3a;
  font-size: clamp(11px, 0.75vw, 13px);
  font-weight: 700;
}

.housing-step-number img {
  width: 10px !important;
  height: 10px !important;
}

.housing-step-item.is-active .housing-step-number {
  background: #ffffff;
  color: #071b3a;
  border-color: #ffffff;
  font-weight: 700;
}

.housing-step-copy {
  display: flex;

  flex-direction: column;

  gap: 2px;

  min-width: 0;
}

.housing-step-copy strong {
  font-size: clamp(11px, 0.78vw, 13px);

  line-height: 1.15;

  font-weight: 600;

  color: inherit;
}

.housing-step-item.is-active .housing-step-copy strong {
  font-weight: 700;
}

.housing-step-copy small {
  font-size: clamp(9px, 0.65vw, 11px);
  line-height: 1.2;
  color: inherit;
  opacity: 0.78;
}

.housing-secure-note {
  margin-top: clamp(10px, 0.8vw, 18px);
  padding-top: clamp(8px, 0.7vw, 14px);
  border-top: 1px solid #e8e8e8;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: clamp(10px, 0.7vw, 12px);
  line-height: 1.35;
}

.housing-secure-note img {
  align-self: center;
}


/* =========================
   5. CENTER CONTENT
========================= */

.housing-content {
  padding: 52px 44px 40px;
  background: #ffffff;
}

/* =========================
   RIGHT PANEL
========================= */

.housing-sidebar-right {
  display: flex;
  align-items: center;
  padding: 0 28px 0 0;
  background: #ffffff;
}

.housing-right-card {
  width: 100%;
  height: 80%;
  max-height: 80%;
  border: 1px solid #edf1f5;
  border-radius: 16px;
  background: rgba(244, 248, 252, 0.6);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.housing-right-card::-webkit-scrollbar {
  display: none;
}


/* =========================
   RIGHT PANEL TOP
========================= */

.housing-progress-block {
  padding: 28px 28px 26px;
  border-bottom: 1px solid #e8e8e8;
}

.housing-progress-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5rem;
  font-weight: 800;
  color: #071b3a;
}

.housing-progress-block p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5rem;
  color: #374151;
}

.housing-progress-pills {
  display: flex;
  gap: 6px;
  margin-top: 1.5rem;
}

.housing-progress-pills span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

.housing-progress-pills span.is-filled {
  background: #ad8a52;
}


/* =========================
   RIGHT PANEL MIDDLE
========================= */

.housing-why-block {
  padding: 28px;
  border-bottom: 1px solid #e8e8e8;
}

.housing-why-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5rem;
  font-weight: 800;
  color: #071b3a;
}

.housing-why-block > p {
  margin: 18px 0 32px;
  font-size: 15px;
  line-height: 1.65;
  color: #6b7280;
}

.housing-benefit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

.housing-benefit + .housing-benefit {
  margin-top: 2.5rem;
}

.housing-benefit-icon {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) saturate(100%) invert(9%) sepia(49%) saturate(1824%) hue-rotate(191deg) brightness(91%) contrast(98%);
}

.housing-benefit strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: #071b3a;
}

.housing-benefit span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}


/* =========================
   RIGHT PANEL BOTTOM
========================= */

.housing-help-block {
  padding: 28px;
}

.housing-help-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5rem;
  font-weight: 800;
  color: #071b3a;
}

.housing-help-block p {
  margin: 1.5rem 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

.housing-phone-link {
  margin-top: 2rem;
  min-height: 54px;
  border: 1.5px solid #071b3a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #071b3a;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.housing-phone-icon {
  width: 22px !important;
  height: 22px !important;
  filter: brightness(0) saturate(100%) invert(9%) sepia(49%) saturate(1824%) hue-rotate(191deg) brightness(91%) contrast(98%);
}

/* =========================
   7. CLOSE BUTTON
========================= */

.housing-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #071b3a;
  z-index: 10;
}

.housing-close:hover {
  opacity: 0.65;
}


/* =========================
   8. GLOBAL ICON BASE
========================= */

.housing-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}


/* =========================
   9. ICON SIZE VARIANTS
========================= */

.housing-close-icon {
  width: 20px;
  height: 20px;
}

.housing-step-check {
  width: 16px;
  height: 16px;
}

.housing-secure-icon {
  width: 18px;
  height: 18px;
}

.housing-placeholder-icon {
  width: 64px;
  height: 64px;
}

.housing-benefit-icon {
  width: 20px;
  height: 20px;
}

.housing-phone-icon {
  width: 18px;
  height: 18px;
}

.housing-btn-icon {
  width: 16px;
  height: 16px;
}


/* =========================
   MIDDLE PANEL BASE
========================= */

.housing-content {
  padding-left: 3rem;
  padding-right: 3rem;
  background: transparent;
}

.housing-step-header {
  margin-bottom: 3rem;
}

.housing-step-header p {
  margin: 0 0 1.5rem;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #374151;
}

.housing-step-header h1 {
  margin: 0 0 1.5rem;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: #071b3a;
}

.housing-step-header span {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}


/* =========================
   STEP 1 OPTION GRID
========================= */

.housing-step-one-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.housing-option-card {
  position: relative;
  min-height: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #071b3a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
}

.housing-option-card:hover {
  border: 1px solid #071b3a;
}

.housing-option-card.is-selected {
  border: 1px solid #071b3a;
  background: rgba(244, 248, 252, 0.6);
}

.housing-option-icon {
  width: 44px !important;
  height: 44px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-option-card strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #071b3a;
}

.housing-option-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
}

.housing-option-check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.housing-option-card.is-selected .housing-option-check {
  background: #071b3a;
  border-color: #071b3a;
}

.housing-option-check-icon {
  width: 14px !important;
  height: 14px !important;
  filter: brightness(0) invert(1);
}


/* =========================
   STEP 1 FULL WIDTH NOTE
========================= */

.housing-option-note {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(244, 248, 252, 0.6);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 2rem;
}

.housing-option-note-icon {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-option-note strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #071b3a;
}

.housing-option-note p {
  margin: 0.35rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}


/* =========================
   MIDDLE PANEL BUTTONS
========================= */

.housing-nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.housing-btn-primary,
.housing-btn-secondary {
  min-height: 54px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #071b3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.75rem;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.housing-btn-primary:hover,
.housing-btn-secondary:hover,
.housing-btn-primary:active,
.housing-btn-secondary:active {
  background: #071b3a;
  color: #f3f4f6;
}

.housing-btn-primary:hover .housing-btn-icon,
.housing-btn-secondary:hover .housing-btn-icon,
.housing-btn-primary:active .housing-btn-icon,
.housing-btn-secondary:active .housing-btn-icon {
  filter: brightness(0) invert(1);
}

/* =========================
   STEP 3 HOUSEHOLD FORM
========================= */

.housing-household-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.housing-household-card {
  min-height: 96px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.housing-household-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.housing-household-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(173, 138, 82, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.housing-household-icon {
  width: 26px !important;
  height: 26px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-household-left strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #071b3a;
}

.housing-household-left p {
  margin: 0.4rem 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
}

.housing-stepper {
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 48px 64px 48px;
  overflow: hidden;
  background: #ffffff;
}

.housing-stepper button {
  border: none;
  background: #ffffff;
  color: #071b3a;
  font-size: 22px;
  cursor: pointer;
}

.housing-stepper span {
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071b3a;
  font-size: 20px;
  font-weight: 800;
}

.housing-pet-type-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.housing-pet-select {
  width: min(360px, 100%);
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 1rem;
  background: #ffffff;
  color: #071b3a;
  font-size: 15px;
}

.housing-additional-title {
  margin: 1rem 0 0.25rem;
  font-size: 16px;
  font-weight: 800;
  color: #374151;
}

.housing-toggle {
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 76px 76px;
  overflow: hidden;
  background: #ffffff;
}

.housing-toggle button {
  border: none;
  background: #ffffff;
  color: #071b3a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.housing-toggle button + button {
  border-left: 1px solid #e5e7eb;
}

.housing-toggle button.is-selected {
  background: #071b3a;
  color: #ffffff;
}

/* =========================
   STEP 4 WIDTH FIX
========================= */

.housing-step-one-grid .housing-option-card:nth-child(4),
.housing-step-one-grid .housing-option-card:nth-child(5) {
  grid-column: span 1;
}

/* Only when there are 5 option cards before the note */
.housing-step-one-grid:has(.housing-option-card:nth-child(5):nth-last-child(2)) {
  grid-template-columns: repeat(6, 1fr);
}

.housing-step-one-grid:has(.housing-option-card:nth-child(5):nth-last-child(2)) .housing-option-card {
  grid-column: span 2;
}

.housing-step-one-grid:has(.housing-option-card:nth-child(5):nth-last-child(2)) .housing-option-card:nth-child(4),
.housing-step-one-grid:has(.housing-option-card:nth-child(5):nth-last-child(2)) .housing-option-card:nth-child(5) {
  grid-column: span 3;
}

.housing-step-one-grid:has(.housing-option-card:nth-child(5):nth-last-child(2)) .housing-option-note {
  grid-column: 1 / -1;
}


/* =========================
   AWARD BADGE SIZE FIX
========================= */

.housing-option-note-icon {
  width: 38px !important;
  height: 38px !important;
}

/* =========================
   STEP 5 PAYMENT
========================= */

.housing-payment-step {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.housing-payment-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.housing-payment-card {
  position: relative;
  min-height: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #071b3a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
}

.housing-payment-card:hover,
.housing-payment-card.is-selected {
  border-color: #071b3a;
  background: rgba(244, 248, 252, 0.6);
}

.housing-payment-icon {
  width: 34px !important;
  height: 34px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-payment-card strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  color: #071b3a;
}

.housing-dynamic-form {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 1.5rem;
}

.housing-dynamic-form-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.housing-dynamic-form-icon {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-dynamic-form-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #071b3a;
}

.housing-dynamic-form-header p {
  margin: 0.35rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.housing-dynamic-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.housing-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.housing-field-full {
  grid-column: 1 / -1;
}

.housing-field span {
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.housing-field input,
.housing-field select,
.housing-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #071b3a;
  padding: 0 1rem;
  font-size: 14px;
  font-family: inherit;
}

.housing-field textarea {
  min-height: 110px;
  padding-top: 1rem;
  resize: vertical;
}

/* =========================
   STEP 6 LOCATION
========================= */

.housing-location-step {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.housing-location-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.75rem;
}

.housing-radius-field > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.housing-info-button {
  position: relative;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.housing-info-icon {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.65;
}

.housing-info-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 240px;
  transform: translateX(-50%);
  background: #071b3a;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.housing-info-button:hover .housing-info-popover,
.housing-info-button:focus .housing-info-popover {
  opacity: 1;
}

.housing-location-tags-block h3 {
  margin: 0 0 1rem;
  font-size: 15px;
  font-weight: 800;
  color: #071b3a;
}

.housing-location-tags-block h3 span {
  font-weight: 500;
  color: #6b7280;
}

.housing-location-tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.housing-location-tag {
  min-height: 72px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #071b3a;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
}

.housing-location-tag:hover,
.housing-location-tag.is-selected {
  border-color: #ad8a52;
  background: rgba(244, 248, 252, 0.6);
}

.housing-location-tag-icon {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) saturate(100%) invert(9%) sepia(49%) saturate(1824%) hue-rotate(191deg) brightness(91%) contrast(98%);
}

.housing-location-tag.is-selected .housing-location-tag-icon {
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-location-tag span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.housing-damaged-residence-card {
  border: 1px solid #eadfcf;
  border-radius: 12px;
  background: rgba(173, 138, 82, 0.08);
  padding: 1.15rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.housing-damaged-residence-left {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 1rem;
}

.housing-damaged-residence-icon {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-damaged-residence-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #071b3a;
}

.housing-damaged-residence-left p {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: #6b7280;
}

.housing-radio-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.housing-radio-row button {
  border: none;
  background: transparent;
  color: #071b3a;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  cursor: pointer;
}

.housing-radio-row button span {
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
}

.housing-radio-row button.is-selected span {
  border: 5px solid #ad8a52;
}

.housing-search-preview {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #ffffff;
}

.housing-search-preview-left {
  padding: 1.5rem;
  background: rgba(244, 248, 252, 0.7);
}

.housing-search-preview-left h3 {
  margin: 0 0 1.25rem;
  font-size: 15px;
  font-weight: 800;
  color: #071b3a;
}

.housing-search-preview-left p {
  margin: 0 0 0.85rem;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  align-items: center;
  font-size: 13px;
  color: #374151;
}

.housing-preview-icon {
  width: 17px !important;
  height: 17px !important;
  filter: brightness(0) saturate(100%) invert(9%) sepia(49%) saturate(1824%) hue-rotate(191deg) brightness(91%) contrast(98%);
}

.housing-search-preview-left small {
  display: block;
  margin-top: 1rem;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.housing-map-preview {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(7, 27, 58, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(7, 27, 58, 0.08) 1px, transparent 1px),
    #eef2f5;
  background-size: 42px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #071b3a;
}

.housing-map-radius {
  position: absolute;
  width: 145px;
  height: 145px;
  border: 2px dashed rgba(7, 27, 58, 0.5);
  border-radius: 999px;
}

.housing-map-pin {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #071b3a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.housing-map-pin-icon {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) invert(1);
}

.housing-map-preview strong {
  margin-top: 0.75rem;
  z-index: 2;
  font-size: 16px;
  font-weight: 800;
}

.housing-map-preview span {
  margin-top: 0.25rem;
  z-index: 2;
  font-size: 13px;
  color: #6b7280;
}
/* =========================
   STEP 7 PROPERTY PREFERENCES
========================= */

.housing-property-step {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.housing-property-section h3 {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 800;
  color: #071b3a;
}

.housing-property-section h3 span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.housing-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.housing-amenity-card {
  position: relative;
  min-height: 74px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.25rem 1rem 1rem;
  text-align: left;
  cursor: pointer;
}

.housing-amenity-card:hover,
.housing-amenity-card.is-selected {
  border-color: #ad8a52;
  background: rgba(244, 248, 252, 0.6);
}

.housing-amenity-icon {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) saturate(100%) invert(9%) sepia(49%) saturate(1824%) hue-rotate(191deg) brightness(91%) contrast(98%);
}

.housing-amenity-card.is-selected .housing-amenity-icon {
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-amenity-label strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #071b3a;
}

.housing-amenity-label small {
  display: block;
  margin-top: 0.2rem;
  font-size: 12px;
  color: #6b7280;
}

.housing-soft-divider {
  height: 1px;
  background: rgba(232, 232, 232, 0.75);
}

.housing-occupancy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.housing-size-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 1.5rem;
}

.housing-size-header {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.housing-size-icon {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-size-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #071b3a;
}

.housing-size-header p {
  margin: 0.35rem 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
}

.housing-segmented-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.housing-segmented-control button {
  min-height: 46px;
  border: none;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
  color: #071b3a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.housing-segmented-control button:last-child {
  border-right: none;
}

.housing-segmented-control button.is-selected {
  background: #071b3a;
  color: #ffffff;
}

.housing-notes-label > span {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 16px;
  font-weight: 800;
  color: #071b3a;
}

.housing-notes-label > span small {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.housing-notes-wrap {
  position: relative;
}

.housing-notes-wrap textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem 1rem 2.25rem;
  color: #071b3a;
  font-size: 15px;
  line-height: 1.55;
  font-family: inherit;
  resize: none;
}

.housing-notes-counter {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 12px;
  color: #6b7280;
}

/* =========================
   STEP 8 SUCCESS
========================= */

.housing-success-step {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.housing-success-card,
.housing-response-time-card {
  border: 1px solid #cfe8dc;
  border-radius: 16px;
  background: #eefaf3;
  padding: 1.75rem;
}

.housing-success-card {
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  gap: 1.5rem;
  align-items: center;
}

.housing-success-icon {
  width: 52px !important;
  height: 52px !important;
  filter: brightness(0) saturate(100%) invert(46%) sepia(18%) saturate(1321%) hue-rotate(94deg) brightness(92%) contrast(88%);
}

.housing-success-icon-wrap {
  align-self: baseline;
}

.housing-success-house-icon {
  width: 90px !important;
  height: 90px !important;
}

.housing-success-content h3,
.housing-request-summary h3,
.housing-response-time-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #071b3a;
}

.housing-success-content p,
.housing-request-summary p,
.housing-response-time-card p {
  margin: 0.5rem 0 0;
  color: #6b7280;
}

.housing-success-summary {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.housing-success-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 800;
  color: #071b3a;
}

.housing-success-mini-check {
  width: 14px !important;
  height: 14px !important;
}

.housing-request-summary {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 1.75rem;
}

.housing-summary-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.housing-edit-summary-btn {
  border: 1px solid #071b3a;
  border-radius: 10px;
  background: #ffffff;
  color: #071b3a;
  padding: 0.75rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.housing-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.housing-summary-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(244, 248, 252, 0.6);
  padding: 1rem;
}

.housing-summary-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #071b3a;
}

.housing-summary-card p {
  margin: 0.4rem 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.housing-response-time-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  background: rgba(244, 248, 252, 0.6);
  border-color: #e5e7eb;
}

.housing-response-time-icon {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-final-actions {
  display: flex;
  justify-content: flex-start;
}

.housing-call-final-btn {
  min-height: 54px;
  border: 1.5px solid #071b3a;
  border-radius: 10px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #071b3a;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
/* =========================
   STEP 8 CONTACT CONFIRMATION
========================= */

.housing-contact-confirmation {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 1.75rem;
}

.housing-contact-confirmation-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.housing-contact-confirmation-icon {
  width: 30px !important;
  height: 30px !important;
  filter: brightness(0) saturate(100%) invert(57%) sepia(19%) saturate(976%) hue-rotate(359deg) brightness(89%) contrast(85%);
}

.housing-contact-confirmation h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #071b3a;
}

.housing-contact-confirmation p {
  margin: 0.4rem 0 0;
  color: #6b7280;
}