/* Time Keeper LED Mail-In Intake. One stylesheet, no framework.
   Look matches fixmyledwatch.com and pulsartimecomputer.com (same theme): #101010 background,
   #FA292A red accent, Roboto, square outline buttons. Adjusted only where the sites' values fail
   WCAG contrast: input borders (#6b6b6b, 3.6:1), error text (#FF8A80, 8.3:1), placeholders (#8a8a8a).
   Red text is only used on surfaces from #101010 to #161616, where it stays above 4.5:1.
   Every class starts with tklr- so nothing clashes with the general Mail-In Intake module (tki-). */

@font-face {
    font-family: "Roboto";
    src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --tklr-accent: #FA292A;
    --tklr-accent-soft: rgba(250, 41, 42, .12);
    --tklr-accent-ring: #FA292A;
    --tklr-on-accent: #101010;      /* text on a red fill: 4.9:1 (white would be 3.9:1) */
    --tklr-bg: #101010;             /* site background */
    --tklr-panel: #101010;          /* site .content-box */
    --tklr-raised: #141414;         /* cards, chips */
    --tklr-panel-line: rgba(255, 255, 255, .07); /* site .content-box border (decorative) */
    --tklr-line: #3a3a3a;           /* card and chip borders */
    --tklr-field-line: #6b6b6b;     /* form control borders, 3.6:1 */
    --tklr-heading: #ffffff;
    --tklr-ink: #eeeeee;            /* labels, values */
    --tklr-body: #bbbbbb;           /* site body text, 9.9:1 */
    --tklr-muted: #999999;          /* site secondary text, 6.7:1 */
    --tklr-placeholder: #8a8a8a;    /* 5.5:1 */
    --tklr-error: #FF8A80;          /* 8.3:1, clearly lighter than the brand red */
    --tklr-error-bg: #2a1214;
    --tklr-amber: #E8890D;          /* "Request received" badge, 7.3:1 */
    --tklr-led: #FA292A;
    --tklr-font: "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--tklr-bg); }

body.tklr-body {
    margin: 0;
    background: var(--tklr-bg);
    color: var(--tklr-body);
    font-family: var(--tklr-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

a { color: var(--tklr-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--tklr-accent); }

:focus-visible {
    outline: 2px solid var(--tklr-accent-ring);
    outline-offset: 3px;
}

.tklr-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Header (full page only), like the sites' header */
.tklr-header { background: var(--tklr-bg); border-bottom: 1px solid var(--tklr-panel-line); }
.tklr-header__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.tklr-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tklr-logo img { display: block; max-height: 50px; width: auto; max-width: 180px; }
.tklr-logo .tklr-logo__wordmark { height: 11px; }
.tklr-phone { margin: 0; font-size: 14px; text-align: right; line-height: 1.35; }
.tklr-phone__label { color: var(--tklr-muted); display: block; }
.tklr-phone__number { font-weight: 700; color: var(--tklr-heading); text-decoration: none; font-size: 16px; }
.tklr-phone__links { display: block; font-size: 14px; }
.tklr-phone__links a { color: var(--tklr-accent); font-weight: 500; }

/* Layout */
.tklr-shell { max-width: 800px; margin: 0 auto; padding: 24px 16px 40px; }
.tklr-intro { margin-bottom: 20px; }
.tklr-title { color: var(--tklr-heading); font-size: 24px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; }
.tklr-subtitle { margin: 0; color: var(--tklr-body); }

.tklr-card-panel {
    background: var(--tklr-panel);
    border: 1px solid var(--tklr-panel-line);
    padding: 24px 16px;
}

/* Inside an iframe: no header, no outer padding, the site's own section frames the form */
.tklr-framed .tklr-header,
.tklr-framed .tklr-intro,
.tklr-framed .tklr-done { display: none !important; }
.tklr-framed .tklr-shell { max-width: none; padding: 0 0 4px; }
.tklr-framed body.tklr-body, .tklr-framed { background: var(--tklr-bg); }

/* Step indicator */
.tklr-steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.tklr-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tklr-muted);
    position: relative;
}
.tklr-steps__item::before {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(-50% + 20px);
    right: calc(50% + 20px);
    height: 2px;
    background: var(--tklr-line);
}
.tklr-steps__item:first-child::before { display: none; }
.tklr-steps__num {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 2px solid var(--tklr-line);
    background: var(--tklr-bg);
    color: var(--tklr-body);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.tklr-steps__item.is-active { color: var(--tklr-heading); font-weight: 500; }
.tklr-steps__item.is-active .tklr-steps__num { border-color: var(--tklr-accent); background: var(--tklr-accent); color: var(--tklr-on-accent); }
.tklr-steps__item.is-done .tklr-steps__num { border-color: var(--tklr-accent); color: var(--tklr-accent); }
.tklr-steps__item.is-done::before, .tklr-steps__item.is-active::before { background: var(--tklr-accent); }
.tklr-steps__sr { position: absolute; left: -9999px; }

/* Notices */
.tklr-restored {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    background: var(--tklr-raised);
    border: 1px solid var(--tklr-line);
    border-left: 3px solid var(--tklr-accent);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--tklr-ink);
}
.tklr-alert { padding: 12px 14px; margin: 0 0 16px; background: var(--tklr-raised); color: var(--tklr-ink); border: 1px solid var(--tklr-line); }
.tklr-alert--error {
    background: var(--tklr-error-bg);
    color: var(--tklr-error);
    border: 1px solid var(--tklr-error);
    border-left-width: 4px;
    font-weight: 500;
}
.tklr-alert--error::before { content: "! "; font-weight: 700; }
.tklr-alert--error a { color: var(--tklr-error); display: inline-block; margin-top: 6px; }

/* Steps */
.tklr-step__title {
    color: var(--tklr-heading);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.3;
}
.tklr-step__title:focus { outline: none; }
.tklr-fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }

/* Cards (radio) */
.tklr-cards { display: grid; gap: 10px; }
.tklr-card { display: block; cursor: pointer; position: relative; text-decoration: none; color: inherit; }
.tklr-card:hover { color: inherit; }
.tklr-card__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tklr-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 2px solid var(--tklr-line);
    background: var(--tklr-raised);
    transition: border-color .2s, background .2s;
    min-height: 72px;
}
.tklr-cards--watch { gap: 8px; }
.tklr-card:hover .tklr-card__body { border-color: #6b6b6b; }
.tklr-card__input:checked + .tklr-card__body {
    border-color: var(--tklr-accent);
    background: #1b1012;
}
.tklr-card__input:focus-visible + .tklr-card__body { outline: 2px solid var(--tklr-accent-ring); outline-offset: 3px; }
.tklr-card--link:focus-visible { outline: none; }
.tklr-card--link:focus-visible .tklr-card__body { outline: 2px solid var(--tklr-accent-ring); outline-offset: 3px; }
.tklr-card--link .tklr-card__body { border-style: dashed; }
.tklr-card__icon {
    flex: 0 0 60px;
    width: 60px; height: 60px;
    background: var(--tklr-bg);
    display: grid; place-items: center;
    color: var(--tklr-body);
    overflow: hidden;
}
.tklr-card__icon--sm { flex-basis: 52px; width: 52px; height: 52px; }
.tklr-card__icon--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tklr-card__icon svg { width: 72%; height: 72%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tklr-card__icon .tklr-thin { stroke-width: 1.6; }
.tklr-card__icon .tklr-fill-dark { fill: #000; stroke: currentColor; }
.tklr-card__icon .tklr-led { stroke: var(--tklr-led); stroke-width: 2.2; filter: drop-shadow(0 0 2px rgba(250, 41, 42, .8)); }
.tklr-card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tklr-card__title { font-weight: 500; font-size: 16px; color: var(--tklr-heading); }
.tklr-card__hint { color: var(--tklr-muted); font-size: 14px; line-height: 1.35; }
.tklr-card__cta { color: var(--tklr-accent); font-weight: 500; font-size: 14px; margin-top: 2px; }
.tklr-price {
    display: inline-block;
    margin-left: 4px;
    padding: 0 8px;
    border: 1px solid var(--tklr-accent);
    color: var(--tklr-accent);
    font-size: 14px;
    font-weight: 500;
    vertical-align: 1px;
}
.tklr-card__check {
    flex: 0 0 22px;
    width: 22px; height: 22px;
    border: 2px solid var(--tklr-field-line);
    border-radius: 50%;
    background: var(--tklr-bg);
}
.tklr-card__input:checked + .tklr-card__body .tklr-card__check {
    border-color: var(--tklr-accent);
    background: var(--tklr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23101010' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Chips (checkbox) */
.tklr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tklr-chip { position: relative; cursor: pointer; }
.tklr-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tklr-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid var(--tklr-line);
    background: var(--tklr-raised);
    color: var(--tklr-ink);
    font-size: 15px;
    transition: border-color .2s, background .2s;
}
.tklr-chip:hover span { border-color: #6b6b6b; }
.tklr-chip input:checked + span {
    border-color: var(--tklr-accent);
    background: #1b1012;
    color: var(--tklr-heading);
    font-weight: 500;
}
.tklr-chip input:checked + span::before { content: "\2713"; margin-right: 6px; color: var(--tklr-accent); font-weight: 700; }
.tklr-chip input:focus-visible + span { outline: 2px solid var(--tklr-accent-ring); outline-offset: 3px; }

/* Fields */
.tklr-field { margin: 0 0 18px; }
.tklr-field label, .tklr-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; color: var(--tklr-ink); }
.tklr-optional { font-weight: 400; color: var(--tklr-muted); font-size: 14px; }
.tklr-help { margin: 6px 0 0; font-size: 14px; color: var(--tklr-muted); }
.tklr-help--top { margin: -6px 0 12px; }
.tklr-address > .tklr-help { margin: -2px 0 12px; }
.tklr-field input[type="text"],
.tklr-field input[type="email"],
.tklr-field input[type="tel"],
.tklr-field select,
.tklr-field textarea {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 16px; /* no iOS zoom */
    color: var(--tklr-heading);
    background: var(--tklr-bg);
    border: 1px solid var(--tklr-field-line);
    border-radius: 0;
    padding: 11px 12px;
    min-height: 46px;
    transition: border-color .2s, box-shadow .2s;
}
.tklr-field select { appearance: auto; }
.tklr-field select option { background: #141414; color: var(--tklr-ink); }
.tklr-field textarea { resize: vertical; min-height: 120px; }
.tklr-field ::placeholder { color: var(--tklr-placeholder); opacity: 1; }
.tklr-field input:focus, .tklr-field select:focus, .tklr-field textarea:focus {
    outline: none;
    border-color: var(--tklr-accent);
    box-shadow: 0 0 0 1px var(--tklr-accent);
}
.tklr-field.has-error input, .tklr-field.has-error select, .tklr-field.has-error textarea { border-color: var(--tklr-error); box-shadow: 0 0 0 1px var(--tklr-error); }
.tklr-fieldset.has-error .tklr-card__body, .tklr-fieldset.has-error .tklr-chip span { border-color: var(--tklr-error); }
.tklr-error {
    margin: 8px 0 0;
    padding-left: 10px;
    border-left: 3px solid var(--tklr-error);
    color: var(--tklr-error);
    font-size: 15px;
    font-weight: 500;
}
.tklr-error::before { content: "! "; font-weight: 700; }

/* Declared value (kits) */
.tklr-declared {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid var(--tklr-line);
    border-left: 3px solid var(--tklr-accent);
    background: var(--tklr-raised);
}
.tklr-money { display: flex; align-items: center; gap: 8px; }
.tklr-money__sign { font-weight: 700; font-size: 18px; color: var(--tklr-ink); }
.tklr-field .tklr-money input[type="text"] { max-width: 180px; font-weight: 500; }
.tklr-money__unit { font-size: 14px; color: var(--tklr-muted); }

/* Tick boxes (insurance, terms) */
.tklr-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: 15px; cursor: pointer; color: var(--tklr-ink); }
.tklr-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 22px; accent-color: var(--tklr-accent); cursor: pointer; }
.tklr-field .tklr-check { font-weight: 400; }
.tklr-insurance-link { display: inline-block; margin-top: 12px; font-weight: 500; }
.tklr-terms { margin: 4px 0 18px; }
.tklr-terms__note { font-size: 14px; color: var(--tklr-muted); margin: 0; }

/* Insurance requirements page */
.tklr-page-text__body h2 { color: var(--tklr-heading); font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.tklr-page-text__body p { margin: 0 0 12px; }
.tklr-page-text__body ul { margin: 0 0 12px; padding-left: 22px; }
.tklr-page-text__body li { margin-bottom: 6px; }
.tklr-page-text__back { margin: 24px 0 0; }

.tklr-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.tklr-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Photos (the real file input is visually hidden; its label is the button) */
#tklr-photo-input:focus-visible + .tklr-btn { outline: 2px solid var(--tklr-accent-ring); outline-offset: 3px; }
.tklr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0; }
.tklr-photos:empty { display: none; }
.tklr-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tklr-raised); border: 1px solid var(--tklr-line); }
.tklr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tklr-photo button {
    position: absolute; top: 4px; right: 4px;
    width: 32px; height: 32px;
    border: 1px solid var(--tklr-field-line);
    background: rgba(16, 16, 16, .85);
    color: #fff;
    font-size: 18px; line-height: 1;
    cursor: pointer;
}

/* Review */
.tklr-review {
    border: 1px solid var(--tklr-line);
    background: var(--tklr-raised);
    padding: 14px;
    margin: 6px 0 20px;
}
.tklr-review__title { color: var(--tklr-heading); margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.tklr-review__list { margin: 0; }
.tklr-review__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--tklr-line);
}
.tklr-review__row:first-child { border-top: 0; }
.tklr-review__row dt { font-size: 14px; color: var(--tklr-muted); grid-column: 1; }
.tklr-review__row dd { margin: 0; grid-column: 1; color: var(--tklr-ink); overflow-wrap: anywhere; white-space: pre-line; }
.tklr-review__row .tklr-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* Buttons: the sites' outline button (2px red border, red text), filled red on hover */
.tklr-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.tklr-nav .tklr-btn--primary { margin-left: auto; }
.tklr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 28px;
    border-radius: 0;
    font: inherit;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    background: none;
    transition: background .3s, color .3s, border-color .3s;
}
.tklr-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.tklr-btn--primary { color: var(--tklr-accent); border-color: var(--tklr-accent); flex: 1; max-width: 320px; }
.tklr-btn--primary:hover, .tklr-btn--primary:focus-visible { background: var(--tklr-accent); color: var(--tklr-on-accent); }
.tklr-btn--primary[disabled] { opacity: .65; cursor: wait; }
.tklr-btn--ghost { color: var(--tklr-ink); border-color: var(--tklr-field-line); }
.tklr-btn--ghost:hover { border-color: var(--tklr-ink); color: var(--tklr-heading); }
.tklr-btn--block { width: 100%; max-width: none; margin-top: 8px; }
.tklr-link {
    background: none; border: 0; padding: 4px 2px;
    color: var(--tklr-ink);
    font: inherit; font-weight: 500; font-size: 15px;
    text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer;
}
.tklr-link:hover { color: var(--tklr-accent); }
.tklr-link--strong { font-size: 16px; }

.tklr-trust {
    text-align: center;
    color: var(--tklr-muted);
    font-size: 14px;
    margin: 18px auto 0;
    max-width: 600px;
}

/* Success */
.tklr-success .tklr-title { margin-top: 14px; }
.tklr-success .tklr-title:focus { outline: none; }
.tklr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    color: var(--tklr-amber);
    border: 1px solid var(--tklr-amber);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.tklr-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tklr-next-steps { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.tklr-next-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--tklr-ink); }
.tklr-next-steps__num {
    flex: 0 0 30px; width: 30px; height: 30px;
    color: var(--tklr-accent);
    border: 2px solid var(--tklr-accent);
    display: grid; place-items: center;
    font-weight: 700; font-size: 14px;
}

/* Wider screens */
@media (min-width: 640px) {
    .tklr-shell { padding-top: 36px; }
    .tklr-title { font-size: 30px; }
    .tklr-card-panel { padding: 35px; } /* the sites' .content-box padding */
    /* Two columns of compact rows keep step 1 short enough to embed in a page */
    .tklr-cards--watch { grid-template-columns: 1fr 1fr; }
    .tklr-cards--watch .tklr-card__body { height: 100%; }
    .tklr-cards--watch .tklr-card__icon { flex-basis: 80px; width: 80px; height: 80px; }
    .tklr-grid { grid-template-columns: 1fr 1fr; }
    .tklr-field--full { grid-column: 1 / -1; }
    .tklr-steps__item { font-size: 14px; }
}
/* The site's own .content-box already draws the frame and padding around the iframe */
.tklr-framed .tklr-card-panel { padding: 0; border: 0; }

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