/**
 * PCOS Ferticure Clinic - Blood Pressure & Metabolic Health Log
 * PF-181 Tool 9 Styles
 */

.bp-page {
    font-family: inherit;
    color: #2d262a;
    background-color: #fff;
}

.bp-hero {
    background: linear-gradient(135deg, #fdf6f9 0%, #f5e8f0 100%);
    padding: 48px 16px 36px;
    border-bottom: 1px solid #ebdbe5;
}

@media (min-width: 768px) {
    .bp-hero {
        padding: 60px 24px 44px;
    }
}

.bp-container {
    max-width: 1000px;
    margin: 0 auto;
}

.bp-breadcrumb {
    font-size: 0.9rem;
    color: #7a6e75;
    margin-bottom: 16px;
}

.bp-breadcrumb a {
    color: #8f2f6a;
    text-decoration: none;
    font-weight: 500;
}

.bp-breadcrumb a:hover {
    text-decoration: underline;
}

.bp-hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    color: #4a1738;
    margin: 0 0 14px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .bp-hero h1 {
        font-size: 2.6rem;
    }
}

.bp-hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #55444e;
    max-width: 780px;
    margin: 0 0 18px;
}

.bp-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #d8b8cc;
    border-radius: 999px;
    font-size: 0.88rem;
    color: #6e2554;
    font-weight: 500;
}

.bp-main {
    padding: 36px 16px 64px;
}

@media (min-width: 768px) {
    .bp-main {
        padding: 48px 24px 80px;
    }
}

.bp-card {
    background: #ffffff;
    border: 1px solid #e8d9e2;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 4px 18px rgba(110, 37, 84, 0.05);
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .bp-card {
        padding: 32px 30px;
    }
}

.bp-card h2 {
    font-size: 1.45rem;
    color: #4a1738;
    margin: 0 0 8px;
    font-weight: 700;
}

.bp-card-subtitle {
    font-size: 0.95rem;
    color: #6d5b66;
    margin: 0 0 22px;
}

/* Alert boxes */
.bp-alert-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.bp-alert-warning {
    background-color: #fff9e6;
    border: 1px solid #f3d994;
    color: #6a4c00;
}

.bp-alert-danger {
    background-color: #fdf2f2;
    border: 1.5px solid #f5b7b7;
    color: #8c1d18;
}

.bp-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.bp-alert-warning .bp-alert-header {
    color: #805b00;
}

.bp-alert-danger .bp-alert-header {
    color: #b3261e;
}

/* Form Styles */
.bp-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .bp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bp-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .bp-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bp-form-group {
    margin-bottom: 18px;
}

.bp-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #3b2834;
    margin-bottom: 6px;
}

.bp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bp-input, .bp-select, .bp-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.98rem;
    color: #2d262a;
    background: #fff;
    border: 1.5px solid #d4c2cd;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.bp-input:focus, .bp-select:focus, .bp-textarea:focus {
    outline: none;
    border-color: #8f2f6a;
    box-shadow: 0 0 0 3px rgba(143, 47, 106, 0.15);
}

.bp-input-suffix {
    position: absolute;
    right: 12px;
    color: #7a6873;
    font-size: 0.88rem;
    pointer-events: none;
    font-weight: 500;
}

.bp-input.with-suffix {
    padding-right: 56px;
}

.bp-field-help {
    font-size: 0.82rem;
    color: #73616d;
    margin-top: 4px;
}

/* Category Badges */
.bp-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.bp-badge-normal {
    background: #e8f5e9;
    color: #256029;
}

.bp-badge-elevated {
    background: #fffde7;
    color: #796a00;
}

.bp-badge-stage1 {
    background: #fff4e5;
    color: #b76e00;
}

.bp-badge-stage2 {
    background: #ffebee;
    color: #c62828;
}

.bp-badge-crisis {
    background: #b71c1c;
    color: #ffffff;
    animation: bp-pulse 2s infinite;
}

@keyframes bp-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Buttons */
.bp-btn-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.bp-btn-primary {
    background-color: #8f2f6a;
    color: #ffffff;
}

.bp-btn-primary:hover {
    background-color: #722453;
}

.bp-btn-outline {
    background: transparent;
    border: 1.5px solid #8f2f6a;
    color: #8f2f6a;
}

.bp-btn-outline:hover {
    background: #fcf1f7;
}

.bp-btn-danger-outline {
    background: transparent;
    border: 1.5px solid #c93b3b;
    color: #c93b3b;
}

.bp-btn-danger-outline:hover {
    background: #fef2f2;
}

/* Summary Grid */
.bp-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

@media (min-width: 600px) {
    .bp-summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bp-summary-stat {
    background: #fdf6f9;
    border: 1px solid #eddde7;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
}

.bp-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8f2f6a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.bp-stat-lbl {
    font-size: 0.82rem;
    color: #6a5763;
    font-weight: 500;
}

/* Table styles */
.bp-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid #ebdbe5;
    border-radius: 10px;
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.bp-table th {
    background: #f7ebf2;
    color: #4a1738;
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 2px solid #ebdbe5;
    white-space: nowrap;
}

.bp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f2e6ed;
    color: #3b2b35;
    vertical-align: middle;
}

.bp-table tbody tr:hover {
    background: #fefafe;
}

.bp-del-btn {
    background: none;
    border: none;
    color: #c93b3b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.bp-del-btn:hover {
    background: #fde8e8;
}

.bp-empty-state {
    text-align: center;
    padding: 36px 16px;
    color: #7a6974;
}

/* Guidelines and Reference Table */
.bp-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 10px;
}

.bp-ref-table th, .bp-ref-table td {
    padding: 8px 12px;
    border: 1px solid #e8dae4;
    text-align: left;
}

.bp-ref-table th {
    background: #f7ebf2;
    color: #4a1738;
}

/* CTA Card */
.bp-cta-card {
    background: linear-gradient(135deg, #fbf0f6 0%, #f3dceb 100%);
    border: 1.5px solid #dfbcd2;
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    margin-top: 36px;
}

.bp-cta-card h3 {
    font-size: 1.5rem;
    color: #4a1738;
    margin: 0 0 10px;
}

.bp-cta-card p {
    color: #55434f;
    font-size: 1.02rem;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.55;
}

/* FAQ section */
.bp-faq {
    margin-top: 40px;
}

.bp-faq-item {
    border-bottom: 1px solid #ebdbe5;
    padding: 16px 0;
}

.bp-faq-item h4 {
    font-size: 1.08rem;
    color: #4a1738;
    margin: 0 0 8px;
    font-weight: 600;
}

.bp-faq-item p {
    color: #55444e;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Print Styles */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .header, .footer, .bp-breadcrumb, .bp-btn-bar, .bp-form-section, .bp-cta-card, .bp-del-btn, .bp-faq {
        display: none !important;
    }
    .bp-page, .bp-main, .bp-hero, .bp-card {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    .bp-hero h1 {
        font-size: 1.8rem !important;
        color: #000 !important;
    }
    .bp-table th, .bp-table td {
        border-color: #ccc !important;
        color: #000 !important;
    }
    .bp-print-header {
        display: block !important;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }
}

.bp-print-header {
    display: none;
}
