/* Janm tithi picker: Saal → Mahina → Din */
.bd-dob__native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; border: 0 !important; }
.bd-dob__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #e6d3c3; border-radius: 10px; background: #fff; color: #2a1a12; font: 500 16px/1.2 "Poppins", system-ui, sans-serif; text-align: left; cursor: pointer; box-sizing: border-box; }
.bd-dob__field svg { flex: none; color: #b4410f; }
.bd-dob__field.is-empty .bd-dob__txt { color: #9a8578; font-weight: 400; }
.bd-dob__field:hover { border-color: #f26a1b; }
.bd-dob__field:focus-visible { outline: 2px solid #f26a1b; outline-offset: 1px; }
.bd-dob__field.is-invalid { border-color: #c81d25; box-shadow: 0 0 0 3px rgba(200, 29, 37, .12); }

.bd-dob__back { position: fixed; inset: 0; z-index: 1100; background: rgba(30, 10, 5, 0); transition: background .18s; }
.bd-dob { position: absolute; z-index: 1101; width: 340px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #f1e2d2; border-radius: 16px; box-shadow: 0 18px 50px rgba(60, 20, 5, .25); padding: 12px; color: #2a1a12; font: 400 14px/1.4 "Poppins", system-ui, sans-serif; opacity: 0; transform: translateY(-4px); transition: opacity .16s, transform .16s; box-sizing: border-box; }
.bd-dob.is-in { opacity: 1; transform: none; }
.bd-dob * { box-sizing: border-box; }
.bd-dob button { font: inherit; cursor: pointer; }
.bd-dob__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bd-dob__head strong { font: 600 15.5px "Lora", Georgia, serif; color: #8a1a14; }
.bd-dob__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fbefe4; color: #8a1a14; }
.bd-dob__crumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-dob__crumbs span { color: #c9b3a4; }
.bd-dob__crumbs button { border: 1px solid #f1e2d2; background: #fffaf4; color: #5b3a2e; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.bd-dob__crumbs button.is-on { background: #8a1a14; border-color: #8a1a14; color: #ffcf7a; }
.bd-dob__crumbs button:disabled { opacity: .45; cursor: default; }
.bd-dob__decades { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: thin; }
.bd-dob__decades button { flex: none; border: 1px solid #f1e2d2; background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 12.5px; color: #8a1a14; }
.bd-dob__decades button:hover { background: #fff1e4; }
.bd-dob__grid { display: grid; gap: 6px; }
.bd-dob__grid button { border: 1px solid #f1e2d2; background: #fffaf4; color: #2a1a12; border-radius: 10px; min-height: 40px; font-weight: 500; }
.bd-dob__grid button:hover:not(:disabled), .bd-dob__grid button:focus-visible { background: #fff1e4; border-color: #f26a1b; outline: none; }
.bd-dob__grid button.is-sel { background: linear-gradient(90deg, #f26a1b, #fb4d14); border-color: transparent; color: #fff; }
.bd-dob__grid button.is-today { box-shadow: inset 0 0 0 1px #f26a1b; }
.bd-dob__grid button:disabled { opacity: .35; cursor: not-allowed; }
.bd-dob__years { grid-template-columns: repeat(4, 1fr); max-height: 248px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; scroll-behavior: auto; }
.bd-dob__months { grid-template-columns: repeat(3, 1fr); }
.bd-dob__months button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; }
.bd-dob__months small { font-size: 11px; color: #7a6558; font-weight: 400; }
.bd-dob__months button.is-sel small { color: #fff; }
.bd-dob__days { grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bd-dob__days button { min-height: 38px; padding: 0; }
.bd-dob__wd { text-align: center; font-size: 11.5px; font-weight: 600; color: #b4410f; padding: 2px 0; }
.bd-dob__hint { margin: 8px 0 0; font-size: 12px; color: #7a6558; text-align: center; }

/* Phone: neeche se khulne wali sheet */
.bd-dob.is-sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 18px 18px 0 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); transform: translateY(16px); }
.bd-dob.is-sheet.is-in { transform: none; }
.bd-dob.is-sheet .bd-dob__years { max-height: 46vh; }
.bd-dob.is-sheet .bd-dob__grid button { min-height: 46px; font-size: 15px; }
@media (max-width: 600px) { .bd-dob__back.is-in { background: rgba(30, 10, 5, .45); } }
@media (prefers-reduced-motion: reduce) { .bd-dob, .bd-dob__back { transition: none; } }
