.ivfc-main-block {
    padding: 100px 0;
    background-color: #f5f6f6;
}

#ivfc-calculator *,
#ivfc-calculator *::before,
#ivfc-calculator *::after { box-sizing: border-box; margin: 0; padding: 0; }

#ivfc-calculator {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    padding: 44px 40px;
    max-width: 680px;
    width: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #222;
    margin: 20px 0;
}

#ivfc-calculator .ivf-body {
    max-width: 400px;
    margin: 0 auto !important;
}

#ivfc-calculator .ivfc-header {
    text-align: center;
    margin-bottom: 32px;
}
#ivfc-calculator .ivfc-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #301d3f;
    margin-bottom: 8px;
    line-height: 1.25;
}
#ivfc-calculator .ivfc-header p {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.5;
}

#ivfc-calculator .ivfc-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
#ivfc-calculator .ivfc-date-input {
    width: 100%;
    padding: 25px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid #301d3f;
    border-radius: 10px;
    background: #f5f6f6;
    color: #301d3f;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
}
#ivfc-calculator .ivfc-date-input:focus { border-color: #e05252; }


#ivfc-calculator .ivfc-error {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #c0392b;
    font-weight: 500;
}
#ivfc-calculator .ivfc-error.visible { display: block; }


#ivfc-calculator .ivfc-btn {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: #301d3f !important;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
#ivfc-calculator .ivfc-btn:hover  { background: #c94040; }
#ivfc-calculator .ivfc-btn:active { transform: scale(0.98); }

#ivfc-calculator .ivfc-results { display: none; margin-top: 32px; }
#ivfc-calculator .ivfc-results.visible { display: block; }
#ivfc-calculator .ivfc-divider {
    border: none;
    border-top: 1px solid #ececec;
    margin-bottom: 28px;
}

#ivfc-calculator .ivfc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}
#ivfc-calculator .ivfc-result-box {
    background: #f0386b1c;
    border: 1px solid #f0386b1c;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}
#ivfc-calculator .ivfc-result-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e05252;
    margin-bottom: 8px;
}
#ivfc-calculator .ivfc-result-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
#ivfc-calculator .ivfc-result-sub {
    font-size: 0.78rem;
    color: #000;
    margin-top: 4px;
}

#ivfc-calculator .ivfc-tri-section { margin-bottom: 32px; }

#ivfc-calculator .ivfc-tri-top {
    display: flex;
    margin-bottom: 6px;
}
#ivfc-calculator .ivfc-tri-col {
    text-align: center;
}
#ivfc-calculator .ivfc-tri-col-1 { flex: 13; }
#ivfc-calculator .ivfc-tri-col-2 { flex: 14; }
#ivfc-calculator .ivfc-tri-col-3 { flex: 13; }

#ivfc-calculator .ivfc-tri-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #301d3f;
    line-height: 1;
    margin-bottom: 3px;
}
#ivfc-calculator .ivfc-tri-dates {
    display: block;
    font-size: 0.7rem;
    color: #000;
    line-height: 1.3;
}

#ivfc-calculator .ivfc-bar-track {
    position: relative;
    height: 7px;
    background: #f0dede;
    border-radius: 99px;
    margin-top: 8px;
    overflow: visible;
}

#ivfc-calculator .ivfc-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: #e05252;
    border-radius: 99px;
    transition: width 0.5s ease;
    max-width: 100%;
}

#ivfc-calculator .ivfc-bar-divider {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 13px;
    background: #fff;
    border-radius: 2px;
    z-index: 2;
}
#ivfc-calculator .ivfc-baby-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #e05252;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(224,82,82,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: left 0.5s ease;
    z-index: 3;
    cursor: default;
}
#ivfc-calculator .ivfc-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
#ivfc-calculator .ivfc-week-nav-side {
    background: none;
    border: none;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 110px;
}
#ivfc-calculator .ivfc-week-nav-side.ivfc-right { justify-content: flex-end; }
#ivfc-calculator .ivfc-week-nav-side:hover { color: #e05252; background: #fff5f5; }
#ivfc-calculator .ivfc-week-nav-side.ivfc-hidden { visibility: hidden; }

#ivfc-calculator .ivfc-week-nav-center {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    white-space: nowrap;
}

#ivfc-calculator .ivfc-dev-card {
    background: #f0386b1c;
    border-radius: 16px;
    padding: 20px;
}

#ivfc-calculator .ivfc-dev-image-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 18px;
}
#ivfc-calculator .ivfc-dev-embryo {
    width: 220px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    line-height: 1;
}

#ivfc-calculator .ivfc-dev-size {
    font-size: 0.9rem;
    color: #000;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

#ivfc-calculator .ivfc-dev-note {
    font-size: 1rem;
    color: #222;
    line-height: 1.7;
    padding: 0 4px;
}
#ivfc-calculator .ivfc-disclaimer {
    margin-top: 22px;
    font-size: 0.73rem;
    color: #ccc;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .ivfc-main-block {
        padding: 50px 0;
    }
}

@media (max-width: 520px) {
    #ivfc-calculator { padding: 28px 18px; }
    #ivfc-calculator .ivfc-header h2 { font-size: 1.3rem; }
    #ivfc-calculator .ivfc-result-grid { grid-template-columns: 1fr; }
    #ivfc-calculator .ivfc-dev-embryo { width: 80px; height: 80px; font-size: 3rem; }
    #ivfc-calculator .ivfc-dev-image-card { gap: 20px; padding: 20px 14px; }
    #ivfc-calculator .ivfc-week-nav-side { min-width: 80px; font-size: 0.85rem; }
    #ivfc-calculator .ivfc-week-nav-center { font-size: 1.2rem; }
}

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: inherit;
}

.flatpickr-day.selected {
    background: #301d3f !important;
    border-color: #301d3f !important;
    color: #fff !important;
}

.flatpickr-day.today {
    border-color: #301d3f !important;
}

.flatpickr-months {
    background: #f8f8f8 !important;
    border-radius: 12px 12px 0 0;
}

.flatpickr-current-month {
    font-weight: 600;
}

.flatpickr-day:hover {
    background: #301d3f !important;
    color: #fff !important;
}

#ivfc-calculator .ivf-body .ivf-date-field {
    position: relative;
}
#ivfc-calculator .ivf-body .ivf-date-field:before {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;

    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%23301d3f' fill-rule='evenodd' d='M7 5a1 1 0 1 0 2 0h6a1 1 0 1 0 2 0 2 2 0 0 1 2 2H5a2 2 0 0 1 2-2m10-2a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4 1 1 0 0 1 2 0h6a1 1 0 1 1 2 0M5 9v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9zm11 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-7 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2m4 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-3-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;

    pointer-events: none;
}


.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    color: rgb(57 57 57 / 33%) !important;
    opacity: 0.5;
    background: transparent !important;
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.notAllowed, .flatpickr-day.notAllowed.prevMonthDay, .flatpickr-day.notAllowed.nextMonthDay {
    color: #301d3f !important;
}
.flatpickr-day {
    color: #301d3f !important;
}