/* HR Assessment landing pages — Bark-style multi-step questionnaire */

.hr-assessment-page .hr-landing-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    overflow: hidden;
}

.hr-landing-hero-bg {
    position: absolute;
    inset: 0;
}

.hr-landing-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hr-landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
}

.hr-landing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hr-landing-hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hr-landing-copy {
    color: var(--text-on-dark);
}

.hr-landing-copy h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.hr-landing-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.92);
    max-width: 56ch;
}

.hr-page-purpose {
    margin: 0.35rem 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
    max-width: 48ch;
}

.hr-page-consultants .hr-landing-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(30, 64, 175, 0.45));
}

.hr-page-payroll .hr-landing-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(4, 120, 87, 0.42));
}

.hr-page-recruitment .hr-landing-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(124, 58, 237, 0.4));
}

.hr-page-compliance .hr-landing-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(180, 83, 9, 0.42));
}

.hr-sibling-pages {
    background: var(--bg-soft);
}

.hr-sibling-pages-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hr-sibling-pages-header p {
    color: var(--text-muted);
    margin: 0;
}

.hr-sibling-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hr-sibling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hr-sibling-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hr-sibling-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--glass-border);
    min-height: 100%;
}

.hr-sibling-card.is-current {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.hr-sibling-name {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.hr-sibling-purpose {
    margin: 0;
    flex: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.hr-sibling-current-label {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.hr-sibling-link {
    align-self: flex-start;
    font-size: 0.85rem;
}

.hr-breadcrumb {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.82);
}

.hr-breadcrumb a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.hr-breadcrumb a:hover {
    color: #fff;
}

.hr-seo-content {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 70ch;
}

.hr-faq-section {
    background: #fff;
}

.hr-faq-header {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.hr-faq-header p {
    color: var(--text-muted);
    margin: 0;
}

.hr-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.hr-faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.25rem 1rem;
    background: var(--bg-soft);
}

.hr-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
    list-style: none;
}

.hr-faq-item summary::-webkit-details-marker {
    display: none;
}

.hr-faq-item p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.hr-trust-panel {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 520px;
}

.hr-trust-title {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: #fff;
}

.hr-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.hr-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.95rem;
}

.hr-trust-list i {
    color: var(--brand-primary-light);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.hr-landing-card {
    background: #fff;
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hr-landing-card-label {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.hr-location-search {
    display: flex;
    gap: 0.75rem;
}

.hr-location-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font: inherit;
}

.hr-location-go {
    flex-shrink: 0;
    min-width: 72px;
}

.hr-landing-intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hr-landing-intro p {
    color: var(--text-muted);
}

.hr-coverage-note {
    font-size: 0.95rem;
    margin-top: 1rem;
}

.hr-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}

.hr-service-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.9rem;
}

.hr-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.hr-assessment-open {
    overflow: hidden;
}

.hr-assessment-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hr-assessment-modal[hidden] {
    display: none !important;
}

.hr-assessment-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hr-assessment-dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: min(92vh, 860px);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hr-assessment-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.hr-assessment-header {
    position: relative;
    padding: 1rem 3rem 0.75rem 1.25rem;
}

.hr-assessment-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.hr-assessment-progress-bar {
    height: 100%;
    width: 0;
    background: var(--brand-primary);
    transition: width 0.25s ease;
}

.hr-assessment-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.hr-assessment-error {
    margin: 0 1.25rem 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.92rem;
}

.hr-assessment-steps {
    flex: 1;
    overflow: auto;
    padding: 0.5rem 1.25rem 1rem;
}

.hr-assessment-step {
    display: none;
}

.hr-assessment-step.is-active {
    display: block;
}

.hr-assessment-step-title {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    color: #1e3a5f;
    margin: 0 0 1.25rem;
}

.hr-field-input,
.hr-field-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--text-main);
}

.hr-field-textarea {
    resize: vertical;
    min-height: 120px;
}

.hr-option-list {
    display: grid;
}

.hr-option-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.hr-option-item-other {
    grid-template-columns: auto 1fr;
}

.hr-option-item input[type="radio"],
.hr-option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
}

.hr-option-label {
    font-size: 1rem;
    color: var(--text-main);
}

.hr-option-other-input {
    grid-column: 2;
    margin-top: 0.35rem;
}

.hr-follow-up {
    margin-top: 1rem;
}

.hr-follow-up-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.hr-contact-fields {
    display: grid;
    gap: 1rem;
}

.hr-contact-field {
    display: grid;
    gap: 0.35rem;
}

.hr-contact-field span {
    font-weight: 600;
    font-size: 0.92rem;
}

.hr-assessment-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.hr-assessment-footer [hidden],
.hr-assessment-continue[hidden],
.hr-assessment-submit[hidden],
.hr-assessment-back[hidden] {
    display: none !important;
}

.hr-assessment-terms {
    margin: 0;
    padding: 0 1.25rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.hr-assessment-terms a {
    color: var(--brand-primary-dark);
}

@media (max-width: 640px) {
    .hr-assessment-modal {
        padding: 0;
        align-items: stretch;
    }

    .hr-assessment-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .hr-location-search {
        flex-direction: column;
    }

    .hr-location-go {
        width: 100%;
    }
}
