.pregnancy-inline[hidden] {
    display: none !important;
}

.pregnancy-inline {
    margin-top: 18px;
}

.pregnancy-inline > .form-group {
    margin-bottom: 0;
}

.pregnancy-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.pregnancy-picker-trigger {
    width: 100%;
    min-height: 50px;
    padding: 12px 48px 12px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1f343d;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pregnancy-picker-trigger.is-empty {
    color: #8aa0ad;
}

.pregnancy-picker-trigger:hover {
    border-color: #79b9df;
    background: #fff;
}

.pregnancy-picker-trigger:focus-visible {
    outline: none;
    border-color: #48cae4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(72, 202, 228, .12);
}

.pregnancy-field-icon,
.pregnancy-field-calendar-icon {
    position: absolute;
    z-index: 2;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #48cae4;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.pregnancy-field-icon {
    left: 15px;
}

.pregnancy-field-calendar-icon {
    right: 15px;
    stroke: #0077b6;
}

.pregnancy-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 7px;
    color: #607784;
    font-size: .8rem;
    line-height: 1.4;
}

.pregnancy-summary strong {
    color: #0b5d93;
}

.pregnancy-clear {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0077b6;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: underline;
}

.pregnancy-field-error.is-visible {
    display: block;
}

.pregnancy-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 35, 52, .54);
}

.pregnancy-picker-backdrop[hidden] {
    display: none;
}

.pregnancy-picker-dialog {
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid #cfe2ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(4, 35, 52, .3);
}

.pregnancy-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #d8e7f1;
    background: linear-gradient(135deg, #f3fbff, #f8fffd);
}

.pregnancy-picker-header h2 {
    margin: 0;
    color: #073b4c;
    font-size: 1.35rem;
}

.pregnancy-picker-header p {
    margin: 5px 0 0;
    color: #607784;
    font-size: .88rem;
}

.pregnancy-picker-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eaf7fd;
    color: #0b6fae;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.pregnancy-picker-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 26px 14px;
}

.pregnancy-picker-calendar {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8e7f1;
    border-radius: 12px;
    background: #fbfdff;
}

.pregnancy-picker-calendar h3 {
    margin: 0;
    color: #073b4c;
    font-size: .95rem;
}

.pregnancy-picker-calendar h3 span {
    color: #607784;
    font-size: .78rem;
    font-weight: 600;
}

.pregnancy-picker-month-bar {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pregnancy-picker-month-year {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.pregnancy-picker-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.pregnancy-picker-month-select,
.pregnancy-picker-year-select {
    min-height: 30px;
    padding: 4px 24px 4px 8px;
    border: 1px solid #cfe1ee;
    border-radius: 7px;
    background: #fff;
    color: #0b5d93;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}

.pregnancy-picker-month-select {
    min-width: 104px;
}

.pregnancy-picker-month-select:focus-visible,
.pregnancy-picker-year-select:focus-visible {
    outline: none;
    border-color: #48cae4;
    box-shadow: 0 0 0 3px rgba(72, 202, 228, .14);
}

.pregnancy-picker-year-select {
    min-width: 78px;
}

.pregnancy-picker-month-title {
    color: #0b5d93;
    font-size: .93rem;
    font-weight: 900;
    text-align: right;
}

.pregnancy-picker-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #cfe1ee;
    border-radius: 8px;
    background: #fff;
    color: #0f7cc2;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.pregnancy-picker-nav:hover {
    border-color: #48cae4;
    background: #eaf7fd;
}

.pregnancy-picker-nav:disabled {
    border-color: #e3edf2;
    background: #f5f9fb;
    color: #b4c2c9;
    cursor: not-allowed;
}

.pregnancy-picker-weekdays,
.pregnancy-picker-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.pregnancy-picker-weekdays {
    margin-bottom: 5px;
    color: #607784;
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
}

.pregnancy-picker-day {
    min-height: 34px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #1f343d;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
}

.pregnancy-picker-day:hover:not(:disabled) {
    border-color: #79b9df;
    background: #eaf7fd;
}

.pregnancy-picker-day.is-selected {
    border-color: #0f7cc2;
    background: #0f7cc2;
    color: #fff;
    font-weight: 900;
}

.pregnancy-picker-day:disabled {
    color: #b4c2c9;
    cursor: not-allowed;
}

.pregnancy-picker-selected {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 26px 16px;
    padding: 13px 14px;
    border: 1px solid #cfe5ef;
    border-radius: 10px;
    background: #f5fbfe;
}

.pregnancy-picker-selected div {
    min-width: 0;
}

.pregnancy-picker-selected span {
    display: block;
    color: #607784;
    font-size: .75rem;
    font-weight: 700;
}

.pregnancy-picker-selected strong {
    display: block;
    margin-top: 3px;
    color: #073b4c;
    font-size: .88rem;
}

.pregnancy-picker-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 26px 20px;
    border-top: 1px solid #e2edf2;
}

.pregnancy-picker-footer button {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.pregnancy-picker-cancel {
    border: 1px solid #cfe1ee;
    background: #eef7ff;
    color: #0b4f80;
}

.pregnancy-picker-set {
    border: 1px solid #0f7cc2;
    background: #0f7cc2;
    color: #fff;
}

.pregnancy-picker-set:disabled {
    border-color: #b9cfdd;
    background: #b9cfdd;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .pregnancy-picker-calendars,
    .pregnancy-picker-selected {
        grid-template-columns: 1fr;
    }

    .pregnancy-picker-calendars {
        padding: 16px;
    }

    .pregnancy-picker-selected {
        margin: 0 16px 14px;
    }

    .pregnancy-picker-footer {
        padding: 12px 16px 16px;
    }
}

@media (max-width: 480px) {
    .pregnancy-picker-backdrop {
        padding: 8px;
    }

    .pregnancy-picker-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 14px;
    }

    .pregnancy-picker-header {
        padding: 18px 16px 14px;
    }

    .pregnancy-picker-header h2 {
        font-size: 1.12rem;
    }

    .pregnancy-picker-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pregnancy-picker-footer button {
        width: 100%;
        padding: 0 10px;
    }
}
