/*
Theme Name: Kagoj Ready
Description: A focused, preview-only workspace for independent Bangladesh NVR packet preparation. Requires the separate NVR intake plugin for application workflows.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nvr-packet
License: GPL-2.0-or-later
*/
:root {
  --ink: #183b37;
  --muted: #49615a;
  --teal: #075d55;
  --teal-dark: #03473f;
  --cream: #faf8f1;
  --line: #c9d7cf;
  --soft: #eef4ee;
  --focus: #995000;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: .08em; overflow-wrap: anywhere; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
img, video, iframe { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-width { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 10000; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }
.preview-banner { background: #e9eddf; border-bottom: 1px solid #cdd5bf; color: #324631; font-size: .85rem; }
.preview-banner .site-width { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding-block: .7rem; }
.preview-banner strong { text-transform: uppercase; letter-spacing: .07em; }
.site-header { border-bottom: 1px solid var(--line); background: #fffdf7; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.04em; }
.brand-description { font-size: .78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-nav a { display: inline-block; padding-block: .6rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-main { padding-block: 2.5rem 4rem; min-height: 50vh; }
.intro { padding-block: .5rem 2.5rem; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--teal); }
.intro h1 { margin: .7rem 0 1.2rem; max-width: 850px; }
.intro-description { font-size: 1.15rem; max-width: 720px; }
.intro-disclaimer { max-width: 760px; color: var(--muted); font-size: .9rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.steps li { min-width: 0; }
.steps li > span { display: block; margin-bottom: .5rem; color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.steps strong { display: block; margin-bottom: .4rem; }
.steps p { font-size: .88rem; color: var(--muted); margin: 0; }
.page-content { min-width: 0; }
.content-entry { min-width: 0; overflow-wrap: anywhere; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 1.7rem; }
.content-entry > p, .content-entry > ul, .content-entry > ol { max-width: 78ch; }
button, input, select, textarea { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { max-width: 100%; min-width: 0; min-height: 44px; border: 1px solid #829c92; border-radius: 6px; padding: .7rem; background: #fff; color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
input[type="file"] { font-size: .9rem; }
input[type="file"]::file-selector-button { font: inherit; margin-right: .6rem; border: 1px solid var(--line); padding: .35rem .6rem; background: var(--soft); border-radius: 4px; color: var(--ink); cursor: pointer; }
textarea { resize: vertical; }
button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-block-button__link { display: inline-block; max-width: 100%; min-height: 44px; padding: .7rem 1.1rem; border: 1px solid var(--teal); border-radius: 6px; background: var(--teal); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.4; white-space: normal; }
button:hover, input[type="submit"]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--teal-dark); color: #fff; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .6; }
fieldset { min-width: 0; }
legend { max-width: 100%; white-space: normal; }
/* Keep plugin workflow and native controls visible; adapt its grid, never replace it. */
.site-main .nvr { max-width: 100%; margin: 0; padding: clamp(1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); box-shadow: 0 6px 24px #183b3705; }
.site-main .nvr h2:first-child { margin-top: 0; }
.site-main .nvr fieldset { min-width: 0; gap: 1.1rem; padding: 1.2rem; background: #fff; }
.site-main .nvr fieldset > * { min-width: 0; }
.site-main .nvr input, .site-main .nvr select, .site-main .nvr textarea { min-height: 44px; border-radius: 6px; }
.site-main .nvr input[type="checkbox"] { min-height: auto; flex: 0 0 auto; }
.site-main .nvr .nvr-check { gap: .65rem; }
.site-main .nvr .nvr-notice { padding: 1rem 1.2rem; border-radius: 4px; font-size: .93rem; }
.site-main .nvr .nvr-toolbar { flex-wrap: wrap; gap: .7rem; }
.site-main .nvr .nvr-toolbar select { flex: 1 1 220px; width: auto; }
.site-main .nvr button { min-height: 44px; line-height: 1.4; }
.site-main .nvr a { color: var(--teal); }
.woocommerce { min-width: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: .35rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border-color: var(--line); background: #fff; border-radius: 10px; padding: 1.5rem; }
.woocommerce .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin-top: 0; }
.woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.woocommerce .woocommerce-MyAccount-navigation .is-active a { font-weight: 700; background: var(--soft); }
.woocommerce table.shop_table { background: #fff; border-color: var(--line); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--teal); background: var(--soft); color: var(--ink); }
.woocommerce .select2-container { max-width: 100%; }
.woocommerce .select2-container .select2-selection--single { min-height: 44px; border-color: #829c92; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.site-footer { background: #edf1e8; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem 4rem; padding-block: 2.5rem; }
.footer-inner > div { max-width: 680px; }
.footer-brand { color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.footer-note { display: inline-block; margin-top: .7rem; }
@media (max-width: 700px) {
  .site-width { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: 1.1rem; }
  .site-nav { gap: .25rem 1.1rem; }
  .site-main { padding-block: 1.8rem 2.5rem; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .steps li { padding-left: 2.1rem; position: relative; }
  .steps li > span { position: absolute; left: 0; top: .1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.8rem; }
  .site-main .nvr fieldset { grid-template-columns: 1fr; padding: .85rem; }
  .site-main .nvr .nvr-toolbar { display: flex; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.brand-name{display:flex;align-items:center;gap:8px}.brand-name img{flex:none}.kagoj-contact{max-width:650px}.kagoj-contact label{display:block;font-weight:600;margin:18px 0 8px}.kagoj-contact input,.kagoj-contact textarea{width:100%;font:inherit;padding:12px;border:1px solid #93a398;border-radius:7px}.kagoj-contact button{font:inherit;padding:12px 20px;background:#164f40;color:white;border:0;border-radius:7px;min-height:44px}.kagoj-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.policy-draft{padding:14px 18px;background:#edf2e8;border-left:3px solid #164f40}.entry-content{max-width:760px}.entry-content h2{font-size:26px;margin-top:32px}.site-footer nav{display:flex;gap:14px;flex-wrap:wrap;align-content:start}html:lang(bn) body{font-family:"Kohinoor Bangla","Nirmala UI",system-ui,sans-serif}
.kagoj-test-notice{margin:0;padding:10px 18px;background:#fff0c2;color:#403415;text-align:center;font:600 14px/1.5 system-ui,sans-serif}

/* Checkout: same look as the intake, phone-first. */
.kagoj-test-notice [lang]{display:none}
html[lang=en] .kagoj-test-notice [lang=en],html[lang=bn] .kagoj-test-notice [lang=bn]{display:inline}
html[lang=bn] body{line-height:1.65}
.kagoj-checkout-intro{margin:0 0 1.2rem;padding:14px 16px;border-radius:10px;background:#e6f0e9;border:1px solid #b3c9b8}
.kagoj-checkout-intro p{margin:.2rem 0}
.kagoj-checkout-step{font-weight:700;color:#164f40}
.woocommerce-checkout #place_order,.woocommerce-checkout button.button.alt{background:#164f40!important;border-color:#164f40!important;color:#fff!important;font-size:1.1rem;min-height:54px;width:100%;border-radius:8px}
.woocommerce-checkout input.input-text,.woocommerce-checkout select{font-size:16px;min-height:46px}
.woocommerce-checkout .shop_table th{word-break:keep-all;white-space:nowrap}
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text{font-size:1rem}
.woocommerce-checkout #terms,.woocommerce-checkout input[type=checkbox]{width:24px;height:24px;vertical-align:middle;accent-color:#164f40}
.woocommerce-checkout .woocommerce-form__label-for-checkbox{display:flex;gap:10px;align-items:flex-start;font-size:1rem}
.woocommerce-checkout .shop_table .amount,.woocommerce-order .amount{white-space:nowrap}
.woocommerce .shop_table{table-layout:auto;width:100%;max-width:100%}
.woocommerce .shop_table td.product-name,.woocommerce .shop_table td.woocommerce-table__product-name{white-space:normal;overflow-wrap:anywhere}
.woocommerce-order ul.order_details{display:grid;gap:.6rem;padding:0;list-style:none}
.woocommerce-order ul.order_details li{float:none;border:0;margin:0;padding:.5rem 0;border-bottom:1px solid #d3d9ce}
.woocommerce-order ul.order_details li::before{content:none}
.woocommerce-checkout,.woocommerce-order{overflow-wrap:anywhere}
.woocommerce-checkout #terms{width:28px;height:28px}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row{padding:12px 0}
#billing_first_name_field .optional,#billing_last_name_field .optional{display:none}
.kagoj-next{margin:1.5rem 0;padding:16px 18px;border-radius:10px;background:#e6f0e9;border:1px solid #b3c9b8}
.kagoj-next h2{margin:0 0 .5rem;font-size:1.3rem}
.kagoj-next ol{margin:0;padding-left:1.3rem}.kagoj-next li{margin:.5rem 0;line-height:1.6}
.lang-toggle{display:inline-flex;border:1px solid #c7d4c9;border-radius:10px;overflow:hidden;background:#fff}
.lang-toggle a{padding:8px 14px;font-weight:700;text-decoration:none;color:#164f40;min-height:40px;display:inline-flex;align-items:center}
.lang-toggle a[aria-current]{background:#164f40;color:#fff}
.kagoj-attention{outline:3px solid #d5a24f;outline-offset:6px;border-radius:6px;background:#fff7e9}
@media(max-width:600px){.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none}}
.kagoj-remind{margin:.6rem 0 0;padding:10px 12px;border-radius:8px;background:#fff7e9;border:1px solid #d5bc8d}
.kagoj-again{margin:1rem 0 0;font-weight:650}.kagoj-again a{color:#164f40}
