/* Hays Ride request form. Standalone page, no site header. */

.hr-page {
    --hr-blue: #0e62b0;
    --hr-blue-dark: #0b4f8c;
    --hr-line: #c8c8c8;
    --hr-ink: #1c1c1c;
    --hr-muted: #444;
    background: #fff;
    color: var(--hr-ink);
    min-height: 100vh;
    padding: 1.75rem 1rem 3rem;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hr-brand {
    text-align: center;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--hr-blue);
    margin: 0 0 0.35rem;
}

.hr-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #111;
}

.hr-subtitle {
    text-align: center;
    font-weight: 700;
    margin: 0.35rem auto 0.85rem;
    font-size: 1.02rem;
}

.hr-intro {
    max-width: 920px;
    margin: 0 auto 1.6rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.45;
}

.hr-steps {
    list-style: none;
    display: flex;
    max-width: 920px;
    margin: 0 auto 1.35rem;
    padding: 0;
}

.hr-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
}

.hr-step::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--hr-line);
}

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

.hr-step-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    width: 100%;
}

.hr-step-btn:disabled {
    cursor: default;
}

.hr-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--hr-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hr-blue);
    font-weight: 700;
    background: #fff;
    position: relative;
    z-index: 1;
}

.hr-step.is-current .hr-step-num,
.hr-step.is-done .hr-step-num {
    background: var(--hr-blue);
    color: #fff;
}

.hr-step-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #222;
    padding: 0 0.15rem;
}

.hr-card {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
    overflow: hidden;
    background: #fff;
}

.hr-card-head {
    background: var(--hr-blue);
    color: #fff;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.hr-card-body {
    padding: 1.2rem 1.35rem 1.5rem;
}

.hr-error {
    background: #fdecea;
    color: #8d1d18;
    border: 1px solid #f5c2c0;
    border-radius: 6px;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.9rem;
}

.hr-error[hidden] {
    display: none;
}

.hr-panel[hidden] {
    display: none;
}

.hr-lang-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.4rem 0 0.2rem;
}

.hr-lang {
    flex: 1 1 220px;
    max-width: 320px;
    border: 2px solid var(--hr-blue);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 600;
}

#haysRide [hidden] {
    display: none !important;
}

.hr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
}

.hr-span {
    grid-column: 1 / -1;
}

.hr-field label,
.hr-checkline,
.hr-choice {
    font-size: 0.92rem;
}

.hr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.28rem;
}

.req {
    color: #c62828;
    font-weight: 700;
}

.hr-input,
.hr-select,
.hr-textarea {
    width: 100%;
    background: #f3f3f3;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    color: inherit;
}

.hr-input:focus,
.hr-select:focus,
.hr-textarea:focus,
.hr-sign-canvas:focus {
    outline: 2px solid rgba(14, 98, 176, 0.35);
    border-color: var(--hr-blue);
}

.hr-input:disabled {
    color: #888;
}

.hr-textarea {
    min-height: 92px;
    resize: vertical;
    background: #fff;
}

.hr-span-2 {
    grid-column: 1 / -1;
}

.hr-checkline {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.35rem;
    cursor: pointer;
}

.hr-question {
    text-align: center;
    font-weight: 700;
    margin: 1.15rem 0 0.55rem;
}

.hr-inline-choices {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hr-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
}

.hr-radio,
.hr-check {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--hr-blue);
    background: #fff;
    margin: 0;
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
}

.hr-radio {
    border-radius: 50%;
}

.hr-radio:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hr-blue);
}

.hr-check {
    border-radius: 2px;
}

.hr-check:checked {
    background: var(--hr-blue);
}

.hr-check:checked::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.hr-section {
    border: 1px solid #cfcfcf;
    padding: 1.15rem 0.9rem 0.95rem;
    margin: 1.35rem 0 0;
    position: relative;
}

.hr-badge {
    position: absolute;
    top: -12px;
    left: 12px;
    background: #fff;
    color: #111;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.12rem 0.55rem;
    line-height: 1.3;
}

.hr-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.35rem;
    flex-wrap: wrap;
}

.hr-btn {
    background: var(--hr-blue);
    color: #fff;
    border: 0;
    border-radius: 6px;
    min-width: 168px;
    padding: 0.72rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.hr-btn:hover {
    background: var(--hr-blue-dark);
}

.hr-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hr-btn.is-busy:disabled {
    opacity: 0.65;
    cursor: wait;
}

.hr-btn-ghost {
    background: #fff;
    color: var(--hr-blue);
    border: 2px solid var(--hr-blue);
}

.hr-date-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.hr-date-col h3 {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #111;
}

.hr-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.4rem;
    margin-bottom: 0.9rem;
}

.hr-date-btn {
    border: 2px solid var(--hr-blue);
    background: #fff;
    color: var(--hr-blue);
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
}

.hr-date-btn.is-selected {
    background: #e7f2fb;
    box-shadow: inset 0 0 0 1px var(--hr-blue);
}

.hr-time-row {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.hr-time-row .hr-select {
    width: auto;
    min-width: 8.5rem;
    background: #e6e6e6;
}

.hr-help {
    color: var(--hr-muted);
    font-size: 0.92rem;
    margin: 0.8rem 0 0.4rem;
}

.hr-phone-type {
    justify-content: flex-start;
    margin: 0.15rem 0 0.45rem;
}

.hr-suggest {
    position: relative;
}

.hr-suggest-list {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow: auto;
}

.hr-suggest-list button {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eee;
    padding: 0.55rem 0.7rem;
    font: inherit;
    cursor: pointer;
    color: #111;
}

.hr-suggest-list button:hover,
.hr-suggest-list button:focus {
    background: #f4f8fb;
}

.hr-clear {
    margin-right: auto;
    align-self: center;
}

.hr-alt {
    position: relative;
    max-width: 280px;
}

.hr-alt-toggle {
    width: 100%;
    text-align: left;
    background: #e6e6e6;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    font: inherit;
    cursor: pointer;
}

.hr-alt-menu {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.4rem 0.55rem;
    max-height: 220px;
    overflow: auto;
}

.hr-alt-menu[hidden] {
    display: none;
}

.hr-voter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: end;
}

.hr-linkish {
    background: none;
    border: 0;
    color: #8d1d18;
    cursor: pointer;
    font: inherit;
    padding: 0.45rem 0.2rem;
}

.hr-add {
    margin-top: 0.35rem;
}

.hr-needs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hr-agreement {
    height: 32rem;
    max-height: 70vh;
    overflow: auto;
    border: 1px solid #d5d5d5;
    background: #fafafa;
    padding: 0.9rem 1rem;
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
}

.hr-sign-wrap {
    border: 1px solid #cfcfcf;
    border-bottom: 2px solid #222;
    background: #fff;
    border-radius: 4px 4px 0 0;
    touch-action: none;
}

.hr-sign-canvas {
    display: block;
    width: 100%;
    height: 160px;
    cursor: crosshair;
    background: transparent;
}

.hr-sign-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}

.hr-review h3 {
    margin: 1rem 0 0.35rem;
    color: var(--hr-blue);
    font-size: 1rem;
}

.hr-review dl {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.25rem 0.75rem;
    margin: 0;
}

.hr-review dt {
    font-weight: 700;
}

.hr-review dd {
    margin: 0;
}

.hr-sign-preview {
    max-width: 360px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 2px solid #222;
}

.hr-thanks {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem 2rem;
}

.hr-thanks h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hr-confirm {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hr-blue);
    letter-spacing: 0.04em;
}

.hr-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .hr-title {
        font-size: 1.85rem;
    }
    .hr-step-label {
        display: none;
    }
    .hr-step.is-current .hr-step-label {
        display: block;
        font-size: 0.68rem;
    }
    .hr-grid,
    .hr-date-cols,
    .hr-voter-row,
    .hr-review dl {
        grid-template-columns: 1fr;
    }
    .hr-card-body {
        padding: 1rem 0.85rem 1.15rem;
    }
    .hr-btn {
        width: 100%;
    }
    .hr-card-head {
        font-size: 1.35rem;
    }
}
