/* ============================================================
   CT Bill Search — ConservaTruth
   ============================================================ */

/* ── Nav button: terra cotta, compact ─────────────────────── */
.ct-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #C95A49;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}
.ct-nav-btn:hover { background: #a84738; }
.ct-nav-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Card button: navy, larger ─────────────────────────────── */
.ct-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #1A5276;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 13px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(26, 82, 118, 0.2);
    white-space: nowrap;
}
.ct-card-btn:hover {
    background: #154360;
    box-shadow: 0 5px 18px rgba(26, 82, 118, 0.3);
}
.ct-card-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Mobile: card button font size ───────────────────────────── */
@media (max-width: 768px) {
    .ct-card-btn {
        font-size: 16px;
    }
}

/* ── Overlay ───────────────────────────────────────────────── */
#ct-bill-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 30, 50, 0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Source Sans 3', sans-serif;
}
#ct-bill-overlay.ct-open { display: flex; }

/* ── Modal ─────────────────────────────────────────────────── */
#ct-bill-modal {
    background: #fdf5ef;
    border: 2px solid #1A5276;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(10, 30, 50, 0.4);
    animation: ct-slide-up 0.2s ease;
    position: relative;
}
@keyframes ct-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal header */
.ct-mh {
    background: #1A5276;
    padding: 20px 24px 16px;
    position: relative;
}
.ct-mh-ey {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #F4E1D2;
    opacity: 0.6;
    margin-bottom: 3px;
}
.ct-mh h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}
.ct-mh p {
    font-size: 13px;
    color: #F4E1D2;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}
.ct-close-x {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
    font-family: sans-serif;
}
.ct-close-x:hover { background: rgba(255,255,255,0.25); }

/* Modal body */
.ct-mb { padding: 20px 24px 22px; }

.ct-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-end;
}
.ct-field { display: flex; flex-direction: column; gap: 5px; }
.ct-field.chamber { flex: 0 0 auto; }
.ct-field.billnum  { flex: 1; }

.ct-flabel {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #1A5276;
    font-weight: 600;
}

.ct-cg {
    display: flex;
    border: 2px solid #1A5276;
    border-radius: 5px;
    overflow: hidden;
}
.ct-cg input[type="radio"] { display: none; }
.ct-cg label {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 16px;
    cursor: pointer;
    background: #fff;
    color: #1A5276;
    transition: background 0.13s, color 0.13s;
    user-select: none;
}
.ct-cg label:first-of-type { border-right: 1px solid #1A5276; }
.ct-cg input[type="radio"]:checked + label { background: #1A5276; color: #fff; }

.ct-num {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #c8d6e0;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1c1c1c;
    background: #fff;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
    letter-spacing: 1px;
    box-sizing: border-box;
}
.ct-num::-webkit-inner-spin-button,
.ct-num::-webkit-outer-spin-button { -webkit-appearance: none; }
.ct-num:focus { outline: none; border-color: #1A5276; }
.ct-num.ct-err { border-color: #C95A49; }
.ct-num::placeholder { color: #b0bec5; font-weight: 400; font-size: 17px; }

.ct-sl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ct-sel {
    padding: 7px 10px;
    border: 2px solid #c8d6e0;
    border-radius: 5px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #1c1c1c;
    background: #fff;
    cursor: pointer;
    flex: 1;
}
.ct-sel:focus { outline: none; border-color: #1A5276; }

.ct-prev {
    font-size: 12px;
    color: #6b7280;
    margin-top: -6px;
    margin-bottom: 12px;
    min-height: 15px;
    font-style: italic;
}

.ct-go {
    width: 100%;
    padding: 12px 20px;
    background: #C95A49;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ct-go:hover { background: #a84738; }
.ct-arr { display: inline-block; transition: transform 0.2s; }
.ct-go:hover .ct-arr { transform: translateX(4px); }

.ct-errmsg {
    display: none;
    background: #fde8e6;
    border: 1px solid #C95A49;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 13px;
    color: #a84738;
    margin-top: 10px;
    align-items: center;
    gap: 7px;
}
.ct-errmsg.ct-show { display: flex; }

/* Modal footer */
.ct-mf {
    border-top: 1px solid #dce8ef;
    padding: 10px 24px;
    background: #eaf1f6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-mf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C95A49;
    flex-shrink: 0;
}
.ct-mf p { font-size: 11px; color: #6b7280; line-height: 1.4; margin: 0; }
.ct-mf a { color: #1A5276; text-decoration: none; font-weight: 600; }
.ct-mf a:hover { text-decoration: underline; }

/* Mobile adjustments */
@media (max-width: 420px) {
    .ct-mb, .ct-mh { padding-left: 16px; padding-right: 16px; }
    .ct-row { flex-direction: column; gap: 10px; }
    .ct-field.chamber { width: 100%; }
}
