/**
 * PCOS Ferticure Clinic - Hair Loss & Hirsutism Tracker
 * PF-181 Tool 8 Styles
 */

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

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

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

.ht-container {
    max-width: 980px;
    margin: 0 auto;
}

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

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

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

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

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

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

.ht-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;
}

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

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

.ht-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) {
    .ht-card {
        padding: 32px 30px;
    }
}

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

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

.ht-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f2e2ec;
}

.ht-section-header h3 {
    font-size: 1.15rem;
    color: #6e2554;
    margin: 0;
    font-weight: 600;
}

.ht-section-desc {
    font-size: 0.9rem;
    color: #665560;
    margin: 0 0 14px;
}

.ht-form-group {
    margin-bottom: 20px;
}

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

.ht-input, .ht-select, .ht-textarea {
    width: 100%;
    max-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;
}

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

.ht-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

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

.ht-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #faf4f8;
    border: 1px solid #ebd8e5;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ht-check-item:hover {
    background: #f4e6f0;
    border-color: #d1b1c6;
}

.ht-check-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #8f2f6a;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.ht-check-text {
    font-size: 0.92rem;
    color: #3a2933;
    line-height: 1.35;
}

.ht-check-text small {
    display: block;
    color: #7a6873;
    font-size: 0.8rem;
    margin-top: 2px;
}

.ht-severity-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

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

.ht-severity-option {
    border: 1.5px solid #e0d0da;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ht-severity-option:hover {
    border-color: #8f2f6a;
    background: #fdf8fb;
}

.ht-severity-option.active {
    border-color: #8f2f6a;
    background: #fcf1f7;
    box-shadow: 0 0 0 2px rgba(143, 47, 106, 0.2);
}

.ht-sev-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: #4a1738;
}

.ht-sev-desc {
    font-size: 0.82rem;
    color: #695762;
    line-height: 1.35;
}

.ht-btn-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ht-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ht-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ht-badge-mild {
    background: #e8f5e9;
    color: #256029;
}

.ht-badge-moderate {
    background: #fff4e5;
    color: #b76e00;
}

.ht-badge-marked {
    background: #ffebee;
    color: #c62828;
}

.ht-item-tag {
    display: inline-block;
    background: #f2e2ed;
    color: #551c3e;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.76rem;
    margin: 2px 3px 2px 0;
}

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

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

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

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

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

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

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

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

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

/* CTA Card */
.ht-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;
}

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

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

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

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

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

.ht-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, .ht-breadcrumb, .ht-btn-bar, .ht-form-section, .ht-cta-card, .ht-del-btn, .ht-faq {
        display: none !important;
    }
    .ht-page, .ht-main, .ht-hero, .ht-card {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    .ht-hero h1 {
        font-size: 1.8rem !important;
        color: #000 !important;
    }
    .ht-table th, .ht-table td {
        border-color: #ccc !important;
        color: #000 !important;
    }
    .ht-print-header {
        display: block !important;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }
}

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