/* Shared "feature card" look for the content pages: Help Desk, About Us, Auction Results, Login, Registration.
   Matches the home / catalogue pages - neutral page background, white rounded cards. Colours stay neutral so they
   sit under every house colour scheme; --home-page-bg comes from jkCompany_Online_Pages (PageColoursStyle). */

.page-main { background: var(--home-page-bg, #f5f5f5); }
.page-main .content.full { padding-top: 0; }

/* top bar: breadcrumb + page title (replaces the old photo banner) */
.page-topbar { padding: 18px 0 6px; }
.page-topbar .breadcrumb { margin: 0 0 6px; padding: 0; background: transparent; font-size: 13px; text-align: left; }
.page-topbar .page-title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; text-transform: none; color: #222222; }

/* cards */
.page-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 26px 28px;
    margin: 18px 0 24px;
    overflow-wrap: break-word;
}
.page-card-title { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #ececec; font-size: 22px; font-weight: 800; line-height: 1.3; text-transform: none; }
.page-card-title:empty { display: none; }
.page-section-title { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid #ececec; font-size: 17px; font-weight: 700; text-transform: none; }
.page-card img { max-width: 100%; height: auto; border-radius: 12px; }
.page-card table { max-width: 100%; }
.page-card-row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.page-card-row > * { padding: 0 12px; }

/* form controls: softer, rounded */
.page-card .form-control { border-radius: 10px; height: auto; min-height: 42px; padding: 9px 12px; box-shadow: none; border-color: #d9d9d9; }
.page-card select.form-control { padding-right: 28px; }
.page-card .input-group .form-control { border-radius: 0 10px 10px 0; }
.page-card .input-group-addon { border-radius: 10px 0 0 10px; background: #f3f3f3; border-color: #d9d9d9; min-width: 44px; }
.page-card .input-group.date .form-control { border-radius: 10px 0 0 10px; }
.page-card .input-group.date .input-group-addon { border-radius: 0 10px 10px 0; }
.page-card .btn { border-radius: 999px; padding-left: 26px; padding-right: 26px; }
.page-card label { font-weight: 600; margin-top: 10px; }
.page-card .row + .row { margin-top: 2px; }

/* ---- Help Desk / About Us: house content ---- */
.page-content { font-size: 15px; line-height: 1.65; }

/* ---- Auction Results ---- */
/* label + dropdown on one line, centred on each other. Margins/floats/padding are forced because some house
   custom.css files give labels and selects their own margins, floats and padding */
.page-card .results-select { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-card .results-select > label {
    flex: none; float: none !important; display: block !important; width: auto !important;
    margin: 0 !important; padding: 0 !important; line-height: 42px !important; height: auto !important;
    vertical-align: middle; white-space: nowrap; position: static !important; top: auto !important;
}
.page-card .results-select > select.form-control {
    flex: 1 1 320px; max-width: 560px; float: none !important; display: block !important; width: auto;
    margin: 0 !important; height: 42px !important; min-height: 42px; padding-top: 0 !important; padding-bottom: 0 !important;
    line-height: 40px; vertical-align: middle; position: static !important; top: auto !important;
}
.results-note { display: block; margin-bottom: 14px; color: #666666; font-size: 13px; }
.results-table { width: 100%; margin: 0; }
.results-table > thead > tr > td { border: 0; border-bottom: 2px solid #ececec; font-weight: 700; font-size: 13px; text-transform: uppercase; color: #666666; padding: 10px 8px; }
.results-table > tbody > tr > td { vertical-align: middle; border-top: 1px solid #f0f0f0; padding: 12px 8px; }
.results-table .res-img { width: 110px; }
.results-table .res-img img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.results-table .res-lot { width: 90px; text-align: center; }
.results-table .res-bid { width: 140px; text-align: right; font-weight: 700; white-space: nowrap; }
.res-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eeeeee; font-size: 13px; font-weight: 700; color: #222222; white-space: nowrap; }
@media (max-width: 599px) {
    .results-table > thead { display: none; }
    .results-table > tbody > tr { display: grid; grid-template-columns: 84px 1fr auto; gap: 6px 12px; padding: 14px 0; border-top: 1px solid #f0f0f0; }
    .results-table > tbody > tr > td { display: block; border: 0; padding: 0; width: auto; text-align: left; }
    .results-table .res-img { grid-row: 1 / span 3; width: 84px; }
    .results-table .res-img img { width: 84px; height: 64px; }
    .results-table .res-lot { grid-column: 2; }
    .results-table .res-bid { grid-column: 3; grid-row: 1; text-align: right; }
    .results-table .res-desc { grid-column: 2 / span 2; }
    .results-table .res-result { grid-column: 2 / span 2; }
}

/* ---- Login ---- */
.login-card .input-group { margin-bottom: 14px; }
.login-card .btn-primary { min-width: 140px; }
.login-card .accordion-group { border: 0; box-shadow: none; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #ececec; background: transparent; }
.login-card .accordion-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.login-card .accordion-inner { padding: 14px 0 0; border: 0; }
.terms-card .terms-body { max-height: 520px; overflow-y: auto; padding-right: 8px; font-size: 14px; line-height: 1.6; }
.terms-card .terms-body table { margin-bottom: 0; }

/* ---- Registration ---- */
.reg-card .small-italic-text { font-size: 12px; color: #777777; margin-top: 4px; }
.reg-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.reg-submit .checkbox-inline { padding-left: 0; font-weight: 600; }
/* terms checkbox: box and text on one line, centred on each other (Bootstrap positions the box absolutely and
   .page-card label adds a top margin, which pushed the text below the box) */
.reg-submit .checkbox-inline { display: inline-flex !important; align-items: center; gap: 10px; margin: 0; }
.reg-submit .checkbox-inline input[type=checkbox] { position: static !important; float: none !important; margin: 0 !important; width: 20px; height: 20px; flex: none; cursor: pointer; }
.reg-submit .checkbox-inline label { margin: 0 !important; padding: 0 !important; font-weight: 600; line-height: 1.4; cursor: pointer; }
.reg-submit .btn-lg { width: auto; min-width: 220px; }
.reg-submit-note { margin-top: 14px; color: #666666; font-size: 13px; }

@media (max-width: 767px) {
    .page-topbar .page-title { font-size: 24px; }
    .page-card { padding: 18px; border-radius: 16px; margin: 12px 0 18px; }
    .reg-submit .btn-lg { width: 100%; }
}

/* ---- Contact Us ---- */
.contact-row { display: flex; flex-wrap: wrap; }
.contact-row > div { display: flex; }
.contact-row .page-card { flex: 1 1 auto; width: 100%; }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.55; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.contact-list li:first-child { padding-top: 0; }
.contact-list li > i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f1f1f1; color: #444444; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.contact-extra { margin-top: 14px; font-size: 14px; line-height: 1.6; }
.contact-extra:empty { display: none; }
.enquiry-card .page-content:empty { display: none; }
.enquiry-card .page-content { margin-bottom: 14px; }
.enquiry-card textarea.form-control { min-height: 228px; resize: vertical; }
.enquiry-card .btn-lg { margin-top: 4px; }
.contact-map-card { padding: 0; overflow: hidden; }
.contact-map-card #contact-map { width: 100%; height: 380px; }
@media (max-width: 767px) {
    .contact-row > div { width: 100%; }
    .contact-map-card #contact-map { height: 280px; }
    .enquiry-card .btn-lg { float: none !important; width: 100%; }
}

/* Registration "Your details": three columns, each filled top to bottom (tab order goes down a column),
   so on a phone the fields stack in the same order instead of row by row across the columns */
.reg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.reg-col { min-width: 0; }
.reg-field { margin-bottom: 4px; }
@media (max-width: 991px) { .reg-cols { grid-template-columns: minmax(0, 1fr); } }

/* My Bids (MyOnlineBids.aspx): the Auction Results table with the bid columns */
.mybids-table .mb-val { width: 110px; text-align: right; white-space: nowrap; }
.mybids-table > tbody > tr > td.mb-val { font-weight: 600; }
.mybids-table .mb-high { font-weight: 800; }
.mybids-table .mb-title { display: block; font-weight: 700; color: #222222; }
.mybids-table .mb-desc { margin-top: 4px; font-size: 13px; color: #666666; }
@media (max-width: 767px) {
    .mybids-table > thead { display: none; }
    .mybids-table > tbody > tr { display: grid; grid-template-columns: 84px repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 14px 0; border-top: 1px solid #f0f0f0; }
    .mybids-table > tbody > tr > td { display: block; border: 0; padding: 0; width: auto; text-align: left; }
    .mybids-table .res-img { grid-row: 1 / span 4; width: 84px; }   /* photo down the left; the 4 bid values sit 2 x 2 beside it */
    .mybids-table .res-img img { width: 84px; height: 64px; }
    .mybids-table .res-lot { grid-column: 2 / span 2; }
    .mybids-table .res-desc { grid-column: 2 / span 2; }
    .mybids-table .mb-val { grid-column: auto; text-align: left; font-size: 14px; }
    .mybids-table .mb-val::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #888888; }
}
