/* Professionals list and professional profile. Scoped to .hr-pros. Tokens come from pages-redesign.css. */

.hr-pros { background: var(--hr-ground); font-family: 'Manrope', sans-serif; color: var(--hr-ink); min-height: 60vh; }
.hr-pros h1, .hr-pros h2, .hr-pros h3 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--hr-navy); }
.hr-pros-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hr-pros-head { padding: 40px 0 8px; }
.hr-pros-back { display: inline-block; margin-bottom: 14px; font-weight: 700; font-size: 15px; color: var(--hr-accent-dark); }
.hr-pros-head h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.01em; }
.hr-pros-sub { max-width: 640px; margin: 10px 0 0; font-size: 17px; line-height: 1.5; }
.hr-pros-pill { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--hr-green-soft); color: var(--hr-green); font-weight: 700; font-size: 14px; }

.hr-pros-body { padding: 24px 0 72px; }
.hr-pros-h2 { margin: 32px 0 16px; font-weight: 800; font-size: 24px; }
.hr-pros-h2:first-child { margin-top: 0; }

.hr-pros-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.hr-pros-filter label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--hr-navy); }
.hr-pros-filter select { min-width: 200px; height: 48px; padding: 0 14px; border: 1.5px solid #C9D3D9; border-radius: 12px; background: #fff; font: 500 16px 'Manrope', sans-serif; color: var(--hr-navy); }
.hr-pros-count { margin: 0 0 0 auto; font-size: 15px; color: var(--hr-muted); }

.hr-pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.hr-pro-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--hr-line); border-radius: 18px; color: inherit; }
.hr-pro-card:hover { border-color: var(--hr-accent); color: inherit; }
.hr-pro-top { display: flex; align-items: center; gap: 14px; }
.hr-pro-top h2 { margin: 0; font-weight: 800; font-size: 20px; line-height: 1.2; }
.hr-pro-city { margin: 2px 0 0; font-size: 14px; color: var(--hr-muted); }

.hr-pro-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 999px; object-fit: cover; background: var(--hr-accent-soft); color: var(--hr-accent-dark); }
.hr-pro-initial { font: 800 24px 'Plus Jakarta Sans', sans-serif; }
.hr-pro-avatar-lg { width: 84px; height: 84px; }
.hr-pro-initial.hr-pro-avatar-lg { font-size: 34px; }

.hr-pro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: 15px; }
.hr-pro-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hr-pro-meta b { color: var(--hr-navy); }
.hr-pro-new { color: var(--hr-muted); }
.hr-pro-verified { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; font-size: 14px; color: var(--hr-green); }

.hr-pro-services { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.hr-pro-services li { margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--hr-accent-soft); font-size: 13px; font-weight: 600; color: #0B5F8A; }
.hr-pro-services .hr-pro-more { background: transparent; color: var(--hr-muted); }

.hr-pro-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.hr-pro-from { margin: 0; font-size: 14px; color: var(--hr-muted); }
.hr-pro-from b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; color: var(--hr-navy); }

.hr-pros-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--hr-accent); color: #fff; font: 700 15px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.hr-pros-btn:hover { background: var(--hr-accent-dark); color: #fff; }

.hr-pros-empty { max-width: 520px; margin: 24px auto; padding: 40px 28px; text-align: center; background: #fff; border: 1px solid var(--hr-line); border-radius: 20px; }
.hr-pros-empty h2 { margin: 0 0 8px; font-weight: 800; font-size: 22px; }
.hr-pros-empty p { margin: 0 0 18px; }

/* Professional profile */
.hr-pro-hero { display: flex; align-items: center; gap: 20px; }
.hr-pro-hero h1 { margin: 0 0 6px; }

.hr-svc-list { display: flex; flex-direction: column; gap: 16px; }
.hr-svc { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; background: #fff; border: 1px solid var(--hr-line); border-radius: 18px; }
.hr-svc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.hr-svc-head h3 { margin: 0; font-weight: 800; font-size: 20px; }
.hr-svc-cat { margin: 2px 0 0; font-size: 14px; color: var(--hr-muted); }
.hr-svc-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hr-line); }
.hr-svc-items li { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hr-line); font-size: 15px; }
.hr-svc-items b { color: var(--hr-navy); white-space: nowrap; }
.hr-svc .hr-pros-btn { align-self: flex-start; }

.hr-rev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hr-rev { margin: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; }
.hr-rev p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.hr-rev .hr-rev-stars { display: flex; gap: 2px; }
.hr-rev footer { font-weight: 700; font-size: 14px; color: var(--hr-navy); }

@media (max-width: 575.98px) {
    .hr-pros-wrap { padding: 0 16px; }
    .hr-pros-filter > div, .hr-pros-filter select { width: 100%; }
    .hr-pros-count { margin: 0; }
    .hr-pro-hero { gap: 14px; }
    .hr-pro-avatar-lg { width: 64px; height: 64px; }
    .hr-svc { padding: 20px; }
}

/* Selecting services */
.hr-pros-hint { margin: -8px 0 18px; font-size: 16px; color: var(--hr-muted); }
.hr-svc-none { margin: 0; font-size: 15px; color: var(--hr-muted); }
.hr-svc-extras { margin: 6px 0 -6px; font: 700 14px 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hr-muted); }
.hr-svc-items li { align-items: center; flex-wrap: wrap; }
.hr-item-name { flex: 1 1 200px; min-width: 0; }
.hr-step { display: inline-flex; align-items: center; gap: 6px; }
.hr-step-btn { width: 40px; height: 40px; border: 1.5px solid #C9D3D9; border-radius: 10px; background: #fff; font: 700 20px 'Plus Jakarta Sans', sans-serif; line-height: 1; color: var(--hr-navy); cursor: pointer; }
.hr-step-btn:hover { border-color: var(--hr-accent); color: var(--hr-accent-dark); }
.hr-step input { width: 52px; height: 40px; padding: 0; border: 1.5px solid #C9D3D9; border-radius: 10px; text-align: center; font: 700 16px 'Manrope', sans-serif; color: var(--hr-navy); -moz-appearance: textfield; }
.hr-step input::-webkit-outer-spin-button, .hr-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hr-bar { position: sticky; bottom: 0; z-index: 20; margin: 24px -24px 0; padding: 14px 24px; background: #fff; border-top: 1px solid var(--hr-line); box-shadow: 0 -8px 24px rgba(18, 53, 74, 0.08); }
.hr-bar[hidden] { display: none; }
.hr-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 1152px; margin: 0 auto; }
.hr-bar-in p { margin: 0; font-size: 16px; }
.hr-bar-in b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; color: var(--hr-navy); }
.hr-bar-in .hr-bar-msg { flex-basis: 100%; font-size: 14px; color: #B3261E; }
.hr-bar-in .hr-bar-msg:empty { display: none; }

/* Booking page */
.hr-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.hr-book-main { display: flex; flex-direction: column; gap: 18px; }
.hr-card { margin: 0; padding: 24px 26px; background: #fff; border: 1px solid var(--hr-line); border-radius: 18px; min-width: 0; }
.hr-card legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font: 800 20px 'Plus Jakarta Sans', sans-serif; color: var(--hr-navy); }
.hr-field { margin-bottom: 16px; min-width: 0; }
.hr-field:last-child { margin-bottom: 0; }
.hr-field label, .hr-field .hr-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--hr-navy); }
.hr-field input[type="text"], .hr-field input[type="email"], .hr-field input[type="tel"], .hr-field input[type="date"], .hr-field select, .hr-field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #C9D3D9; border-radius: 12px; background: #fff; font: 500 16px 'Manrope', sans-serif; color: var(--hr-navy); }
.hr-field textarea { min-height: 84px; resize: vertical; }
.hr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hr-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--hr-muted); }
.hr-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.hr-slots-hint { margin: 0; font-size: 15px; color: var(--hr-muted); }
.hr-slot { position: relative; margin: 0 !important; }
.hr-slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.hr-slot span { display: block; padding: 11px 16px; border: 1.5px solid #C9D3D9; border-radius: 12px; background: #fff; font: 700 15px 'Manrope', sans-serif; color: var(--hr-navy); }
.hr-slot input:checked + span { border-color: var(--hr-accent); background: var(--hr-accent-soft); color: var(--hr-accent-dark); }
.hr-slot input:focus-visible + span { outline: 3px solid var(--hr-accent); outline-offset: 2px; }
.hr-pay-options { display: flex; flex-direction: column; gap: 12px; }
.hr-pay { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px 18px; border: 1.5px solid #C9D3D9; border-radius: 14px; background: #fff; cursor: pointer; }
.hr-pay:has(input:checked) { border-color: var(--hr-accent); background: var(--hr-accent-soft); }
.hr-pay input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--hr-accent); }
.hr-pay b { display: block; font: 700 16px 'Plus Jakarta Sans', sans-serif; color: var(--hr-navy); }
.hr-pay small { display: block; margin-top: 2px; font-size: 14px; color: var(--hr-ink); }
.hr-book-side { position: sticky; top: 24px; }
.hr-summary h2 { margin: 0 0 14px; font-weight: 800; font-size: 20px; }
.hr-summary-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hr-line); }
.hr-summary-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hr-line); font-size: 15px; }
.hr-summary-lines b { white-space: nowrap; color: var(--hr-navy); }
.hr-summary-total { margin: 12px 0 18px; }
.hr-summary-total div { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 15px; }
.hr-summary-total dt, .hr-summary-total dd { margin: 0; font-weight: 500; }
.hr-summary-total .hr-grand { padding-top: 8px; border-top: 1px solid var(--hr-line); }
.hr-summary-total .hr-grand dt, .hr-summary-total .hr-grand dd { font: 800 20px 'Plus Jakarta Sans', sans-serif; color: var(--hr-navy); }
.hr-pay-btn { width: 100%; min-height: 54px; font-size: 17px; }
.hr-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.hr-form-errors { margin-bottom: 20px; padding: 16px 20px; border-radius: 14px; background: #FDECEA; color: #8C1D18; font-size: 15px; }
.hr-form-errors ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 900px) {
    .hr-book-grid { grid-template-columns: 1fr; }
    .hr-book-side { position: static; }
}
@media (max-width: 575.98px) {
    .hr-field-row { grid-template-columns: 1fr; gap: 0; }
    .hr-card { padding: 20px; }
}

/* Required fields and validation */
.hr-required > label::after, .hr-required > .hr-label::after { content: " *"; color: #B3261E; font-weight: 800; }
.hr-star { color: #B3261E; }
.hr-field.is-invalid input, .hr-field.is-invalid select, .hr-field.is-invalid textarea { border-color: #B3261E; background: #FFF8F7; }
.hr-field.is-invalid input:focus, .hr-field.is-invalid select:focus, .hr-field.is-invalid textarea:focus { outline: 3px solid rgba(179, 38, 30, 0.25); outline-offset: 1px; }
.hr-field.is-invalid .hr-slot span { border-color: #B3261E; }
.hr-pay-options.is-invalid .hr-pay { border-color: #B3261E; background: #FFF8F7; }
.hr-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #B3261E; }
.hr-pay-options .hr-error { margin: 0; }
.hr-pay-options.hr-required > label::after { content: none; }
.hr-card legend + * { clear: both; }
.hr-field.is-invalid select { border: 1.5px solid #B3261E !important; }

/* Google address suggestions sit above the sticky bar and cards */
.pac-container { z-index: 10000 !important; border-radius: 12px; margin-top: 4px; font-family: 'Manrope', sans-serif; box-shadow: 0 12px 32px rgba(18, 53, 74, 0.16); }
.pac-item { padding: 8px 12px; font-size: 15px; }


/* Technician cards on the category page */
.hr-tc { display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; padding: 22px; background: #fff; border: 1px solid #DDE4E8; border-radius: 16px; color: #12354A; text-decoration: none; }
.hr-tc:hover { border-color: #0F78AE; color: #12354A; }
.hr-tc p, .hr-tc h2 { margin: 0; }
.hr-tc-head { display: flex; align-items: center; gap: 14px; }
.hr-tc-av { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font: 800 24px 'Plus Jakarta Sans', sans-serif; }
.hr-tc-tone-1 { background: #E8F3F9; color: #0B5F8B; }
.hr-tc-tone-2 { background: #EAF3EE; color: #1B6E48; }
.hr-tc-tone-3 { background: #F6EEDD; color: #8A5A00; }
.hr-tc-name { font: 700 18px/1.25 'Plus Jakarta Sans', sans-serif; color: #12354A; }
.hr-tc-place { display: flex; align-items: center; gap: 5px; margin-top: 4px; font: 500 14px 'Manrope', sans-serif; color: #4A5D6A; }
.hr-tc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-tc-b { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font: 700 13px 'Manrope', sans-serif; }
.hr-tc-ok { background: #E7F4EC; color: #1B6E48; }
.hr-tc-wait { background: #EEF1F3; color: #4A5D6A; }
.hr-tc-star { background: #FFF6DD; color: #7A5200; }
.hr-tc-plain { background: #fff; border: 1px solid #DDE4E8; color: #33495A; font-weight: 600; }
.hr-tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-tc-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 8px; background: #E8F3F9; color: #0B5F8B; font: 600 13px 'Manrope', sans-serif; }
.hr-tc-more { background: #fff; border: 1px solid #C9D3D9; color: #4A5D6A; }
.hr-tc-about { min-height: 44px; font: 500 14.5px/1.5 'Manrope', sans-serif; color: #33495A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #EEF1F3; }
.hr-tc-price { font: 500 14px 'Manrope', sans-serif; color: #4A5D6A; }
.hr-tc-price b { display: block; font: 800 18px 'Plus Jakarta Sans', sans-serif; color: #12354A; }
.hr-tc-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: #0F78AE; color: #fff; font: 700 15px 'Plus Jakarta Sans', sans-serif; }
@media (max-width: 640px) {
    .hr-tc { padding: 18px; }
    .hr-tc-foot { flex-direction: column; align-items: stretch; }
    .hr-tc-go { width: 100%; box-sizing: border-box; min-height: 48px; }
}
