body.pregnancy-page {
    min-height: 100vh;
    height: auto;
    background: #fff8fb;
    color: #22313f;
    user-select: auto;
}

body.pregnancy-page header {
    background: #e8f7f1;
    color: #1f5b49;
}

.pregnancy-shell {
    width: min(100%, 840px);
    margin: 0 auto;
    padding: 16px 16px 34px;
}

.back-button {
    min-height: 40px;
    border: 1px solid #d8e8e1;
    border-radius: 999px;
    background: #ffffff;
    color: #1f5b49;
    padding: 8px 15px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(32, 88, 71, 0.08);
}

.back-button:active,
.primary-action:active,
.secondary-action:active {
    transform: translateY(1px);
}

.intro-card,
.form-card,
.result-card {
    background: #ffffff;
    border: 1px solid #f0dfe8;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(170, 73, 121, 0.08);
}

.intro-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 18px;
}

.intro-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe5f0;
    font-size: 1.55rem;
    flex: 0 0 auto;
}

.intro-card h1,
.form-card h2 {
    margin: 0;
    letter-spacing: 0;
}

.intro-card h1 {
    color: #164937;
    font-size: 1.45rem;
}

.intro-card p {
    margin: 8px 0 0;
    color: #5d6d7e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.form-card,
.result-card {
    margin-top: 16px;
    padding: 18px;
}

.form-card h2 {
    color: #1f5b49;
    font-size: 1.08rem;
    margin-bottom: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: #4b635b;
    font-weight: 800;
    font-size: 0.92rem;
}

.field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8e8e1;
    border-radius: 10px;
    padding: 10px 12px;
    color: #22313f;
    background: #ffffff;
    font: inherit;
    font-size: 1rem;
}

.field input:focus {
    outline: 3px solid rgba(236, 154, 189, 0.28);
    border-color: #ec9abd;
}

.form-message {
    min-height: 22px;
    margin: 12px 0 10px;
    color: #c0392b;
    font-weight: 700;
    line-height: 1.4;
}

.primary-action,
.secondary-action {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 1.03rem;
    font-weight: 900;
    cursor: pointer;
}

.primary-action {
    border: 0;
    background: #1f8f6b;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(31, 143, 107, 0.22);
}

.secondary-action {
    margin-top: 16px;
    border: 1px solid #cfe3da;
    background: #ffffff;
    color: #1f5b49;
}

.result-summary {
    display: grid;
    gap: 10px;
}

.result-summary > div {
    border-radius: 12px;
    background: #fff1f6;
    padding: 12px;
}

.summary-label {
    display: block;
    color: #7a5265;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.result-summary strong {
    color: #164937;
    font-size: 1.2rem;
}

.pregnancy-progress {
    margin-top: 16px;
    border-radius: 12px;
    background: #fff8fb;
    border: 1px solid #f0dfe8;
    padding: 14px;
}

.progress-track {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #f4e6ed;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #1f8f6b;
    transition: width 0.7s ease;
}

.progress-labels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #6b7b76;
    font-size: 0.82rem;
    font-weight: 800;
}

.progress-labels strong {
    color: #164937;
    font-size: 0.95rem;
    text-align: center;
}

.progress-labels span:last-child {
    text-align: right;
}

.trimester-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-top: 12px;
    border-radius: 999px;
    background: #e8f7f1;
    color: #1f5b49;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 900;
}

.trimester-guide {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    color: #6b7b76;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.result-note {
    margin: 14px 0 0;
    color: #6b7b76;
    font-size: 0.86rem;
    line-height: 1.55;
}

@media (min-width: 720px) {
    .pregnancy-shell {
        padding-top: 24px;
    }

    .intro-card,
    .form-card,
    .result-card {
        padding: 22px;
    }

    .result-summary {
        grid-template-columns: 1fr 1fr;
    }
}
