/* RSP Postnatal Screening — Front-end */
.rsp-epds-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #2D3748;
    line-height: 1.5;
}
.rsp-epds-wrap * { box-sizing: border-box; }

.rsp-epds-header { text-align: center; margin-bottom: 1.5rem; }
.rsp-epds-logo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: contain;
    margin-bottom: 8px; background: #fff; border: 1px solid #E2E5EA; padding: 8px;
}
.rsp-epds-header h2 { font-size: 20px; font-weight: 600; color: #1B2A4A; margin: 0 0 4px; }
.rsp-epds-header p { font-size: 13px; color: #718096; margin: 0; }

.rsp-epds-progress { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 1.5rem; }
.rsp-epds-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E5EA; transition: all 0.3s ease; }
.rsp-epds-dot.active { background: #1B2A4A; width: 28px; border-radius: 5px; }
.rsp-epds-dot.done { background: #E8913A; }
.rsp-epds-step-label { font-size: 12px; color: #718096; text-align: center; margin-bottom: 1rem; }

.rsp-epds-card { background: #fff; border: 1px solid #E2E5EA; border-radius: 12px; padding: 1.5rem; }
.rsp-epds-card h3 { font-size: 17px; font-weight: 600; color: #1B2A4A; margin: 0 0 4px; }
.rsp-epds-subtitle { font-size: 13px; color: #718096; margin: 0 0 1.25rem; }

.rsp-epds-field { margin-bottom: 1.25rem; }
.rsp-epds-field > label { display: block; font-size: 14px; font-weight: 500; color: #2D3748; margin-bottom: 6px; }
.rsp-req { color: #E8913A; }

.rsp-epds-input {
    width: 100%; padding: 10px 12px; border: 1px solid #E2E5EA; border-radius: 8px;
    font-size: 14px; color: #2D3748; background: #fff; outline: none; transition: border-color 0.2s;
}
.rsp-epds-input:focus { border-color: #1B2A4A; }

.rsp-epds-radio-group { display: flex; flex-direction: column; gap: 8px; }
.rsp-epds-radio-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
    border: 1px solid #E2E5EA; border-radius: 8px; cursor: pointer; transition: all 0.2s;
    font-size: 14px; line-height: 1.4;
}
.rsp-epds-radio-item:hover { border-color: #1B2A4A; background: #F0F2F8; }
.rsp-epds-radio-item.selected { border-color: #1B2A4A; background: #EDF0F7; }
.rsp-epds-radio-item input[type="radio"] { margin-top: 2px; accent-color: #1B2A4A; flex-shrink: 0; }

.rsp-epds-qnum {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: #F7F8FA; color: #718096;
    font-size: 11px; font-weight: 600; margin-right: 6px; flex-shrink: 0;
}

.rsp-epds-notice {
    font-size: 12px; color: #718096; background: #F7F8FA; padding: 10px 12px;
    border-radius: 8px; margin-bottom: 1rem; line-height: 1.5;
}

.rsp-epds-review-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #E2E5EA; font-size: 13px; gap: 12px;
}
.rsp-epds-review-item:last-child { border-bottom: none; }
.rsp-epds-review-q { color: #718096; flex-shrink: 0; min-width: 24px; font-weight: 500; }
.rsp-epds-review-a { color: #2D3748; text-align: right; }

.rsp-epds-check-row {
    display: flex; align-items: flex-start; gap: 8px; font-size: 13px;
    color: #718096; margin-top: 1rem; line-height: 1.5;
}
.rsp-epds-check-row input { margin-top: 2px; accent-color: #1B2A4A; }

.rsp-epds-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; }
.rsp-epds-btn {
    padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
    cursor: pointer; border: none; transition: all 0.2s; font-family: inherit;
}
.rsp-epds-btn-back { background: transparent; color: #718096; border: 1px solid #E2E5EA; }
.rsp-epds-btn-back:hover { background: #F7F8FA; }
.rsp-epds-btn-next { background: #1B2A4A; color: #fff; }
.rsp-epds-btn-next:hover { background: #243656; }
.rsp-epds-btn-submit { background: #E8913A; color: #fff; }
.rsp-epds-btn-submit:hover { background: #D07E2E; }
.rsp-epds-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.rsp-epds-page { display: none; }
.rsp-epds-page.active { display: block; }

.rsp-epds-success { text-align: center; padding: 2rem 1rem; }
.rsp-epds-success-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #F0FFF4; color: #38A169;
    font-size: 28px; line-height: 56px; margin: 0 auto 12px;
}
.rsp-epds-success h3 { margin-bottom: 8px; }
.rsp-epds-success p { font-size: 14px; color: #718096; margin: 0 0 8px; }
.rsp-epds-small { font-size: 12px !important; }

.rsp-epds-disclaimer { font-size: 11px; color: #718096; text-align: center; margin-top: 1rem; line-height: 1.5; }

.rsp-epds-error {
    background: #FFF5F5; color: #9B2C2C; border: 1px solid #FED7D7; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; margin-bottom: 1rem; display: none;
}

@media (max-width: 480px) {
    .rsp-epds-wrap { padding: 1rem 0.5rem; }
    .rsp-epds-card { padding: 1rem; }
    .rsp-epds-btn { padding: 10px 16px; font-size: 13px; }
}
