/* LCI registration — mobile bottom sheets (2026) */

body.lci-sheet-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.lci-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0);
}

.lci-sheet-trigger-wrap {
    position: relative;
    width: 100%;
}

.lci-sheet-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 12px 12px 16px;
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 8px 20px rgba(12, 35, 64, 0.04);
    color: #94a3b8;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lci-sheet-trigger:active {
    transform: scale(0.985);
}

.lci-sheet-trigger.has-value {
    color: #0c2340;
    font-weight: 650;
    border-color: rgba(12, 35, 64, 0.16);
}

.lci-sheet-trigger-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lci-sheet-trigger-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 35, 64, 0.06);
    color: #0c2340;
    font-size: 11px;
}

.lci-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.lci-mobile-sheet[hidden] {
    display: none !important;
}

.lci-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 36, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.lci-mobile-sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: min(90vh, 760px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
        radial-gradient(120% 80% at 50% -20%, rgba(253, 185, 19, 0.18), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
    border-radius: 28px 28px 0 0;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.7) inset,
        0 -24px 60px rgba(8, 18, 36, 0.28);
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.lci-mobile-sheet.is-open .lci-mobile-sheet-backdrop {
    opacity: 1;
}

.lci-mobile-sheet.is-open .lci-mobile-sheet-panel {
    transform: translateY(0);
}

/* After slide-up animation, drop transform so nested DOB wheels can scroll on iOS. */
.lci-mobile-sheet.is-open.is-settled .lci-mobile-sheet-panel {
    transform: none;
}

.lci-mobile-sheet.has-keyboard .lci-mobile-sheet-panel {
    transition: max-height 0.18s ease, height 0.18s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lci-mobile-sheet-search-slot {
    flex: 0 0 auto;
    padding: 0 14px 10px;
}

.lci-mobile-sheet-search-slot[hidden] {
    display: none !important;
}

.lci-mobile-sheet.has-search .lci-mobile-sheet-search-slot {
    display: block;
}

.lci-mobile-sheet-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 14px;
    flex: 0 0 auto;
}

.lci-mobile-sheet-handle {
    width: 44px;
    height: 5px;
    margin: 12px auto 2px;
    border-radius: 999px;
    background: rgba(12, 35, 64, 0.18);
    flex: 0 0 auto;
}

.lci-mobile-sheet-title {
    margin: 0;
    text-align: left;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0c2340;
    line-height: 1.2;
}

.lci-mobile-sheet-cancel {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 35, 64, 0.06);
    color: #0c2340;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}

.lci-mobile-sheet-done {
    border: 0;
    border-radius: 999px;
    min-height: 40px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0c2340 0%, #163a63 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 18px rgba(12, 35, 64, 0.22);
}

.lci-mobile-sheet.is-loading .lci-mobile-sheet-done {
    opacity: 0.4;
    pointer-events: none;
}

.lci-mobile-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lci-mobile-sheet.has-keyboard .lci-mobile-sheet-body {
    padding-bottom: 12px;
}

.lci-sheet-search-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(12, 35, 64, 0.08);
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.06);
}

.lci-sheet-search-wrap i {
    color: #64748b;
    font-size: 14px;
}

.lci-sheet-search {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #0c2340;
    font-weight: 500;
}

.lci-sheet-search::placeholder {
    color: #94a3b8;
}

.lci-sheet-options {
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(12, 35, 64, 0.06);
    box-shadow: 0 10px 30px rgba(12, 35, 64, 0.05);
    overflow: hidden;
}

.lci-sheet-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    margin: 2px;
    border-radius: 14px;
    font-size: 16px;
    color: #0c2340;
    font-weight: 550;
    letter-spacing: -0.01em;
    transition: background 0.15s ease;
}

.lci-sheet-option-text {
    flex: 1;
    min-width: 0;
}

.lci-sheet-option.is-placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.lci-sheet-option.is-selected {
    background: rgba(12, 35, 64, 0.07);
    font-weight: 750;
}

.lci-sheet-option-check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    background: #0c2340;
    border: 1.5px solid #0c2340;
    color: #fff;
}

.lci-sheet-option[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
}

.lci-sheet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 220px;
    padding: 28px 18px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(12, 35, 64, 0.06);
    box-shadow: 0 10px 30px rgba(12, 35, 64, 0.05);
}

.lci-sheet-spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(12, 35, 64, 0.1);
    border-top-color: #0c2340;
    animation: lci-sheet-spin 0.75s linear infinite;
}

.lci-sheet-loading-title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: #0c2340;
    letter-spacing: -0.02em;
}

.lci-sheet-loading-copy {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    max-width: 240px;
}

@keyframes lci-sheet-spin {
    to {
        transform: rotate(360deg);
    }
}

.lci-sheet-empty {
    padding: 36px 20px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(12, 35, 64, 0.06);
}

.lci-sheet-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #0c2340;
    font-size: 16px;
}

.lci-sheet-empty span {
    color: #64748b;
    font-size: 14px;
}

.lci-dob-picker {
    --lci-dob-item-h: 44px;
    --lci-dob-picker-h: 264px;
    position: relative;
    height: var(--lci-dob-picker-h);
    margin: 0 0 10px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(12, 35, 64, 0.08);
    box-shadow: 0 10px 30px rgba(12, 35, 64, 0.05);
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.lci-dob-columns {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr 1fr;
    height: 100%;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 18%,
        #000 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 18%,
        #000 82%,
        transparent 100%
    );
}

.lci-dob-fade,
.lci-dob-fade-top,
.lci-dob-fade-bottom {
    display: none !important;
}

.lci-dob-highlight {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: var(--lci-dob-item-h);
    margin-top: calc(var(--lci-dob-item-h) / -2);
    border-radius: 12px;
    background: rgba(12, 35, 64, 0.08);
    pointer-events: none !important;
    z-index: 1;
}

.lci-dob-col {
    position: relative;
    min-width: 0;
    height: 100%;
    z-index: 4;
}

.lci-dob-wheel {
    position: relative;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.lci-dob-wheel.is-dragging {
    cursor: grabbing;
}

.lci-dob-track {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.lci-dob-item {
    box-sizing: border-box;
    width: 100%;
    height: var(--lci-dob-item-h);
    min-height: var(--lci-dob-item-h);
    margin: 0;
    padding: 0 6px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: rgba(60, 60, 67, 0.34);
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

.lci-dob-item.is-selected {
    color: #0c2340;
    font-weight: 800;
    font-size: 22px;
}

.lci-dob-hint {
    margin: 0 4px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lci-mobile-sheet--dob .lci-mobile-sheet-body {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lci-dob-field-wrap {
        position: relative;
    }

    .lci-dob-field-wrap .lci-dob-mobile-input {
        cursor: pointer;
        caret-color: transparent;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        border: 1px solid rgba(12, 35, 64, 0.1) !important;
        border-radius: 16px !important;
        min-height: 52px;
        font-size: 16px !important;
        font-weight: 500;
        color: #94a3b8 !important;
        box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 8px 20px rgba(12, 35, 64, 0.04) !important;
        padding-left: 16px !important;
        padding-right: 48px !important;
    }

    .lci-dob-field-wrap.has-value .lci-dob-mobile-input {
        color: #0c2340 !important;
        font-weight: 650;
    }

    .lci-dob-field-wrap::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: rgba(12, 35, 64, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / 14px no-repeat;
        pointer-events: none;
        z-index: 2;
    }

    .lci-dob-field-wrap > i.fa-calendar-alt {
        display: none;
    }
}
