/* OSL Finder ("Property alerts") - /homefinder.aspx + Control/searchformcontrol.ascx in Finder mode.
   The page container carries BOTH classes: advSearch-Container (so every form control, range, segmented button and brand colour comes from
   /CSS/advsearch.css, exactly as on the Advanced Search page) and finderPage (this file: the wizard card, stepper, steps 2-3, footer and the
   success panel). Everything here is scoped to .finderPage, so the Advanced Search page and other templates are untouched.
   Brand colours: --adv-primary / --adv-primary-text, set by homefinder.aspx.vb from the website's submit-button colours. */

.finderPage{
    --fd-border:#E5E7EB;
    --fd-muted-text:#6B7280;
    --fd-error:#B91C1C;
    --fd-tint:color-mix(in srgb, var(--adv-primary) 12%, #fff);
}

/* ---- the wizard card (advsearch.css makes the wizard transparent: here the whole wizard is the card, the step-1 form is not) ---- */
.finderPage.advSearch-Container #finderWizard{
    display:flex;flex-direction:column;gap:24px;max-width:800px;margin:0 auto;padding:32px;
    background:#fff;border:1px solid var(--fd-border);border-radius:8px;box-shadow:none;
}
.finderPage.advSearch-Container .SearchInfo{max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;}
.finderPage .k-wizard-content, .finderPage .k-wizard-steps, .finderPage .k-wizard-step{padding:0 !important;margin:0 !important;border:0;background:transparent;}
.finderPage .k-wizard-step:focus, .finderPage .k-wizard-step.k-focus{outline:0;box-shadow:none;}
.finderPage .hfcontent{display:flex;flex-direction:column;gap:20px;margin:0;padding:0;}

/* ---- step headings ---- */
.finderPage .hfheader{display:block;margin:0;padding:0;font-size:21px;font-weight:600;line-height:1.3;color:#111827;text-transform:none;border:0;}
.finderPage .finderStepIntro{margin:-12px 0 0;padding:0;font-size:15px;line-height:1.5;color:var(--fd-muted-text);}

/* ---- stepper: steps evenly across, brand colour for the current step, neutral for the rest, a tick on completed steps ---- */
.finderPage .k-stepper{margin:0;padding:0;}
.finderPage .k-stepper .k-step-list-horizontal{display:grid !important;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0;margin:0;padding:0;}
.finderPage .k-stepper .k-step{min-width:0;max-width:none !important;width:auto !important;flex:none;}
.finderPage .k-stepper .k-step-link{max-width:none;width:100%;gap:6px;}
.finderPage .k-stepper .k-step-indicator{
    width:36px;height:36px;border-radius:50%;border:2px solid #D1D5DB;background:#fff;color:var(--fd-muted-text);
    font-size:15px;font-weight:600;box-shadow:none;transition:background-color .15s, border-color .15s, color .15s;
}
.finderPage .k-stepper .k-step-indicator::after{display:none;}           /* Kendo's own focus ring */
.finderPage .k-stepper .k-step-label{max-width:none;font-size:14px;font-weight:500;color:var(--fd-muted-text);white-space:normal;text-align:center;line-height:1.3;}
.finderPage .k-stepper .k-step-label .k-step-text{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;}
.finderPage .k-stepper .k-step-current .k-step-indicator, .finderPage .k-stepper .k-step-current:hover .k-step-indicator{background:var(--adv-primary);border-color:var(--adv-primary);color:var(--adv-primary-text);}
.finderPage .k-stepper .k-step-current .k-step-label{color:#111827;font-weight:600;}
.finderPage .k-stepper .k-step-done .k-step-indicator{background:var(--fd-tint);border-color:var(--adv-primary);color:var(--adv-primary);position:relative;}
.finderPage .k-stepper .k-step-done .k-step-label{color:#111827;}
/* completed: a tick instead of the number */
.finderPage .k-stepper .k-step-done:not(.k-step-current) .k-step-indicator-text, .finderPage .k-stepper .k-step-done:not(.k-step-current) .k-step-indicator-icon{visibility:hidden;}
.finderPage .k-stepper .k-step-done:not(.k-step-current) .k-step-indicator::before{
    content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:var(--adv-primary);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.finderPage .k-stepper .k-step-link:focus-visible .k-step-indicator{outline:2px solid var(--adv-primary);outline-offset:2px;}
.finderPage .k-stepper .k-progressbar{background:#E5E7EB;height:2px;top:17px;}
.finderPage .k-stepper .k-progressbar .k-selected, .finderPage .k-stepper .k-progressbar .k-progressbar-value{background:var(--adv-primary);border-color:var(--adv-primary);}

/* ---- step 1: requirements ---- */
/* property type on its own row, then the location lists side by side (region / district / suburb, each with its own label) */
.finderPage.advSearch-Container [id$="pnlSearchLeft"] .RadAjaxPanel:has([id$="pnlPropertyType"]),
.finderPage.advSearch-Container [id$="pnlPropertyType"], .finderPage.advSearch-Container [id$="pnlLocation"]{grid-column:1 / -1;}
.finderPage.advSearch-Container [id$="pnlLocation"] > .cap{display:none;}
/* auto-fit: a site with one location list gets it full width, two (District | Suburb) or three sit side by side, phones get one column;
   lists a site does not use (display:none, e.g. District and Suburb on business websites) take no column */
.finderPage.advSearch-Container [id$="pnlLocation"] > .tbl-cell:not(.cap){display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:20px 24px;}
.finderPage.advSearch-Container [id$="pnlLocation"] > .tbl-cell:not(.cap) > *{margin:0 !important;min-width:0;}
.finderPage.advSearch-Container [id$="pnlLocation"] > .tbl-cell:not(.cap) > :has(.k-multiselect, .k-dropdownlist, .RadComboBox) ~ :has(.k-multiselect, .k-dropdownlist, .RadComboBox){margin-top:0 !important;}
.finderPage [id$="pnlStateCombo"]::before, .finderPage [id$="pnlRegionCombo"]::before, .finderPage [id$="pnlCitycombo"]::before,
.finderPage [id$="pnlOffice"]::before, .finderPage [id$="pnlsuburbsearch"]::before{display:block;margin:0 0 6px;font-size:14px;font-weight:500;line-height:1.3;}
.finderPage [id$="pnlStateCombo"]::before{content:"State";}
.finderPage [id$="pnlRegionCombo"]::before{content:"Region";}
.finderPage [id$="pnlCitycombo"]::before{content:"District";}
.finderPage [id$="pnlOffice"]::before{content:"Office";}
.finderPage [id$="pnlsuburbsearch"]::before{content:"Suburb";}
.finderPage .RadComboBox{width:100% !important;}
.finderPage .k-dropdown, .finderPage .mobilepage .k-dropdown{width:100% !important;}

/* Save (signed-in subscribers updating their alert) */
.finderPage .finderSaveRow{display:flex;justify-content:flex-end;}
.finderPage .finderSaveRow:not(:has(.kendoButton)){display:none;}
.finderPage .finderSaveRow .kendoButton{min-width:140px;height:44px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;border-radius:var(--adv-radius);background:var(--adv-primary);border:1px solid var(--adv-primary);color:var(--adv-primary-text);cursor:pointer;}

/* ---- step 2: your details ---- */
.finderPage .finderDetails{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 16px;margin:0;padding:0;}
.finderPage .finderField{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;cursor:default;}
.finderPage .finderFieldWide, .finderPage .finderAllRequired{grid-column:1 / -1;}
.finderPage .finderLabel{font-size:14px;font-weight:500;line-height:1.3;color:inherit;}
.finderPage .finderField .k-input.k-textbox{width:100% !important;height:44px;min-height:44px;padding:0 12px;font-size:16px;}
.finderPage .finderField .k-input.k-textbox:focus{border-color:var(--adv-primary) !important;box-shadow:0 0 0 3px var(--adv-ring);outline:0;}
.finderPage .finderFieldMsg{display:none;font-size:13px;line-height:1.3;color:var(--fd-error);}
.finderPage .finderField.invalidField .finderFieldMsg{display:block;}
.finderPage .finderField.invalidField .k-input.k-textbox{border-color:var(--fd-error) !important;}
.finderPage .finderEmailMsg{display:block;visibility:hidden;font-size:13px;line-height:1.3;color:var(--fd-error);}
.finderPage .finderAllRequired{margin:0;font-size:13px;color:var(--fd-muted-text);}

/* ---- step 3: review ---- */
.finderPage .finderReview{display:flex;flex-direction:column;gap:16px;}
.finderPage .finderReviewGroup{border:1px solid var(--fd-border);border-radius:var(--adv-radius);padding:16px 20px;}
.finderPage .finderReviewHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;}
.finderPage .finderReviewHead h3{margin:0;padding:0;font-size:17px;font-weight:600;line-height:1.3;color:#111827;}
.finderPage .finderEdit{min-height:44px;margin:-10px -8px;padding:0 8px;background:none;border:0;font:inherit;font-size:15px;font-weight:500;color:var(--adv-primary);cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.finderPage .finderEdit:focus-visible{outline:2px solid var(--adv-primary);outline-offset:2px;border-radius:4px;}
.finderPage .finderSummary{display:flex;flex-direction:column;gap:10px;min-height:0 !important;margin:0;padding:0;}
.finderPage .finderSummary > span:empty{display:none;}
.finderPage .finderRow{display:grid;grid-template-columns:160px minmax(0,1fr);gap:4px 16px;align-items:baseline;overflow:visible;padding:0;}
.finderPage .finderRow:not(:has(.hfdetailcap)){display:none;}          /* the server hides a caption when there is nothing to show */
.finderPage .finderRow .hfdetailcap{float:none;width:auto;display:block;margin:0;font-size:14px;font-weight:500;color:var(--fd-muted-text);}
.finderPage .finderRow .finderVal{float:none;font-size:15px;line-height:1.45;color:#111827;overflow-wrap:anywhere;}
.finderPage .finderRow .finderVal span{float:none;}
.finderPage .finderRow .homefinderArea:empty{display:none;}

/* ---- footer: Back (left, secondary) - Continue / Create property alert (right, brand colour) ---- */
.finderPage .k-wizard-buttons{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:20px 0 0;border-top:1px solid var(--fd-border);}
.finderPage .k-wizard-buttons-left:empty{display:none;}
.finderPage .k-wizard-buttons-right{margin-left:auto;display:flex;gap:12px;flex:1 1 auto;justify-content:flex-end;}
.finderPage .k-wizard-buttons .k-button-solid-base{margin-right:auto !important;}   /* Back sits at the far left (Kendo puts it in the same group as Continue) */
.finderPage .k-wizard-pager{display:none !important;}
.finderPage .k-wizard-buttons .k-button{
    height:44px;min-width:120px;margin:0;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;
    font-size:16px;font-weight:600;border-radius:var(--adv-radius);box-shadow:none;cursor:pointer;
}
.finderPage .k-wizard-buttons .k-button .k-button-text{color:inherit !important;font-size:inherit;font-weight:inherit;}
.finderPage .k-wizard-buttons .k-button-solid-base, .finderPage .k-wizard-buttons [data-wizard-prev]{background:#fff !important;border:1px solid #D1D5DB !important;color:#374151 !important;}
.finderPage .k-wizard-buttons .k-button-solid-base:hover, .finderPage .k-wizard-buttons [data-wizard-prev]:hover{background:#F3F4F6 !important;}
.finderPage .k-wizard-buttons .k-button-solid-primary, .finderPage .k-wizard-buttons [data-wizard-next], .finderPage .k-wizard-buttons [data-wizard-done]{
    background:var(--adv-primary) !important;border:1px solid var(--adv-primary) !important;color:var(--adv-primary-text) !important;
}
.finderPage .k-wizard-buttons .k-button-solid-primary:hover{filter:brightness(.92);}
.finderPage .k-wizard-buttons .k-button:focus-visible{outline:2px solid var(--adv-primary);outline-offset:2px;}
.finderPage .k-wizard-buttons .k-button.k-disabled, .finderPage .k-wizard-buttons .k-button:disabled{opacity:.55;cursor:not-allowed;filter:none;}

/* ---- success ---- */
.finderPage .finderSuccess{
    max-width:800px;margin:0 auto;padding:48px 32px;text-align:center;
    background:#fff;border:1px solid var(--fd-border);border-radius:8px;
}
.finderPage .finderSuccess:focus{outline:0;}
.finderPage .finderSuccessIcon{
    width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:var(--fd-tint);position:relative;
}
.finderPage .finderSuccessIcon::before{
    content:"";position:absolute;inset:0;margin:auto;width:32px;height:32px;background:var(--adv-primary);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.finderPage .finderSuccess h2{margin:0 0 12px;padding:0;font-size:24px;font-weight:600;line-height:1.3;color:#111827;border:0;}
.finderPage .finderSuccess p{max-width:520px;margin:0 auto 28px;font-size:16px;line-height:1.55;color:#374151;}
.finderPage .finderBrowse{
    display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 24px;
    border:1px solid #D1D5DB;border-radius:var(--adv-radius);background:#fff;color:#374151;font-size:16px;font-weight:600;text-decoration:none;
}
.finderPage .finderBrowse:hover{background:#F3F4F6;color:#111827;text-decoration:none;}
.finderPage .finderBrowse:focus-visible{outline:2px solid var(--adv-primary);outline-offset:2px;}

/* ---- phones and small tablets: one column, full-width controls, ranges stay side by side (advsearch.css), readable steps ---- */
@media (max-width:767px){
    .finderPage.advSearch-Container #finderWizard{padding:20px 16px !important;gap:20px;}   /* !important: the control's old ".mobilepage #finderWizard{padding:0 !important}" */
    .finderPage .k-stepper .k-step-label{font-size:13px;}
    .finderPage .k-stepper .k-step-indicator{width:32px;height:32px;font-size:14px;}
    .finderPage .k-stepper .k-progressbar{top:15px;}
    .finderPage.advSearch-Container [id$="pnlLocation"] > .tbl-cell:not(.cap), .finderPage .finderDetails{grid-template-columns:minmax(0,1fr);}
    .finderPage .finderRow{grid-template-columns:minmax(0,1fr);gap:2px;}
    .finderPage .finderReviewGroup{padding:14px 16px;}
    .finderPage .k-wizard-buttons-right{flex:1 1 auto;justify-content:flex-end;}
    .finderPage .k-wizard-buttons .k-button-solid-primary{flex:1 1 auto;min-width:0;}
    .finderPage .finderSuccess{padding:32px 20px;}
}
