/* ============================================================
   modern-theme.css
   ------------------------------------------------------------
   A presentation-only re-skin for the CRD online queue site.
   It is loaded AFTER bootstrap + test.css so it overrides them.
   No PHP / JS logic or markup behaviour is changed by this file.

   Goal: match the mood & tone of the new design (navy/blue
   gradient header, light background, white rounded "cards",
   clean Thai typography, blue pill buttons) and make the
   existing pages responsive on phones/tablets.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');

/* ===== Global font: IBM Plex Sans Thai on every text element =====
   Icon fonts (FontAwesome / Glyphicons) are excluded so their glyphs
   keep rendering. !important + the :not() chain beat bootstrap, the
   page CSS, and inline font-family declarations site-wide. */
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class*="fa-"]):not(.glyphicon):not([class*="glyphicon-"]) {
    font-family: 'IBM Plex Sans Thai', 'Tahoma', 'Segoe UI', sans-serif !important;
}

:root {
    --crd-navy:      #16205e;
    --crd-blue:      #2b3f9e;
    --crd-blue-2:    #3b6fe0;
    --crd-blue-deep: #1c3690;
    --crd-ink:       #243049;   /* default readable text */
    --crd-bg:        #eef1f7;    /* soft page background     */
    --crd-card:      #ffffff;
    --crd-line:      #e2e8f5;
    --crd-link:      #2455c4;
}

/* ----------------------------------------------------------------
   1. Base page: light background + modern Thai font
   ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; font-size: 16px;}

body,
body.gray {
    background: var(--crd-bg) !important;
    background-image:
        radial-gradient(1200px 400px at 50% -120px, #dfe6fb 0%, rgba(223,230,251,0) 70%),
        linear-gradient(180deg, #eef1f7 0%, #e7ecf7 100%) !important;
    background-attachment: fixed !important;
    font-family: 'IBM Plex Sans Thai', 'Tahoma', 'Segoe UI', sans-serif !important;
    color: var(--crd-ink);
    line-height: 1.6;
}

/* Inline white <font> tags were meant for the old dark background.
   On the new light background, recolor them so they stay readable. */
font[color="#FFFFFF"],
font[color="#ffffff"],
font[color="#fff"],
#tp {
    color: var(--crd-navy) !important;
}
/* Yellow marquee/notice text -> readable amber on light bg */
font[color="Yellow"],
font[color="yellow"] {
    color: #b25b00 !important;
}

a { color: var(--crd-link); }

/* ----------------------------------------------------------------
   2. Header bar (banner.php .topnav) -> navy/blue gradient
   ---------------------------------------------------------------- */
#dplay {
    padding: 40px;
    text-align: center;
}


.topnav,
#myTopnav.topnav {
    background: linear-gradient(135deg, var(--crd-navy) 0%, #20307e 45%, var(--crd-blue) 100%) !important;
    min-height: 92px;
    padding: 6px 18px;
    box-shadow: 0 6px 18px rgba(20, 30, 80, .22);
    border-bottom: 3px solid #ffd54a;   /* subtle gold accent line */
}

/* Header title — white, bold, no harsh shadow.
   Higher specificity (.topnav .font-header) beats banner's inline
   "!important" gold colour without editing banner.php. */
.topnav .font-header {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25) !important;
    font-weight: 700;
    letter-spacing: .2px;
}
.topnav .font-sheader {
    color: #dbe4ff !important;
    text-shadow: none !important;
    font-weight: 500;
}
.topnav .font-header u,
.topnav .font-sheader u { text-decoration-color: #ffd54a; }

.topnav > img {                 /* CRD logo banner */
    height: 68px;
    width: auto;
    margin-top: 6px;
}
.topnav-right a { color: #eaf0ff !important; }
.topnav .seeq { filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }

/* ----------------------------------------------------------------
   3. Content "cards" — the conditions box & general panels
   ---------------------------------------------------------------- */
.container { max-width: 1180px; }

.alert {
    background: var(--crd-card) !important;
    background-color: var(--crd-card) !important;
    border: 1px solid var(--crd-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 34px rgba(20, 30, 80, .08) !important;
    color: var(--crd-ink) !important;
    padding: 26px 28px !important;
    font-size: 18px;
}
.alert b,
.alert font[color="black"] { color: var(--crd-navy) !important; }

/* ----------------------------------------------------------------
   4. Checkbox rows (รับทราบเงื่อนไข / ยินยอม)
   Old labels are white (.font-white) for a dark bg — make them
   dark & bold so they read on the new light layout.
   ---------------------------------------------------------------- */
.font-white.checkb,
label.font-white.checkb,
.checkb {
    color: #000 !important;
    font-weight: 500;
    vertical-align: middle;
    cursor: pointer;
    font-size: 1.438rem !important;
    margin: 0;
}

/* Custom square checkbox with checkmark (matches the mockup).
   Scoped to .chkBox = the consent checkboxes used on the entry
   pages (t1 / index*). The extra "input[type=checkbox].chkBox"
   selector + !important defeat any inline scale() left on a page. */
input[type=checkbox].chkBox,
.chkBox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px!important;
    height: 40px!important;
    margin: 0 12px 0 0;
    padding: 0 !important;
    border: 2px solid #c3ccdf;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transform: none !important;   /* kill old scale(2) */
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.chkBox:hover { border-color: var(--crd-blue-2); }
.chkBox:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,111,224,.30); }
.chkBox:checked {
    background: linear-gradient(135deg, var(--crd-blue-2) 0%, #2546b8 100%);
    border-color: #2546b8;
}
.chkBox:checked::after {     /* the tick */
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.chkBox:disabled { opacity: .5; cursor: not-allowed; }

/* any other (non-consent) checkboxes just get a modern accent */
input[type=checkbox]:not(.chkBox) {
    accent-color: var(--crd-blue-2);
    cursor: pointer;
}






/* ----------------------------------------------------------------
   5. Buttons -> blue gradient "pill" (matches the ยืนยัน button)
   Covers t1's .button, the #submit element, and generic submits.
   ---------------------------------------------------------------- */
.button,
#submit,
input[type=submit].button {
    display: inline-block;
    background: linear-gradient(135deg, #1925AA 0%, #5966F6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    width: auto !important;
    min-width: 200px;
    padding: 12px 60px !important;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(43, 63, 158, .35) !important;
    text-shadow: none !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button:hover,
#submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4a7bec 0%, #3146c4 100%) !important;
    box-shadow: 0 16px 30px rgba(43, 63, 158, .42) !important;
}
.button:active,
#submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(43, 63, 158, .35) !important;
    top: 0 !important;
}
.button[disabled],
#submit[disabled] {
    filter: grayscale(.4);
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
input[type="text"]:focus  {
    border: 1px solid #555;
}

/* ----------------------------------------------------------------
   6. Tables (divTable blue/green) — soften & round the cards
   ---------------------------------------------------------------- */
div.blueTable,
div.greenTable {
    border: 1px solid var(--crd-line) !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(20, 30, 80, .07);
    margin: 0 auto;
}
.divTable.blueTable .divTableHeading,
.divTable.greenTable .divTableHeading {
    border-bottom: none !important;
}

/* blueTable — navy header + clean white rows (site-wide mood tone) */
.divTable.blueTable {
    background: #ffffff !important;
    border: 1px solid var(--crd-line) !important;
}
.divTable.blueTable .divTableHead,
.divTable.blueTable .divTableCell {
    border: none;
    border-bottom: 1px solid #eef1f7;
}
.divTable.blueTable .divTableHeading {
    background: var(--crd-navy) !important;   /* #16205e */
    border-bottom: none !important;
}
.divTable.blueTable .divTableHeading .divTableHead {
    color: #ffffff;
    font-weight: 700;
    border: none;
    background: var(--crd-navy);
}
.divTable.blueTable .divTableRow:nth-child(odd)  { background: #ffffff; }
.divTable.blueTable .divTableRow:nth-child(even) { background: #f5f7fc; }
.blueTable .divTableRow:hover,
.blueTable .divTableRow.box:hover { background-color: #eaf0ff !important; }

/* greenTable — same navy mood tone (toggleClick panels, popups, etc.) */
.divTable.greenTable {
    background: #ffffff !important;
    border: 1px solid var(--crd-line) !important;
}
.divTable.greenTable .divTableHead,
.divTable.greenTable .divTableCell {
    border: none;
    border-bottom: 1px solid #eef1f7;
}
.divTable.greenTable .divTableHeading {
    background: var(--crd-navy) !important;   /* #16205e */
    border-bottom: none !important;
}
.divTable.greenTable .divTableHeading .divTableHead {
    color: #fff!important;
    font-weight: 600;
    border: none;
    background: linear-gradient(130deg,#5966F6 0%, #1925AA 100%);
    font-size: 1rem;
}
.divTable.greenTable .divTableBody .divTableRow:nth-child(odd),
.divTable.greenTable .divTableBody .divTableRowh:nth-child(odd)  { background: #ffffff; }
.divTable.greenTable .divTableBody .divTableRow:nth-child(even),
.divTable.greenTable .divTableBody .divTableRowh:nth-child(even) { background: #f5f7fc; }
.greenTable .divTableBody .divTableRow:hover,
.greenTable .divTableBody .divTableRowh:hover { background-color: #eaf0ff !important; }

#statsLightbox .crd-lightbox__body {
    gap: 6px;
    display: flex;
    flex-direction: column;
}
#statsLightbox .crd-lightbox__body .divTableCell {
    font-size: 1rem;
}

/* ----------------------------------------------------------------
   7. Responsive video (YouTube iframe is hard-coded to 727px)
   ---------------------------------------------------------------- */
iframe {
    width: 100% !important;
    max-width: 760px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 30, 80, .12);
}



/* ----------------------------------------------------------------
   CRD CSS
   ---------------------------------------------------------------- */






.img-fluid {
    width: 100%;
    height: auto;
}

#myForm {
    padding-left: 40px;
    padding-right: 40px;
    clear: both;
}
#myForm > .container {
    background: #fff;
    border-radius: 0 60px 60px  60px;
    box-shadow: 0 6px 13px 0 rgba(0, 0, 0, .06);
    font-size: 1rem;
    color: #1E1E1E;
    width: 100%!important;
}
.hdr {
    text-align: center;
    font-size: 1.625rem;
    font-weight: 600;
    margin: 0;
    color: #000;
    padding: 53px 0 16px;
}
.sub-hdr {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 5px;
    color: #000;
    padding-bottom: 40px;
}
.sub-hdr .small {
    font-size: 1.25rem;
    font-weight: normal;
    color: #000;
    padding-top: 4px;
}
.sub-hdr-3 {
    margin: 0;
    background: #0F1B50;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 0 16px 16px 16px;
}
.sub-hdr-3-light {
    background: #293E9A;
}
.sub-hdr-3-nobg {
    margin: 0;
    color: #0039A5;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    padding: 0;
}


.sub-hdr-3 span {
    display: block;
}
.sub-hdr-4 {
    font-weight: bold;
    font-size: 1.25rem;
}



.list-condition {
    font-size: 1.125rem;
    max-width: 1150px;
    margin: 0 auto;
}
.list-condition li {
    margin-bottom: 10px;
}


.document-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1150px;
    margin: 0 auto;
}
.document-item-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px 16px;
    font-size: 1rem;
}
.document-item-panel .document-panel-titlebar {
    padding: 0 0 20px;
    display: grid;
    gap: 8px;
    grid-template-columns: 40px 1fr;
    align-items: start;
}
.document-item-panel .document-panel-titlebar .document-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0039A5;
}
.document-item-panel .document-panel-titlebar .document-panel-icon {
    width: 40px;
    aspect-ratio: 1/1;
    background: #0039A5;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.document-item-panel .document-panel-titlebar .document-panel-icon .icon {
    width: 20px;
    height: auto;
    filter: invert(1);
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive > .table > tbody > tr > td {
    white-space: normal!important;
}

.table.table-document,
.table.table-document-download {
    margin-top: 0;
    border-color: #dee2e6;
    width: 100%;
    font-size: 1rem;
}
.table.table-document > tbody > tr:first-child td,
.table.table-document-download > tbody > tr:first-child td {
    border-top: 0;
}


.table.table-document-download .col-title,
.table.table-document .col-title {
    padding: 12px 25px 12px 16px;
}
.table.table-document-download .col-title .doc-title,
.table.table-document .col-title .doc-title {
    display: flex;
    gap: 10px;
}
.table.table-document-download .col-title .doc-title a,
.table.table-document .col-title .doc-title a {
  color: rgba(0,57,165,  1);
}
.table.table-document-download .col-title .doc-title a:hover,
.table.table-document .col-title .doc-title a:hover {
  color: #000;
}

.table.table-document-download .col-title .doc-title::before,
.table.table-document .col-title .doc-title::before {
    content: " ";
    min-width: 5px;
    width: 5px;
    height: 5px;
    border-radius: 100px;
    display: block;
    background: rgba(0,57,165, 1);
    margin-top: 10px;
}


.table.table-document-download .col-download,
.table.table-document .col-download {
    padding-top: 12px;
    padding-bottom: 12px;
}
.table.table-document-download .col-download {
    width: 190px;
}

.table.table-document-download .file-item,
.table.table-document .file-item {
    display: flex;
    justify-content: center;
    gap: 10px 24px;
}
.table.table-document-download .file-item a,
.table.table-document .file-item a {
    display: flex;
    color: rgba(0,57,165,  1);
}
.table.table-document-download .file-item img,
.table.table-document .file-item img {
    height: 24px;
    width: auto;
}
.example-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(130deg, #FFCA00 0%, #FFCC4D 100%);
    color: #3c3c3c;
    font-weight: 500;
    font-size: .75rem;
    line-height: 1;
    border-radius: 50px 10px 50px 10px;
    padding: 4px 12px;
    height: 24px;
    white-space: nowrap;
    width: 66px;
    height: 24px;
}

.q-step-row {
    display: grid;
    grid-template-columns: 1fr minmax(350px, 450px);
    gap: 20px 40px;
}
.q-step-list {
    font-size: 1.125rem;
}
.q-step-list li {
    margin-bottom: 10px;
}
.q-step-col-2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.q-step-col-2 a {
    display: block;
    position: relative;
}
.q-step-col-2 img {
    border-radius: 10px;
}
.cta-modal-video {
    position: relative;
}
.play-icon-box {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    margin: auto;
    background: linear-gradient(130deg, rgba(89, 102, 246, 0.7) 0%, #1925aa 100%);
    width: 80px;
    height: 80px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-icon-box::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    animation: ripple 2s ease-out infinite;
    border: 8px solid #5966F6;
    position: absolute;
}
.play-icon-box img {
    filter: invert(1);
}
@keyframes ripple {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
    transform:scale(1.8);
  }
}
.cta-title  {
    color: #1925AA;
    text-align: center;
}


.modal-dialog {
    width: 80vw!important;
    max-width: 1200px!important;
    margin-left: auto;
    margin-right: auto;
}
.modal-header {
    display: grid;
    grid-template-columns: 0 1fr auto;
}
.modal-header .btn-close {

}

.modal-title {
    font-size: 1.438rem;
}
.modal-body  {
    text-align: center;
}
.modal-body iframe {
    width: 100%;
    max-width: unset;
}

.row.termandcon {
    margin: 0;
}
.row.termandcon p {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.row.termandcon #submit {
    margin: 40px auto 0;
}

.row.termandcon marquee {
    display: none;
}

.document-btn.btn-view-all {
    margin: auto;
    width: 210px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(130deg,#5966F6 0%, #1925AA 100%);
    border-radius: 100px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: 0;
}
.document-btn.btn-view-all .icon {
    width: 26px;
    height: 26px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B2483;
}
.document-btn.btn-view-all .icon img {
    width: 10px;
    height: auto;
    filter: invert(1);
}
.document-btn.btn-view-all.is-expanded .icon img {
    transform: rotate(180deg);
}

/*t2*/
.row.content .row{
    margin: 0;
    width: 100%;
}
div.round1 {
    height: 100%!important;
}

.row:has(.progressbar) {
    margin: 0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: flex;
}
.row:has(.progressbar) .col-sm-10 {
    width: 100%;
}

.progressbar li.active {
    color: #5966F6!important;
}
.progressbar li.active::before {
    border-color: #5966F6!important;
}
.progressbar li.active + li::after {
    background-color: #5966F6!important;
}
.col-sm-12.well {
    border: 0;
    background: #fff;
    border-radius: 0 60px 60px 60px
}
.col-xs-8.well {
    border: 0;
    background: #fff;
}

#step-2 .row {
    margin: 0;
}
#step-2 .row:last-child {
    display: flex;
    flex-direction: column;
}

#step-2 .row:last-child .col-xs-8.well {
    width: 90% !important;
    max-width: 800px;
    margin: auto;
    border: 0;
    box-shadow: unset;
}



.btn-info {
    background: linear-gradient(130deg,#1925AA 0%, #5966F6 100%)!important;
    border-radius: 50px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.btn-info:hover {
    background: linear-gradient(130deg,#5966F6 0%, #1925AA 100%)!important;
}

.btn-primary,
.btn-success,
.btn-danger {
    border-radius: 50px;
    border: 0;
    font-size: 1.125rem;
}

.btn-danger {
    background: #aa0512;
}
.btn-danger:hover  {
    background: #d9534f;
}


.btn-success {
    background: linear-gradient(130deg,#1925AA 0%, #5966F6 100%)!important;
}
.btn-success:hover {
    background: linear-gradient(130deg,#5966F6 0%, #1925AA 100%)!important;
}
.divTable.greenTable .divTableBody .divTableCell {
    font-size: 16px!important;
}
.button-bar {
    margin: 0;
    padding-bottom: 20px;
    padding-top: 30px;
}

.btn:has(.fa),
.button-bar .btn  {
    font-size: 1.125rem!important;
}

.btn:has(.fa) .btn .fa,
.button-bar .btn .fa {
    font-size: .8rem;
    font-weight: normal;
}

.progressbar {
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

#printMe .list-form img {
    width: 100%;
    height: auto;
    max-width: 600px;
}
#printMe .whiteTable.outerTableFooter,
#printMe .list-form div.whiteTable {
    min-width: unset;
}
.divTable.blueTable .divTableHeading .divTableHead,
.divTable.blueTable .divTableBody .divTableCell {
    padding: 8px 5px;
}

.divTableCell input.number {
    border: 1px solid #1d29af;
}

.divTable.redTable .divTableHeading {
    background: #212db3;
}
.divTable.redTable .divTableHeading .divTableHead {
    padding: 5px;
}
div.redTable {
    background-color: #212db325;
}
div.redTable input {
    border: 1px solid #1d29af;
}
.divTable.redTable .divTableBody .divTableCell {
    font-size: 16px;
    padding: 5px;
}

.f1 input {
    border: 1px solid #1d29af;
}


.t-4 .row.well {

}


.t5 {

}


/* ----------------------------------------------------------------
   8. Responsive breakpoints
   ---------------------------------------------------------------- */
@media (min-width: 1280px) {
    #myForm > .container {
        max-width: 1370px;
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 1279px) {
    #myForm > .container {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 1024px) {
    .sub-hdr-3 span {
        display: inline;
    }
    .col-sm-12.well {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .row.content .row:has(.col-sm-12.well) {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    #step-2 .row:last-child .col-xs-8.well {
        width: 100%!important;
    }
}


@media (max-width: 992px) {
    .container { max-width: 100%; }
    .topnav > img { height: 56px; }
    .q-step-row {
        grid-template-columns: 1fr 300px;
    }

    .container {
        width: 100%!important;
        max-width: 800px;
    }
    .col-sm-12.well {
        width: 100%;
    }
    .row.content .row:has(.col-sm-12.well) {
        margin: 0;
    }
}

@media (max-width: 768px) {
    /* Header: stop absolutely-centering the title, let it stack */
    .topnav { text-align: center; min-height: auto; padding: 12px; }
    .topnav-centered a {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        float: none !important;
        display: block;
        padding: 8px 4px !important;
    }
    .topnav > img { display: block; margin: 8px auto 0; height: 50px; }
    .topnav-right { float: none !important; display: inline-block; }
    .topnav-right a { padding: 12px 6px !important; }

    .topnav .font-header { font-size: 1.15em !important; }
    .topnav .font-sheader { font-size: 1em !important; }

    /* Content: full width, comfortable padding */
    .alert { padding: 18px 16px !important; font-size: 16px; }
    div.blueTable,
    div.greenTable {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .divTable.greenTable .divTableCell,
    .divTable.greenTable .divTableHead { width: auto !important; }

    /* Buttons span the row on small screens */
    .button,
    #submit,
    input[type=submit].button {
        font-size: 1.125rem !important;
    }

    .chkBox { width: 32px !important; }

    .row.termandcon p {
        align-items: flex-start;
    }
    .font-white.checkb, label.font-white.checkb, .checkb {
        font-size: 1.125rem !important;
        line-height: 1.3;
    }


    .q-step-row {
        display: flex;
        flex-direction: column;
    }
    .q-step-col-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    #myForm {
      padding-left: 30px;
      padding-right: 30px;
    }
    #myForm > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hdr {
        font-size: 1.375rem;
    }
    .sub-hdr {
        font-size: 1.188rem;
    }
    .sub-hdr .small {
        font-size: 1.125rem;
    }

    .sub-hdr-3-nobg {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .sub-hdr-3,
    .sub-hdr-3-light {
        display: block;
        font-size: 1.1rem;
    }
        .sub-hdr-3-light span {
            display: inline;
        }



    .table.table-document .col-title .doc-title strong {
        min-width: 100px;
    }
    .table.table-document-download .col-title,
    .table.table-document .col-titl {
        padding-left: 5px;
        padding-right: 10px;
    }
    .table.table-document-download .col-download,
    .table.table-document .col-download {
        width: 100px;
        padding-right: 0;
        padding-left: 0;
    }
    .table.table-document-download .file-item, .table.table-document .file-item {
        width: 100px;
    }
    .table-responsive {
        border: 0!important;
    }
    .document-item-panel .document-panel-titlebar .document-panel-title {
        font-size: 1.125rem;
    }
    .document-item-panel .document-panel-titlebar {
        grid-template-columns: 30px 1fr;
    }
    .document-item-panel .document-panel-titlebar .document-panel-icon {
        width: 30px;
    }
    .document-item-panel .document-panel-titlebar .document-panel-icon .icon {
        width: 15px;
    }

    #printMe .list-form  .divTableRow {
        flex-direction: column;
        display: flex;
    }
    #printMe {
        max-width: 95vw;
        margin: auto;
    }

}

@media (max-width: 576px) {
    .table.table-document-download .col-download,
    .table.table-document .col-download {
        width: 60px;
    }
    .table.table-document-download .file-item, .table.table-document .file-item {
        width: 60px;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    #step-2 .row:last-child .col-xs-8.well {
        width: 100%!important;
        padding: 0;
    }
    .col-sm-12.well {
        max-width: unset;
    }

}

@media (max-width: 480px) {
    #myForm {
      padding-left: 10px;
      padding-right: 10px;
    }
    .alert { font-size: 15px; border-radius: 14px; }
    .topnav .font-header { font-size: 1.02em !important; }
    .q-step-col-2 {
        display: flex;
        flex-direction: column;
    }

}
