/* Additions for the ASP.NET Core version of the site. The legacy look comes from
   OFTStyleSheetM.min.css (inner pages) and OFTBundle.min.css (home page). */

main { display: block; }

/* Accessibility: keyboard users can jump past the navigation. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 8px 12px; background: #2d5987; color: #fff; }
.skip-link:focus { left: 8px; top: 8px; }

/* Secondary headings that used to be extra <h1>s keep the h1 look. */
h2.h1-style { color: inherit; font-size: 2em; margin: 0; padding: 0; float: none; width: auto; }

.site-notice { margin: 10px auto; width: 900px; }

/* Converted Ajax Control Toolkit accordion (Form 1098 FAQs). */
details.faq-item { border-bottom: 1px solid #dadada; padding: 8px 0; }
details.faq-item summary { cursor: pointer; font-weight: bold; color: #2d5987; }
details.faq-item .faq-answer { padding: 8px 0 4px 16px; }

/* Pricing tables: same look as the legacy GridView (grid lines on every cell, gray header and TIN column). */
table.price-table { width: 98%; border: 1px solid #7f9db9; border-collapse: collapse; margin: 8px 0; background: #fff; font-size: 13px; }
table.price-table th, table.price-table td { border: 1px solid #7f9db9; }
table.price-table th { background: #dadada; color: #333; font-weight: bold; height: 34px; padding: 4px 8px; text-align: center; vertical-align: middle; line-height: 1.4; }
table.price-table th:first-child { text-align: center; }
table.price-table td { height: 28px; padding: 2px 8px; text-align: center; vertical-align: middle; font-weight: normal; color: #444; }
table.price-table td:first-child { text-align: left; padding-left: 24px; }
table.price-table td.tin { background: #dadada; }

/* Index pages (forms, resources). */
ul.link-list { margin: 10px 0 20px 20px; }
ul.link-list li { margin: 8px 0; line-height: 1.5; }
ul.link-list li a { font-weight: bold; }

.article { clear: both; }

/* Home page calendar text is now server-rendered. */
#deadline_form span { white-space: nowrap; }

/* Home page: the CTA button text used to be the page's <h1>; it keeps the same look as a span. */
.homepage_sign_up_btn .cta-title { display: block; margin-bottom: 0; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 28px; line-height: 1.3; text-align: center; font-weight: 500; margin-top: 5px; background: url('../images/spritec.webp') no-repeat -72px -285px; padding-left: 12px; margin-left: 10px; }
h1.home-h1 { font-size: 16px; line-height: 1.3; color: #2e5987; font-weight: bold; margin: 0 0 10px 0; }
ul.bare { margin: 0; padding: 0; }
.video-slide { background: #333; width: 320px; height: 240px; text-align: center; color: #fff; margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pricing-fallback { margin: 8px 0; font-weight: bold; }

/* ---------- Form pages ---------- */
.form-page { clear: both; font-size: 14px; line-height: 1.6; color: #2b3640; }
.form-page p { margin: 0 0 12px 0; }
.form-page h2 { float: none; width: auto; margin: 28px 0 12px 0; font-size: 22px; }
.form-page h3 { font-size: 16px; font-weight: bold; color: #2d5987; margin: 18px 0 8px 0; }
.form-page ul, .form-page ol { margin: 0 0 14px 24px; }
.form-page ul li { list-style: disc; margin: 4px 0; }
.form-page ol li { list-style: decimal; margin: 6px 0; }
.form-page .lead { font-size: 16px; color: #1f3550; }
.form-page .new-badge { display: inline-block; background: #f4a50e; color: #fff; font-size: 11px; font-weight: bold; padding: 1px 6px; border-radius: 3px; vertical-align: middle; }

.glance { border: 1px solid #c5cbcf; border-left: 4px solid #2d5987; background: #f6f8fb; padding: 12px 16px; margin: 8px 0 20px 0; }
.glance-title { font-size: 17px !important; margin: 0 0 8px 0 !important; color: #2d5987 !important; }
.glance-table { width: 100%; border-collapse: collapse; }
.glance-table th { text-align: left; vertical-align: top; width: 26%; padding: 5px 10px 5px 0; color: #1f3550; font-weight: bold; }
.glance-table td { padding: 5px 0; }
.glance-table tr + tr th, .glance-table tr + tr td { border-top: 1px solid #dde3ea; }
.glance-note { font-size: 12px; color: #5b6770; margin: 8px 0 0 0 !important; }

table.box-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px 0; }
table.box-table th { background: #2d5987; color: #fff; text-align: left; padding: 7px 10px; font-weight: bold; }
table.box-table td { border-bottom: 1px solid #dde3ea; padding: 7px 10px; vertical-align: top; }
table.box-table tr:nth-child(even) td { background: #f6f8fb; }
table.box-table td:first-child { white-space: nowrap; font-weight: bold; color: #1f3550; }

.timeline { margin: 10px 0 18px 0; }
.timeline svg { width: 100%; height: auto; display: block; }
.timeline figcaption { font-size: 12px; color: #5b6770; margin-top: 4px; }

.callout { border: 1px solid #f4d29a; background: #fff8ea; padding: 10px 14px; margin: 10px 0 16px 0; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid h3 { margin-top: 0; }
ul.sources li { font-size: 13px; }
.disclaimer { font-size: 12px; color: #5b6770; font-style: italic; }
.cta-band { background: #eef4e6; border: 1px solid #c9dcb2; padding: 14px 16px; margin: 20px 0 6px 0; }
.cta-band p { margin-bottom: 10px; }
.steps li { margin-bottom: 8px; }
/* The legacy stylesheet floats every <p>; new content sections use normal flow. */
.form-page p, .form-page figure, .form-page aside { float: none; width: auto; }
.form-page::after, .glance::after { content: ""; display: table; clear: both; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px 0; padding: 10px 14px; background: #f6f8fb; border: 1px solid #dde3ea; }
.faq-toc a { font-weight: bold; }
/* Testimonials */
.testimonial-feature { margin: 6px 0 20px 0; padding: 14px 20px; border-left: 4px solid #f4a50e; background: #fdf7ec; }
.testimonial-feature blockquote { margin: 0; padding: 0; border: 0; }
.testimonial-feature blockquote p { font-size: 20px; line-height: 1.4; font-style: italic; color: #1f3550; margin: 0 0 6px 0; }
.testimonial-feature figcaption { font-size: 13px; color: #5b6770; }
.why-list li { margin: 6px 0; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 8px 0; }
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial { margin: 0; padding: 14px 16px 12px 16px; background: #f6f8fb; border: 1px solid #dde3ea; border-top: 3px solid #2d5987; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial blockquote { margin: 0 0 10px 0; padding: 0; border: 0; font-size: 14px; }
.testimonial blockquote p { margin: 0; font-size: 14px; line-height: 1.6; color: #2b3640; }
.testimonial blockquote p::before { content: "\201C"; font-family: Georgia, serif; font-size: 34px; line-height: 0; vertical-align: -12px; color: #f4a50e; margin-right: 4px; }
.testimonial figcaption { font-size: 13px; color: #5b6770; border-top: 1px solid #dde3ea; padding-top: 8px; }
.testimonial figcaption strong { display: block; color: #1f3550; }
.testimonial figcaption span { display: block; }
.breadcrumbs { font-size: 12px; color: #5b6770; margin: 0 0 6px 2px; float: left; width: 100%; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumbs li { list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #8a96a0; }
.breadcrumbs li { padding: 0; margin: 0; background: none; width: auto; float: none; display: inline; }

/* ---------- Small screens ----------
   The legacy design is fixed at ~965px. Below that width, let the layout flow to the viewport
   so phones get a readable page with no sideways scrolling (Google indexes the mobile view). */
@media (max-width: 980px) {
    html, body { overflow-x: hidden; }
    img, svg, table { max-width: 100%; }
    .wrapper_1_container, .container, .header, .headerN, .contents_top, .contents_bottom,
    .footercontainer, .homepage_bottom_middle_box, .rules, .reminder { width: auto !important; max-width: 100%; }
    .contents_mid { width: auto !important; float: none; padding: 0 12px 20px; box-sizing: border-box; }
    .contents_top, .contents_bottom { display: none; }
    .pageinfo_header { width: auto !important; height: auto; line-height: 1.3; padding: 10px 12px; margin-top: 0; box-sizing: border-box; float: none; }
    .pageinfo_header h1 { font-size: 1.35em; }
    .header, .headerN { height: auto; padding: 8px 12px; box-sizing: border-box; overflow: hidden; }
    #top_right_nav { position: static; float: right; margin: 0; }
    #logged_in_message { display: none; }
    #main_nav { clear: both; float: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 6px 0 0; margin: 0; position: static; }
    #main_nav a { padding: 4px 10px 4px 0; }
    #main_nav .pipe { display: none; }
    .glance-table th { width: 38%; }
    table.box-table td:first-child { white-space: normal; }
    .related-grid { grid-template-columns: 1fr; }
    /* legacy content tables (converted pages) */
    .contents_mid table { width: 100% !important; }
    .contents_mid td { display: block; width: auto !important; }
    .contents_mid table.box-table td, .contents_mid table.glance-table td, .contents_mid table.price-table td { display: table-cell; }
    /* footer */
    .footercontainer { padding: 16px 12px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 12px 24px; }
    .footercontainer_menu, .footercontainer_menu_form, .footerleft { float: none; width: auto !important; }
    /* home page */
    #mainCarousel { display: none; }
    .homepage_form_carousel_wrapper > div { width: auto !important; }
    .homepage_sign_up_btn { position: static; margin: 12px auto; }
    .homepage_bottom_first_box, .homepage_bottom_middle_box, .homepage_bottom_last_box, .deadline_banner, .fltlft { float: none !important; width: auto !important; margin: 0 0 16px 0; }
    .site-notice { width: auto; }
}
@media (max-width: 980px) {
    .wrapper_1, .wrapper_1_container, .container, .header, .headerN, .contents_mid, main.content {
        float: none !important; width: auto !important; max-width: 100vw; box-sizing: border-box; clear: both;
    }
    .pageinfo_header { background: #2d5987; border-radius: 6px; color: #fff; }
    /* break-word (not anywhere) so long URLs wrap but table columns don't split words mid-letter */
    .contents_mid, .form-page, .article { overflow-wrap: break-word; }
    .contents_mid > * { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 980px) {
    .pageinfo_header { margin-top: 4px !important; clear: both; }
}
@media (max-width: 980px) {
    .homepage_form_carousel_wrapper { height: auto !important; padding-bottom: 12px; }
    .homepage_form_carousel_wrapper .carousel-inner { overflow: visible; width: auto !important; }
    .homepage_form_carousel_wrapper .item { display: block !important; position: static !important; left: auto !important; }
    .homepage_form_carousel_wrapper .row { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; }
    .homepage_form_carousel_wrapper .formcontrol { display: none; }
}
@media (max-width: 980px) {
    #formCarousel { width: auto !important; padding-top: 16px; }
    .homepage_form_carousel_wrapper { background: #5d6266; }
    .homepage_form_carousel_wrapper .row { width: auto !important; gap: 6px 4px; }
    .homepage_form_carousel_button_wrapper { float: none; }
    .homepage_form_carousel_button_wrapper h4 { color: #fff; }
}

/* ---------- Home banner (replaces the allinone_bannerRotator jQuery plugin; same images and dot buttons) ---------- */
.hero { position: relative; height: 296px; }
.hero-slide { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { display: block; max-width: none; }
.hero-dots { position: absolute; left: 1175px; top: 240px; z-index: 4; display: flex; gap: 9px; }
.hero-dots button { width: 14px; height: 14px; padding: 0; border: 0; cursor: pointer; background: url(../images/bottomNavOFF.png) 0 0 no-repeat; }
.hero-dots button.is-active, .hero-dots button:hover { background-image: url(../images/bottomNavON.png); }
.hero-dots button:focus-visible, .video-facade:focus-visible { outline: 2px solid #f4a50e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- Click-to-load YouTube ---------- */
.video-facade { position: relative; display: block; width: 320px; height: 240px; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-facade img { width: 320px; height: 240px; object-fit: cover; display: block; opacity: .9; }
.video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #e62117; }
.video-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .video-play { background: #ff0000; }

/* ---------- Tools ---------- */
.tool-form { display: grid; gap: 12px; margin: 10px 0 16px 0; }
.tool-form fieldset { border: 1px solid #dde3ea; background: #f6f8fb; padding: 10px 14px 12px; margin: 0; }
.tool-form legend { font-weight: bold; color: #2d5987; padding: 0 4px; }
.tool-form label { display: block; margin: 5px 0; cursor: pointer; }
.tool-form input[type=number], .tool-form select, .state-filter { font: inherit; padding: 6px 8px; border: 1px solid #b9c4cf; border-radius: 4px; max-width: 100%; width: 320px; box-sizing: border-box; }
.tool-form input[type=radio] { margin-right: 6px; }
.tool-form .hint, .tool-page .hint { font-size: 12px; color: #5b6770; margin: 8px 0 4px; }
.sub-question { margin: 8px 0 0 12px; padding-left: 10px; border-left: 3px solid #f4a50e; }
.tool-result { border: 2px solid #2d5987; background: #fff; padding: 12px 16px; margin: 8px 0 18px 0; }
.tool-result.is-yes { border-color: #7da34b; background: #f3f8ec; }
.tool-result.is-no { border-color: #8a96a0; background: #f6f8fb; }
.tool-result h3 { margin-top: 0; font-size: 18px; }
.tool-result .total { font-size: 18px; font-weight: bold; color: #1f3550; }
.glance-cal { margin: 8px 0 0 0 !important; font-weight: bold; }
.glance-cal a::before { content: "\1F4C5  "; }

/* ---------- State table ---------- */
.state-legend { font-size: 12px; line-height: 2; }
.st-badge { display: inline-block; font-size: 11px; font-weight: bold; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.st-verified { background: #e3f0d6; color: #3f6b16; }
.st-partial { background: #fff1d6; color: #8a5a00; }
.st-unverified { background: #f2e3e3; color: #8f2d2d; }
.st-none { background: #e8ecf0; color: #4a5a6a; }
.state-filter { width: 100%; max-width: 420px; margin: 6px 0 10px; }
.table-scroll { overflow-x: auto; }
.state-table td:first-child { white-space: normal; min-width: 110px; }
.state-table tr[hidden] { display: none; }

/* ---------- Reviewer byline ---------- */
.reviewed-by { clear: both; display: block; margin: 18px 0 0; padding: 10px 14px; border-top: 1px solid #dde3ea; font-size: 12px; color: #5b6770; }
.reviewed-by a { font-weight: bold; }

/* ---------- Responsive refinements (keep the legacy look) ---------- */
@media (max-width: 980px) {
    .tool-form input[type=number], .tool-form select { width: 100%; }
    .state-table { min-width: 640px; }
    .contents_mid .table-scroll table { width: auto !important; }
    .contents_mid .state-table td, .contents_mid .state-table th { display: table-cell; }
    .glance-table th, .glance-table td { display: block; width: auto !important; padding: 2px 0; }
    .glance-table tr + tr th { border-top: 1px solid #dde3ea; padding-top: 6px; }
    .glance-table tr + tr td { border-top: 0; }
    .footercontainer_menu ul, .footercontainer_menu_form ul { padding-left: 0; }
    .copyright { padding: 14px 12px; box-sizing: border-box; }
}

/* ---------- Phones: readable tables, a legible timeline and finger-sized links ---------- */
@media (max-width: 700px) {
    /* "At a glance" box: label above value instead of two cramped columns */
    .glance-table, .glance-table tbody, .glance-table tr, .glance-table th, .glance-table td { display: block; width: auto !important; }
    .glance-table th { padding: 8px 0 0 0; }
    .glance-table td { padding: 2px 0 8px 0; }
    .glance-table tr + tr th, .glance-table tr + tr td { border-top: 0; }
    .glance-table tr + tr { border-top: 1px solid #dde3ea; }
    .form-page .new-badge { white-space: nowrap; display: inline-block; margin-top: 2px; }
    /* Pricing: tighter cells so all columns fit at 375px */
    table.price-table { width: 100%; font-size: 12px; }
    table.price-table th { padding: 4px 3px; height: auto; font-size: 11.5px; hyphens: manual; }
    table.price-table td { padding: 4px 3px; }
    table.price-table td:first-child { padding-left: 6px; white-space: nowrap; }
    /* Timeline: keep the drawing at a readable size and let it scroll sideways inside its box */
    .timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .timeline svg { min-width: 640px; max-width: none; }
    /* Touch targets (Google/WCAG: about 24px minimum, 44px ideal) */
    #main_nav a { display: inline-block; padding: 10px 9px 10px 0; font-size: 12.5px; }
    .footercontainer a { display: inline-block; padding: 6px 0; }
    .breadcrumbs ol { align-items: center; }
    .breadcrumbs a { display: inline-block; padding: 6px 0; }
}
/* ---------- Chat launcher (Freshchat loads on click) ---------- */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #2d5987; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.chat-launcher:hover { background: #24497a; }
.chat-launcher:focus-visible { outline: 3px solid #f4a50e; outline-offset: 3px; }
.chat-launcher.is-loading { opacity: .7; cursor: progress; }
.chat-launcher[hidden] { display: none; }
@media (max-width: 700px) { .chat-launcher { right: 12px; bottom: 12px; width: 52px; height: 52px; } }
