/*
    Path in theme: platform/themes/real-scout/public/css/wizard/property-wizard.css
    Served copy:   public/themes/real-scout/css/wizard/property-wizard.css (keep both in sync manually)

    Visual language borrowed from the homepage's "How It Works" section
    (platform/themes/real-scout/public/css/home-page-new/how-it-works.css)
    and its design tokens (home-page-new/header.css), adapted from a static
    explainer into a real progress tracker with active/completed/locked
    states. Falls back to its own :root tokens so it also renders correctly
    inside layouts (admin, member/account dashboards) that never load the
    homepage header partial.
*/

:root {
    --pw-navy: #1a1d24;
    --pw-navy-light: #22262f;
    --pw-gold: #e0a63e;
    --pw-gold-hover: #cf9530;
    --pw-white: #ffffff;
    --pw-text-muted: #6b7280;
    --pw-border: #e6e2d8;
    --pw-bg: #f6f2ea;
    --pw-danger: #c0392b;
    --pw-font-heading: 'Playfair Display', Georgia, serif;
    --pw-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pw-max-width: 1100px;
}

.property-wizard, .property-wizard * {
    box-sizing: border-box;
}

.property-wizard {
    font-family: var(--pw-font-body);
    color: var(--pw-navy);
    max-width: var(--pw-max-width);
    margin: 0 auto;
    /* Top padding is deliberately small - every host layout this renders
       inside (admin's breadcrumb bar, member/agent dashboards' own pt-5)
       already adds its own top spacing above the content area, so a large
       value here just stacks on top of that. */
    padding: 8px 20px 80px;
    -webkit-font-smoothing: antialiased;
}

.property-wizard h1, .property-wizard h2, .property-wizard h3, .property-wizard h4 {
    font-family: var(--pw-font-heading);
    color: var(--pw-navy);
    margin: 0;
}

.property-wizard__intro {
    text-align: center;
    margin-bottom: 36px;
}

.property-wizard__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pw-gold-hover);
    margin-bottom: 8px;
}

.property-wizard__title {
    font-size: 30px;
    margin-bottom: 8px;
}

.property-wizard__subtitle {
    color: var(--pw-text-muted);
    font-size: 15px;
}

/* =========================================================
   OVERALL PROGRESS BAR
   ========================================================= */
.wizard-progress {
    background: var(--pw-white);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px rgba(26, 29, 36, 0.06);
}

.wizard-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.wizard-progress__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-progress__percent {
    font-size: 18px;
    font-weight: 700;
    color: var(--pw-gold-hover);
    font-family: var(--pw-font-heading);
}

.wizard-progress__track {
    height: 8px;
    border-radius: 999px;
    background: var(--pw-bg);
    overflow: hidden;
}

.wizard-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pw-gold), var(--pw-gold-hover));
    transition: width 0.3s ease;
}

/* =========================================================
   GLOBAL 6-STEP JOURNEY TRACKER
   ========================================================= */
.wizard-global-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--pw-white);
    border-radius: 16px;
    padding: 28px 24px 22px;
    margin-bottom: 28px;
    box-shadow: 0 6px 24px rgba(26, 29, 36, 0.06);
    overflow-x: auto;
}

.wizard-global-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 110px;
    padding: 0 6px;
}

.wizard-global-step::before {
    content: '';
    position: absolute;
    top: 22px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--pw-border);
    z-index: 0;
}

.wizard-global-step:first-child::before {
    display: none;
}

.wizard-global-step--completed::before,
.wizard-global-step--current::before {
    background: var(--pw-gold);
}

.wizard-global-step__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pw-bg);
    color: var(--pw-text-muted);
    font-size: 16px;
    margin-bottom: 10px;
    border: 2px solid var(--pw-border);
    transition: all 0.2s ease;
}

.wizard-global-step__link:hover .wizard-global-step__icon {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--pw-gold);
    box-shadow: 0 10px 20px rgba(224, 166, 62, 0.28);
}

.wizard-global-step__link:hover .wizard-global-step__label {
    color: var(--pw-gold-hover) !important;
}

.wizard-global-step--current .wizard-global-step__icon {
    background: var(--pw-gold);
    border-color: var(--pw-gold);
    color: var(--pw-white);
    box-shadow: 0 0 0 5px rgba(224, 166, 62, 0.18);
}

.wizard-global-step--completed .wizard-global-step__icon {
    background: var(--pw-navy);
    border-color: var(--pw-navy);
    color: var(--pw-white);
}

.wizard-global-step__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pw-navy);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.wizard-global-step--disabled .wizard-global-step__label {
    color: #b8bcc4;
}

.wizard-global-step--disabled .wizard-global-step__icon {
    opacity: 0.55;
}

.wizard-global-step__link {
    /* !important: the admin panel's own link styles (blue, underlined)
       otherwise win over this since they're loaded after/with a more
       specific selector. */
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   SUB-WIZARD (Submit Ad) 4-PILL HEADER
   ========================================================= */
.wizard-sub-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.wizard-sub-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    font-size: 13.5px;
    font-weight: 600;
    /* !important: fighting the admin panel's own default link color and
       underline, which otherwise win over these (same on .wizard-btn and
       .wizard-global-step__link below). */
    color: var(--pw-text-muted) !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.wizard-sub-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pw-bg);
    color: var(--pw-text-muted);
    font-size: 12px;
}

.wizard-sub-step--current {
    background: var(--pw-navy);
    border-color: var(--pw-navy);
    color: var(--pw-white) !important;
}

.wizard-sub-step--current .wizard-sub-step__num {
    background: var(--pw-gold);
    color: var(--pw-white);
}

.wizard-sub-step--completed {
    border-color: var(--pw-gold);
    color: var(--pw-navy) !important;
}

.wizard-sub-step--completed .wizard-sub-step__num {
    background: var(--pw-gold);
    color: var(--pw-white);
}

.wizard-sub-step--locked {
    opacity: 0.5;
    cursor: not-allowed;
}

a.wizard-sub-step:hover:not(.wizard-sub-step--locked) {
    border-color: var(--pw-gold);
    background: var(--pw-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(224, 166, 62, 0.2);
}

/* =========================================================
   FORM PANEL
   ========================================================= */
.wizard-panel {
    background: var(--pw-white);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 6px 24px rgba(26, 29, 36, 0.06);
}

/* Specificity note: needs to beat ".property-wizard h1/h2/h3/h4" above
   (which sets the decorative heading serif) - a bare class selector alone
   is lower specificity than that element+class rule, so this stays scoped
   to its actual parent rather than relying on source-order to win. */
.wizard-panel .wizard-panel__heading {
    font-family: var(--pw-font-body);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.wizard-panel__description {
    color: var(--pw-text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.wizard-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wizard-field-grid--single {
    grid-template-columns: 1fr;
}

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wizard-field--span2 {
    grid-column: 1 / -1;
}

.wizard-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-navy);
}

.wizard-field label.required::after {
    content: " *";
    color: var(--pw-danger);
    font-weight: 700;
}

.wizard-field .wizard-hint {
    font-size: 12px;
    color: var(--pw-text-muted);
    font-weight: 400;
}

.wizard-required-notice {
    font-size: 13px;
    color: var(--pw-text-muted);
    margin: -6px 0 20px;
}

.wizard-required-notice .wizard-required-notice__mark {
    color: var(--pw-danger);
    font-weight: 700;
}

/* Listing-type toggle (For Sale / For Rent) */
.wizard-toggle-group {
    display: flex;
    gap: 12px;
}

.wizard-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid var(--pw-border);
    background: var(--pw-white);
    color: var(--pw-navy);
    font-family: var(--pw-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-toggle-btn i {
    font-size: 17px;
    color: var(--pw-text-muted);
    transition: color 0.15s ease;
}

.wizard-toggle-btn:hover {
    border-color: var(--pw-gold);
}

.wizard-toggle-btn--active {
    border-color: var(--pw-gold);
    background: var(--pw-gold);
    color: var(--pw-white);
    box-shadow: 0 6px 16px rgba(224, 166, 62, 0.3);
}

.wizard-toggle-btn--active i {
    color: var(--pw-white);
}

/* Category / sub-category chip rows */
.wizard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-chip-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--pw-border);
    background: var(--pw-white);
    color: var(--pw-navy);
    font-family: var(--pw-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-chip-btn:hover {
    border-color: var(--pw-gold);
}

.wizard-chip-btn--active {
    background: var(--pw-gold);
    border-color: var(--pw-gold);
    color: var(--pw-white);
    box-shadow: 0 6px 16px rgba(224, 166, 62, 0.3);
}

.wizard-chip-row:empty::after {
    content: attr(data-empty-label);
    font-size: 13px;
    color: var(--pw-text-muted);
    font-style: italic;
}

.wizard-input, .wizard-select, .wizard-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--pw-border);
    font-family: var(--pw-font-body);
    font-size: 14px;
    color: var(--pw-navy);
    background: var(--pw-white);
}

.wizard-input:focus, .wizard-select:focus, .wizard-textarea:focus {
    outline: none;
    border-color: var(--pw-gold);
    box-shadow: 0 0 0 3px rgba(224, 166, 62, 0.15);
}

/* On the member/agent/admin wizard (embedded in the account/admin layout,
   unlike the public guest wizard), `select:not([multiple])` from the admin
   panel's base theme CSS (vendor/core/core/base/css/themes/default.css)
   forces border-radius back to 0 on every <select> - its :not() argument
   makes it slightly more specific than a plain .wizard-select class rule,
   so it wins regardless of stylesheet order. Scoping under .wizard-panel
   raises this rule's specificity above that one. */
.wizard-panel select.wizard-select {
    border-radius: 10px;
}

/* =========================================================
   SEARCHABLE SELECT (Choose Agent, everywhere it's embedded)
   ========================================================= */
.wizard-searchable-select {
    position: relative;
}

.wizard-select--hidden {
    display: none;
}

.wizard-searchable-select__control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--pw-border);
    font-family: var(--pw-font-body);
    font-size: 14px;
    color: var(--pw-navy);
    background: var(--pw-white);
    cursor: pointer;
    text-align: left;
}

.wizard-searchable-select__control:focus {
    outline: none;
    border-color: var(--pw-gold);
    box-shadow: 0 0 0 3px rgba(224, 166, 62, 0.15);
}

.wizard-searchable-select__control i {
    color: var(--pw-text-muted);
    font-size: 12px;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.wizard-searchable-select--open .wizard-searchable-select__control i {
    transform: rotate(180deg);
}

.wizard-searchable-select__control-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wizard-searchable-select--disabled .wizard-searchable-select__control {
    background: var(--pw-bg);
    color: var(--pw-text-muted);
    cursor: not-allowed;
}

.wizard-searchable-select__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(26, 29, 36, 0.14);
    overflow: hidden;
}

.wizard-searchable-select__panel[hidden] {
    display: none;
}

.wizard-searchable-select__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pw-border);
    color: var(--pw-text-muted);
}

.wizard-searchable-select__search {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--pw-font-body);
    font-size: 14px;
    color: var(--pw-navy);
    background: transparent;
}

.wizard-searchable-select__options {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.wizard-searchable-select__option {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--pw-navy);
    cursor: pointer;
}

.wizard-searchable-select__option:hover,
.wizard-searchable-select__option--active {
    background: var(--pw-bg);
}

.wizard-searchable-select__option--selected {
    background: rgba(224, 166, 62, 0.15);
    font-weight: 600;
}

.wizard-searchable-select__empty {
    padding: 16px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--pw-text-muted);
}

.wizard-textarea {
    resize: vertical;
    min-height: 110px;
}

.wizard-input-group {
    display: flex;
    gap: 8px;
}

/* Searchable dropdown (country/state/city/city-area) */
.wizard-combobox {
    position: relative;
}

.wizard-combobox__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 10px 28px rgba(26, 29, 36, 0.14);
    z-index: 30;
}

.wizard-combobox__menu--open {
    display: block;
}

.wizard-combobox__option {
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--pw-navy);
    cursor: pointer;
}

.wizard-combobox__option:hover {
    background: var(--pw-bg);
}

.wizard-combobox__empty {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--pw-text-muted);
    font-style: italic;
}

.wizard-map-notice {
    background: #fdf3e0;
    border: 1px solid rgba(224, 166, 62, 0.4);
    color: #8a5a12;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.wizard-error {
    color: var(--pw-danger);
    font-size: 12.5px;
    min-height: 16px;
}

.wizard-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wizard-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 12px;
    border: 1px solid var(--pw-border);
    border-radius: 10px;
}

.wizard-checkbox input {
    accent-color: var(--pw-gold);
    width: 16px;
    height: 16px;
}

.wizard-facility-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

[data-facility-add] {
    margin-bottom: 14px;
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    /* !important: same admin-panel-link-style fight as .wizard-sub-step
       and .wizard-global-step__link above. */
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.wizard-btn--primary {
    background: var(--pw-gold);
    color: var(--pw-white) !important;
}

.wizard-btn--primary:hover:not([disabled]) {
    background: var(--pw-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(224, 166, 62, 0.35);
}

.wizard-btn--ghost {
    background: transparent;
    color: var(--pw-navy) !important;
    border: 1px solid var(--pw-border);
}

.wizard-btn--ghost:hover:not([disabled]) {
    border-color: var(--pw-gold);
    background: var(--pw-bg);
    color: var(--pw-gold-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(224, 166, 62, 0.18);
}

.wizard-btn--danger {
    background: transparent;
    color: var(--pw-danger);
    border: 1px solid rgba(192, 57, 53, 0.3);
    padding: 8px 14px;
}

.wizard-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-panel__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pw-border);
}

/* =========================================================
   UPLOAD DROPZONE
   ========================================================= */
.wizard-upload {
    border: 2px dashed var(--pw-border);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: var(--pw-text-muted);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.wizard-upload:hover, .wizard-upload--dragover {
    border-color: var(--pw-gold);
}

.wizard-upload i {
    font-size: 26px;
    color: var(--pw-gold);
    margin-bottom: 8px;
    display: block;
}

.wizard-upload input[type="file"] {
    display: none;
}

.wizard-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.wizard-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--pw-border);
    aspect-ratio: 1 / 1;
    background: var(--pw-bg);
}

.wizard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wizard-thumb__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(26, 29, 36, 0.75);
    color: var(--pw-white);
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.wizard-thumbs--documents {
    display: block;
}

.wizard-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 13.5px;
    background: var(--pw-white);
    transition: all 0.18s ease;
}

.wizard-doc-item:hover {
    border-color: var(--pw-gold);
    box-shadow: 0 8px 18px rgba(224, 166, 62, 0.14);
}

.wizard-doc-item__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--pw-bg);
    color: var(--pw-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wizard-doc-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.wizard-doc-item__name {
    font-weight: 600;
    color: var(--pw-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-doc-item__meta {
    font-size: 11.5px;
    color: var(--pw-text-muted);
}

.wizard-doc-item__remove, .wizard-doc-item__download {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.wizard-doc-item__remove {
    background: var(--pw-bg);
    color: var(--pw-danger);
}

.wizard-doc-item__remove:hover {
    background: var(--pw-danger);
    color: var(--pw-white) !important;
}

.wizard-doc-item__download {
    background: var(--pw-bg);
    color: var(--pw-navy) !important;
}

.wizard-doc-item__download:hover {
    background: var(--pw-gold);
    color: var(--pw-white) !important;
}

/* =========================================================
   DOCUMENT CARDS (Review / Ad Verification display)
   ========================================================= */
.wizard-doc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.wizard-doc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--pw-white);
    transition: all 0.18s ease;
}

.wizard-doc-card:hover {
    border-color: var(--pw-gold);
    box-shadow: 0 8px 18px rgba(224, 166, 62, 0.14);
}

.wizard-doc-card__preview {
    aspect-ratio: 4 / 3;
    background: var(--pw-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pw-gold-hover);
    font-size: 34px;
    overflow: hidden;
}

.wizard-doc-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wizard-doc-card__name {
    padding: 10px 12px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pw-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-doc-card__actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    margin-top: auto;
}

.wizard-doc-card__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 8px;
    border: 1px solid var(--pw-border);
    background: var(--pw-bg);
    color: var(--pw-navy) !important;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-doc-card__btn:hover {
    background: var(--pw-gold);
    border-color: var(--pw-gold);
    color: var(--pw-white) !important;
}

.wizard-doc-card__btn--primary {
    background: var(--pw-navy);
    border-color: var(--pw-navy);
    color: var(--pw-white) !important;
}

.wizard-doc-card__btn--primary:hover {
    background: var(--pw-gold);
    border-color: var(--pw-gold);
}

/* =========================================================
   REVIEW STEP
   ========================================================= */
.wizard-review-section {
    margin-bottom: 26px;
}

.wizard-review-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wizard-review-section__head h3 {
    font-family: var(--pw-font-body);
    font-size: 18px;
    font-weight: 600;
}

/* Specificity note: needs to beat ".property-wizard h4" above, same reason
   as the ".wizard-panel .wizard-panel__heading" override further up. */
.wizard-review-section .wizard-review-subheading {
    font-family: var(--pw-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 12px;
}

.wizard-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.wizard-review-item dt {
    font-size: 12px;
    color: var(--pw-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wizard-review-item dd {
    margin: 2px 0 0;
    font-size: 14.5px;
    color: var(--pw-navy);
}

.wizard-guest-auth {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px dashed var(--pw-border);
}

.wizard-guest-auth h3 {
    margin: 0 0 20px;
}

.wizard-guest-auth__toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.wizard-guest-auth__toggle label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--pw-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}

.wizard-guest-auth__toggle input {
    margin-right: 6px;
}

/* =========================================================
   PLACEHOLDER PAGE
   ========================================================= */
.wizard-placeholder {
    background: var(--pw-white);
    border-radius: 16px;
    padding: 60px 36px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(26, 29, 36, 0.06);
}

.wizard-placeholder i {
    font-size: 40px;
    color: var(--pw-gold);
    margin-bottom: 16px;
    display: block;
}

/* A neutral, "nothing to show right now" tone rather than the golden
   success/celebratory one above - used for the no-agents-available state. */
.wizard-placeholder--empty i {
    color: var(--pw-text-muted);
}

/* =========================================================
   CHOOSE AGENT STEP
   ========================================================= */
.wizard-agent-card {
    display: none;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 24px;
    border-radius: 16px;
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
}

.wizard-agent-card--visible {
    display: flex;
}

.wizard-agent-card__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pw-white);
    box-shadow: 0 6px 16px rgba(26, 29, 36, 0.12);
    flex-shrink: 0;
}

.wizard-agent-card__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pw-navy);
    color: var(--pw-white);
    font-family: var(--pw-font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.wizard-agent-card__body {
    flex: 1;
    min-width: 0;
}

.wizard-agent-card__name {
    font-family: var(--pw-font-heading);
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--pw-navy);
}

.wizard-agent-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--pw-text-muted);
    margin: 0 0 4px;
}

.wizard-agent-card__meta i {
    width: 16px;
    color: var(--pw-gold-hover);
}

.wizard-agent-card__bio {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--pw-navy);
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .wizard-global-steps {
        justify-content: flex-start;
        gap: 18px;
    }

    .wizard-field-grid {
        grid-template-columns: 1fr;
    }

    .wizard-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-review-grid {
        grid-template-columns: 1fr;
    }

    .wizard-doc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .wizard-panel {
        padding: 24px 18px;
    }

    .wizard-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-global-step__label {
        display: none;
    }

    .wizard-global-step__icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .wizard-sub-step span:not(.wizard-sub-step__num) {
        display: none;
    }
}

@media (max-width: 480px) {
    .property-wizard {
        padding: 20px 12px 60px;
    }

    .wizard-doc-grid {
        grid-template-columns: 1fr;
    }

    .wizard-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .wizard-facility-row {
        grid-template-columns: 1fr;
    }

    .wizard-panel__actions {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
    }

    .wizard-panel__actions .wizard-btn {
        width: 100%;
    }
}

/* =========================================================
   AD VERIFICATION STEP
   ========================================================= */
.wizard-verify-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.wizard-verify-status--gap-top {
    margin-top: 24px;
}

.wizard-verify-status i {
    font-size: 20px;
}

.wizard-verify-status strong {
    color: var(--pw-gold-hover);
    font-weight: 700;
}

.wizard-verify-status--pending {
    background: var(--pw-bg);
    color: var(--pw-navy);
}

.wizard-verify-status--pending i {
    color: var(--pw-gold);
}

.wizard-verify-status--success {
    background: rgba(34, 139, 34, 0.1);
    color: #1e6b1e;
}

.wizard-verify-status--success i {
    color: #1e8a1e;
}

.wizard-chat {
    margin-top: 24px;
}

.wizard-chat__thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 24px;
}

.wizard-chat__message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.wizard-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wizard-chat__bubble {
    background: var(--pw-bg);
    border-radius: 12px;
    padding: 10px 14px;
}

.wizard-chat__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
}

.wizard-chat__meta strong {
    font-size: 13px;
}

.wizard-chat__role {
    color: var(--pw-gold-hover);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 10px;
}

.wizard-chat__time {
    color: var(--pw-text-muted);
    margin-left: auto;
}

.wizard-chat__text {
    margin: 0;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.wizard-chat__message--member {
    margin-left: auto;
    flex-direction: row-reverse;
}

.wizard-chat__message--member .wizard-chat__bubble {
    background: rgba(224, 166, 62, 0.15);
}

.wizard-chat__message--admin .wizard-chat__bubble {
    background: #eef1f5;
}

.wizard-chat__input {
    width: 100%;
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

@media (max-width: 480px) {
    .wizard-chat__message {
        max-width: 100%;
    }
}

/* =========================================================
   SIGN CONTRACT STEP
   ========================================================= */
.wizard-contract-document {
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.wizard-contract-document__header {
    border-bottom: 1px solid var(--pw-border);
    padding: 20px 24px 16px;
    margin: 0;
}

.wizard-contract-document__title {
    font-family: var(--pw-font-heading);
    font-size: 20px;
    margin: 0 0 6px;
}

.wizard-contract-document__ref {
    font-size: 13px;
    color: var(--pw-text-muted);
    margin: 0;
}

.wizard-contract-document__body {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
}

.wizard-contract-document__body p {
    margin: 0 0 14px;
}

.wizard-contract-document__body ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.wizard-contract-document__placeholder-note {
    font-style: italic;
    color: var(--pw-text-muted);
    font-size: 12px;
}

.wizard-contract-pdf {
    display: block;
    width: 100%;
    height: 85vh;
    min-height: 700px;
    max-height: 1100px;
    border: none;
    border-radius: 0 0 8px 8px;
    background: var(--pw-white);
    box-sizing: border-box;
}

.wizard-signature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.wizard-signature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--pw-border);
}

.wizard-signature-row--signed {
    background: rgba(34, 139, 34, 0.06);
    border-color: rgba(34, 139, 34, 0.25);
}

.wizard-signature-row--pending {
    background: var(--pw-white);
}

.wizard-signature-row__who {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.wizard-signature-row--signed .wizard-signature-row__who i {
    color: #1e8a1e;
}

.wizard-signature-row--pending .wizard-signature-row__who i {
    color: var(--pw-text-muted);
}

.wizard-signature-row__label {
    font-weight: 600;
}

.wizard-signature-row__name {
    color: var(--pw-text-muted);
}

.wizard-signature-row__status {
    font-size: 13px;
    font-weight: 600;
}

.wizard-signature-row--signed .wizard-signature-row__status {
    color: #1e8a1e;
}

.wizard-signature-row--pending .wizard-signature-row__status {
    color: var(--pw-text-muted);
}

.wizard-signature-row__sign-form {
    flex-shrink: 0;
}

.wizard-btn--small {
    padding: 8px 18px;
    font-size: 13px;
}

/* =========================================================
   ADMIN "MANAGE LISTING STATUS" MODAL TRIGGER
   ========================================================= */
.wizard-status-trigger-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.wizard-status-trigger-row--celebration {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.wizard-status-modal__alert {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.1);
    color: var(--pw-danger);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Self-styled rather than Bootstrap's own .close - guarantees a visible,
   consistently-placed close control regardless of whether the admin
   panel's base CSS happens to style/override .close inside a plain
   .modal-header the way this wizard's markup expects. Anchored to the
   header's own vertical center (not a fixed pixel offset from the modal
   edge) so it stays centered against the title regardless of the header's
   actual padding/line-height. */
#property-status-modal .modal-header {
    position: relative;
    padding-right: 54px;
}

.wizard-status-modal__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--pw-bg);
    color: var(--pw-navy);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-status-modal__close:hover {
    background: var(--pw-gold);
    color: var(--pw-white);
}

@media (max-width: 480px) {
    .wizard-signature-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================================
   PROPERTY DOCUMENT (Ad Verification)
   ========================================================= */
.wizard-document {
    position: relative;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    border-radius: 12px;
    padding: 32px 36px;
    overflow: hidden;
}

.wizard-document__header {
    border-bottom: 1px solid var(--pw-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.wizard-document__title {
    font-family: var(--pw-font-heading);
    font-size: 24px;
    margin: 0 0 6px;
}

.wizard-document__subtitle {
    font-size: 13px;
    color: var(--pw-text-muted);
    margin: 0;
}

.wizard-document__description {
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    white-space: pre-wrap;
}

.wizard-stamp {
    position: absolute;
    border: 3px double currentColor;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
}

.wizard-stamp--agent {
    color: #1e8a1e;
    top: 28px;
    right: 32px;
    transform: rotate(-9deg);
}

.wizard-stamp--admin {
    color: #d21f1f;
    top: 104px;
    right: 40px;
    transform: rotate(7deg);
}

@media (max-width: 640px) {
    .wizard-document {
        padding: 24px 20px;
    }

    .wizard-stamp {
        position: static;
        display: inline-block;
        transform: none;
        margin: 8px 8px 0 0;
    }
}

/* =========================================================
   AD LISTING - FINAL CELEBRATION SCREEN
   ========================================================= */
.wizard-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.wizard-celebration {
    background: var(--pw-white);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(26, 29, 36, 0.06);
    padding: 64px 40px;
    text-align: center;
    max-width: 620px;
    margin: 40px auto;
}

.wizard-celebration__icon {
    font-size: 56px;
    margin-bottom: 8px;
    line-height: 1;
}

.wizard-celebration__title {
    font-family: var(--pw-font-heading);
    font-size: 34px;
    margin: 8px 0 4px;
    color: var(--pw-navy);
}

.wizard-celebration__property {
    font-size: 18px;
    font-weight: 600;
    color: var(--pw-gold-hover);
    margin: 0 0 20px;
}

.wizard-celebration__message {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    max-width: 460px;
    margin: 0 auto 32px;
}

.wizard-celebration__link-card {
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 0 auto 32px;
}

.wizard-celebration__link-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pw-text-muted);
    margin-bottom: 10px;
}

.wizard-celebration__link-label i {
    color: var(--pw-gold-hover);
}

.wizard-celebration__link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wizard-celebration__link {
    font-family: var(--pw-font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pw-gold-hover) !important;
    text-decoration: none !important;
    word-break: break-all;
}

.wizard-celebration__link:hover {
    text-decoration: underline !important;
}

.wizard-celebration__copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--pw-border);
    background: var(--pw-white);
    color: var(--pw-navy);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-celebration__copy-btn:hover {
    border-color: var(--pw-gold);
    background: var(--pw-gold);
    color: var(--pw-white);
}

.wizard-celebration__copy-btn--copied {
    border-color: #2f9e44;
    background: rgba(47, 158, 68, 0.12);
    color: #1e6b1e;
}

.wizard-celebration__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .wizard-celebration {
        padding: 44px 24px;
    }

    .wizard-celebration__title {
        font-size: 26px;
    }

    .wizard-celebration__actions {
        flex-direction: column-reverse;
    }

    .wizard-celebration__actions .wizard-btn {
        width: 100%;
    }
}

/* =========================================================
   AD VERIFICATION - "GO TO CHAT" JUMP LINK
   ========================================================= */
html {
    scroll-behavior: smooth;
}

#wizard-chat {
    scroll-margin-top: 90px;
}

.wizard-chat-jump-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.wizard-chat-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--pw-white);
    border: 1px solid var(--pw-border);
    color: var(--pw-navy) !important;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.wizard-chat-jump:hover {
    border-color: var(--pw-gold);
    color: var(--pw-gold-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(224, 166, 62, 0.18);
}

.wizard-chat-jump__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pw-gold);
    color: var(--pw-white);
    font-size: 11px;
    font-weight: 700;
}
