/* RoadTests — global styles.
   The design keeps layout in inline styles; this file carries only what an inline
   style attribute cannot express: resets, keyframes, hover, media queries, and the
   checked-state rules that let choice controls respond without a round trip. */

body {
    margin: 0;
    color: #0F1B33;
    font-family: 'Public Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: #14387F; }
a:hover { color: #0d2a63; }

input, select, textarea, button { font-family: 'Public Sans', system-ui, sans-serif; }
input[type=range] { accent-color: #14387F; }
input:focus, select:focus, textarea:focus { outline: 2px solid #14387F; outline-offset: 1px; }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes foundPop {
    0% { transform: scale(.85); opacity: 0 }
    65% { transform: scale(1.02) }
    100% { transform: scale(1); opacity: 1 }
}

details summary::-webkit-details-marker { display: none; }
summary.rt-burger::-webkit-details-marker { display: none; }

/* --- Navigation ------------------------------------------------------------ */

.rt-mobilemenu { display: none; }

/* The bar is capped at 1140px, and the full link set stops fitting well before the
   old 920px breakpoint — it was wrapping onto a second row from about 1100px down,
   in English as well as French. Hand over to the burger while it still fits. */
@media (max-width: 1120px) {
    .rt-desknav { display: none !important; }
    .rt-mobilemenu { display: block !important; }
}

.rt-menuitem:hover { background: #F4F6FA; }
.rt-navlink:hover { color: #14387F; }
.rt-finder:hover { background: #EAF0FA; }

/* --- Hover treatments from the design -------------------------------------- */

.rt-herocard:hover { background: #F4F6FA; }
.rt-heroghost:hover { background: rgba(255, 255, 255, .16); }
.rt-servicecard:hover { border-color: #14387F; box-shadow: 0 12px 32px rgba(20, 56, 127, .08); }
.rt-centrecard:hover { border-color: #14387F; }

/* --- Choice controls -------------------------------------------------------
   Visually identical to the design's buttons, but backed by real inputs so
   selection is instant and the whole set posts on Continue. */

.rt-choice { position: relative; cursor: pointer; }
.rt-choice input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.rt-choice:has(input:checked) { border-color: #14387F !important; }

/* Checkbox tick */
.rt-choice .rt-box { background: #fff; }
.rt-choice:has(input:checked) .rt-box { background: #14387F; }
.rt-choice .rt-tick { opacity: 0; }
.rt-choice:has(input:checked) .rt-tick { opacity: 1; }

/* Radio dot */
.rt-choice .rt-dot { background: transparent; }
.rt-choice:has(input:checked) .rt-dot { background: #14387F; }

/* Tinted fill for the big selection tiles */
.rt-choice.rt-tinted:has(input:checked) { background: #F4F6FA; }

/* --- Primary continue button ----------------------------------------------- */

.rt-continue { background: #B9C1CF; cursor: not-allowed; }
.rt-continue:not(:disabled) { background: #14387F; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* --- Date fields ------------------------------------------------------------
   Each date is its own field with its own single-month calendar: a range picker
   asks people to hold two half-made decisions at once. The native inputs stay in
   the DOM as the value carriers, so the step still works without JavaScript. */

/* Two-up only when a column is wide enough to hold a date and its panel. */
.rt-daterow { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .rt-daterow { grid-template-columns: 1fr 1fr; } }

.rt-datewrap { position: relative; }

.rt-datefield {
    width: 100%; box-sizing: border-box; text-align: left; cursor: pointer;
    border: 1.5px solid #D8DEE9; border-radius: 10px; padding: 13px;
    font-size: 15px; font-variant-numeric: tabular-nums; color: #0F1B33;
    background: #fff; font-family: inherit; min-height: 47px;
}
.rt-datefield:hover { border-color: #14387F; }
.rt-datefield.is-empty { color: #98A2B5; }
.rt-datefield[aria-expanded="true"] { border-color: #14387F; }

/* Fixed, not absolute: the wizard card clips its children to get rounded corners, and
   an absolutely positioned panel was cut off at the card's edge. Fixed positioning
   escapes every ancestor's overflow; the script places it against the trigger. */
.rt-cal-pop {
    position: fixed; z-index: 60; width: 300px; max-width: calc(100vw - 24px);
    background: #fff; border: 1.5px solid #D8DEE9; border-radius: 12px;
    padding: 14px; box-shadow: 0 14px 34px rgba(15, 27, 51, .14);
    display: flex; flex-direction: column; gap: 10px;
}
.rt-cal-pop[hidden] { display: none; }



.rt-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rt-cal-title {
    font-family: Archivo, sans-serif; font-weight: 800; font-size: 14.5px; color: #0F1B33;
    font-variant-numeric: tabular-nums;
}
.rt-cal-nav {
    width: 32px; height: 32px; flex: none; border: 1.5px solid #D8DEE9; background: #fff;
    border-radius: 8px; cursor: pointer; color: #14387F; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.rt-cal-nav:hover:not(:disabled) { background: #EAF0FA; border-color: #14387F; }
.rt-cal-nav:disabled { opacity: .35; cursor: not-allowed; }

/* Month and year selects, for fields whose answer is years away. */
.rt-cal-pickers { display: flex; gap: 6px; align-items: center; }
.rt-cal-select {
    border: 1.5px solid #D8DEE9; border-radius: 8px; background: #fff; color: #0F1B33;
    font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 8px;
    cursor: pointer; min-height: 34px;
}
.rt-cal-select:hover { border-color: #14387F; }

.rt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.rt-cal-dow {
    font-size: 10.5px; font-weight: 700; color: #B9C1CF; text-align: center;
    text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px;
}

.rt-cal-day {
    aspect-ratio: 1; border: none; background: none; border-radius: 8px; cursor: pointer;
    font-size: 12.5px; font-variant-numeric: tabular-nums; color: #0F1B33;
    display: flex; align-items: center; justify-content: center; padding: 0;
    font-family: inherit;
}
.rt-cal-day:hover:not(:disabled):not(.is-blank) { background: #EAF0FA; }
.rt-cal-day:disabled { color: #C9D0DC; cursor: not-allowed; }
.rt-cal-day.is-blank { visibility: hidden; cursor: default; }
.rt-cal-day.is-today { box-shadow: inset 0 0 0 1.5px #B9CBEC; font-weight: 700; }
.rt-cal-day.is-selected { background: #14387F; color: #fff; font-weight: 700; box-shadow: none; }

.rt-cal-foot { display: flex; justify-content: flex-end; }
.rt-cal-reset {
    border: none; background: none; color: #14387F; font-weight: 600; font-size: 13px;
    cursor: pointer; text-decoration: underline; padding: 2px 0; font-family: inherit;
}
