/* Pregnancy Calculator — pastel theme */
.pregnancy-calculator {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #5a3e5a;
}

/* Form */
.pc-form {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(200, 130, 180, 0.12);
    border: 1px solid #f7e0ef;
}

.pregnancy-calculator .pc-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #c2527a;
    margin: 0 0 6px;
    text-align: center;
}

.pc-subtitle {
    font-size: 0.9rem;
    color: #7a5070;
    text-align: center;
    margin: 0 0 28px;
}

/* Tabs */
.pc-tabs {
    display: flex;
    gap: 8px;
    background: #fdf0f7;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
}

.pc-tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #7a5070;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
    line-height: 1.3;
}

.pc-tab-btn.active {
    background: #fff;
    color: #c2527a;
    box-shadow: 0 2px 8px rgba(194, 82, 122, 0.15);
    font-weight: 600;
}

.pc-tab-btn:hover:not(.active) {
    color: #c2527a;
}

.pc-tab-btn:focus-visible {
    outline: 2px solid #c2527a;
    outline-offset: 2px;
}

/* Date inputs */
.pc-date-group {
    margin-bottom: 20px;
}

.pc-date-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a5070;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pc-date-group input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f0d0e8;
    border-radius: 12px;
    font-size: 1rem;
    color: #5a3e5a;
    background: #fdf8fc;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}

.pc-date-group input[type="date"]:focus {
    border-color: #e88ab0;
    background: #fff;
}

.pc-date-group input[type="date"]:focus-visible {
    outline: 2px solid #c2527a;
    outline-offset: 2px;
}

/* Error */
.pc-error {
    background: #fff0f4;
    border: 1px solid #f5a0b8;
    color: #c0305a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Calculate button */
.pc-btn-calculate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e8709a 0%, #c2527a 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(194, 82, 122, 0.35);
}

.pc-btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 82, 122, 0.45);
}

.pc-btn-calculate:active {
    transform: translateY(0);
}

.pc-btn-calculate:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(194, 82, 122, 0.6);
}

/* Results */
.pc-results {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-result-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(200, 130, 180, 0.1);
    border: 1px solid #f7e0ef;
    margin-bottom: 16px;
}

.pc-result-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a5070;
    font-weight: 600;
    margin-bottom: 8px;
}

.pc-result-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c2527a;
    line-height: 1.2;
}

/* Due date card */
.pc-due-date-card .pc-result-value {
    font-size: 1.8rem;
}

/* Week card */
.pc-week-value {
    font-size: 1.3rem;
    color: #8a5090;
}

/* Progress bar */
.pc-progress-track {
    background: #fde8f2;
    border-radius: 8px;
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
}

.pc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f0a8c8 0%, #c2527a 100%);
    border-radius: 8px;
    transition: width 0.6s ease;
    width: 0%;
}

.pc-progress-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #7a5070;
    font-weight: 600;
}

/* Countdown */
.pc-countdown-value {
    font-size: 1.5rem;
    color: #7a50a0;
}

/* Milestone card */
.pc-milestone-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pc-milestone-fruit img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: #fdf0f7;
    padding: 8px;
    box-sizing: border-box;
    border: 2px solid #f0d0e8;
}

.pc-milestone-text {
    flex: 1;
}

.pc-fruit-size {
    font-size: 1rem;
    font-weight: 700;
    color: #c2527a;
    margin-bottom: 8px;
}

.pc-milestone-desc {
    font-size: 0.9rem;
    color: #7a5870;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .pc-form {
        padding: 24px 20px;
    }

    .pc-title {
        font-size: 1.4rem;
    }

    .pc-tab-btn {
        font-size: 0.78rem;
        padding: 8px 6px;
    }

    .pc-due-date-card .pc-result-value {
        font-size: 1.4rem;
    }

    .pc-milestone-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-tab-btn,
    .pc-btn-calculate,
    .pc-progress-bar {
        transition: none;
    }
    .pc-btn-calculate:hover {
        transform: none;
    }
}
