/**
 * PCOS Ferticure Clinic - Pregnancy Due Date Calculator Styles
 * PF-180 Custom Design System Styling
 */

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

/* Hero Banner Container */
.hero-banner-section {
    width: 100%;
    background: #fbf5f8;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hero-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

@media (min-width: 769px) {
    .hero-banner-img {
        border-radius: 0 0 16px 16px;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Calculator Section */
.pdd-section {
    padding: 40px 16px;
}

@media (min-width: 768px) {
    .pdd-section {
        padding: 56px 24px;
    }
}

.pdd-container {
    max-width: 960px;
    margin: 0 auto;
}

.pdd-header {
    text-align: center;
    margin-bottom: 32px;
}

.pdd-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a335e;
    background: #f8e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.pdd-header h2 {
    font-size: 1.85rem;
    color: #2d262a;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .pdd-header h2 {
        font-size: 2.25rem;
    }
}

.pdd-header p {
    font-size: 1.05rem;
    color: #6b6368;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Method Selector Tabs */
.pdd-tabs {
    display: flex;
    gap: 8px;
    background: #f3e9f0;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 28px;
    overflow-x: auto;
}

.pdd-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5c4e56;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.pdd-tab-btn:hover {
    color: #8a335e;
}

.pdd-tab-btn.active {
    background: #fff;
    color: #8a335e;
    box-shadow: 0 2px 8px rgba(138, 51, 94, 0.12);
}

/* Calculator Card */
.pdd-card {
    background: #fff;
    border: 1px solid #ebdce4;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(138, 51, 94, 0.06);
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .pdd-card {
        padding: 36px;
    }
}

.pdd-method-pane {
    display: none;
}

.pdd-method-pane.active {
    display: block;
}

.pdd-field-group {
    margin-bottom: 22px;
}

.pdd-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d262a;
    margin-bottom: 8px;
}

.pdd-input-date {
    width: 100%;
    max-width: 380px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1.5px solid #d9c4d0;
    border-radius: 8px;
    background: #faf7f9;
    color: #2d262a;
    transition: border-color 0.2s ease;
}

.pdd-input-date:focus {
    outline: none;
    border-color: #8a335e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(138, 51, 94, 0.12);
}

.pdd-range-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.pdd-range-slider {
    flex: 1;
    max-width: 360px;
    accent-color: #8a335e;
    height: 8px;
    border-radius: 4px;
    background: #e5d4de;
    cursor: pointer;
}

.pdd-range-badge {
    display: inline-block;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #8a335e;
    background: #f8e8f0;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

.pdd-radio-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pdd-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #faf7f9;
    border: 1.5px solid #e0d0da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a3e45;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdd-radio-label:hover {
    border-color: #8a335e;
    background: #fdf5f9;
}

.pdd-radio-label input[type="radio"] {
    accent-color: #8a335e;
    cursor: pointer;
}

.pdd-radio-label.selected {
    background: #f8e8f0;
    border-color: #8a335e;
    color: #8a335e;
}

.pdd-help-text {
    font-size: 0.88rem;
    color: #7a6e75;
    line-height: 1.5;
    margin-top: 8px;
}

.pdd-action-bar {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pdd-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #8a335e;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(138, 51, 94, 0.25);
}

.pdd-btn-primary:hover {
    background: #6e2448;
}

.pdd-btn-primary:active {
    transform: translateY(1px);
}

/* Results Section */
.pdd-results-container {
    display: none;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #e0d0da;
}

.pdd-results-container.visible {
    display: block;
}

.pdd-results-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #eaf6ea;
    color: #256029;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pdd-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

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

@media (min-width: 860px) {
    .pdd-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pdd-res-card {
    background: #fbf8fa;
    border: 1px solid #ebdce4;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdd-res-card.highlight {
    background: #fbf3f7;
    border-color: #8a335e;
}

.pdd-res-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6e5e67;
    margin-bottom: 8px;
}

.pdd-res-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #8a335e;
    margin: 4px 0 8px;
    line-height: 1.2;
}

.pdd-res-card.highlight .pdd-res-value {
    color: #6e2448;
    font-size: 1.65rem;
}

.pdd-res-desc {
    font-size: 0.82rem;
    color: #7a6e75;
    line-height: 1.4;
    margin: 0;
}

/* Progress Bar */
.pdd-progress-box {
    background: #fbf8fa;
    border: 1px solid #ebdce4;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 28px;
}

.pdd-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pdd-progress-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2d262a;
}

.pdd-progress-pct {
    font-weight: 800;
    color: #8a335e;
    font-size: 1rem;
}

.pdd-progress-track {
    width: 100%;
    height: 16px;
    background: #ebdce4;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

.pdd-progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
    color: #7a6e75;
    font-weight: 600;
}

/* Result Buttons */
.pdd-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pdd-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #8a335e;
    border: 1.5px solid #8a335e;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdd-btn-secondary:hover {
    background: #f8e8f0;
}

.pdd-disclaimer-box {
    background: #fff9e6;
    border-left: 4px solid #f0a500;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #664d00;
    line-height: 1.5;
    margin-top: 20px;
}

/* Timeline Section */
.pdd-timeline-section {
    background: #faf6f8;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .pdd-timeline-section {
        padding: 64px 24px;
    }
}

.pdd-trimester-pills {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pdd-tri-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #ebdce4;
    border-radius: 20px;
    background: #fff;
    color: #5c4e56;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdd-tri-btn.active {
    background: #8a335e;
    color: #fff;
    border-color: #8a335e;
}

/* Weeks Selector */
.pdd-weeks-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.pdd-week-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ebdce4;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a3e45;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdd-week-btn span.w-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #8c7d85;
    line-height: 1;
}

.pdd-week-btn:hover {
    border-color: #8a335e;
    color: #8a335e;
}

.pdd-week-btn.active {
    background: #8a335e;
    color: #fff;
    border-color: #8a335e;
}

.pdd-week-btn.active span.w-label {
    color: #fad1e3;
}

.pdd-week-btn.current {
    box-shadow: 0 0 0 2px #df7a9e;
}

/* Timeline Detail Card */
.pdd-timeline-detail {
    background: #fff;
    border: 1px solid #ebdce4;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(138, 51, 94, 0.05);
}

@media (min-width: 768px) {
    .pdd-timeline-detail {
        padding: 32px;
    }
}

.pdd-td-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0e2ea;
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pdd-td-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #8a335e;
    margin: 0;
}

.pdd-td-badge {
    padding: 4px 14px;
    background: #f8e8f0;
    color: #8a335e;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
}

.pdd-td-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.pdd-td-col {
    background: #fdfafd;
    border: 1px solid #f0e4eb;
    border-radius: 12px;
    padding: 18px;
}

.pdd-td-col h4 {
    font-size: 0.95rem;
    color: #2d262a;
    margin: 0 0 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdd-td-col p {
    font-size: 0.9rem;
    color: #5c4e56;
    line-height: 1.5;
    margin: 0;
}

.pdd-td-size {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0d0da;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #8a335e;
    margin-top: 8px;
}

/* Milestones Section */
.pdd-milestones-section {
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .pdd-milestones-section {
        padding: 64px 24px;
    }
}

.pdd-ms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

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

.pdd-ms-card {
    background: #fff;
    border: 1px solid #ebdce4;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(138, 51, 94, 0.04);
}

.pdd-ms-timing {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8a335e;
    background: #f8e8f0;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.pdd-ms-card h3 {
    font-size: 1.15rem;
    color: #2d262a;
    margin: 0 0 10px;
    font-weight: 700;
}

.pdd-ms-card p {
    font-size: 0.9rem;
    color: #6b6368;
    line-height: 1.5;
    margin: 0;
}

/* PCOS Guidance Section */
.pdd-pcos-guidance {
    background: #fcf4f8;
    border: 1.5px solid #ebd0df;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 36px 0;
}

.pdd-pcos-guidance h3 {
    font-size: 1.35rem;
    color: #8a335e;
    margin: 0 0 16px;
    font-weight: 700;
}

.pdd-pcos-guidance p {
    font-size: 0.95rem;
    color: #4a3e45;
    line-height: 1.6;
    margin-bottom: 14px;
}

.pdd-pcos-guidance ul {
    margin: 0 0 16px 20px;
    padding: 0;
    color: #4a3e45;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pdd-pcos-guidance li {
    margin-bottom: 8px;
}

/* FAQs Section */
.pdd-faq-section {
    padding: 40px 16px;
    background: #fff;
}

.pdd-faq-item {
    border-bottom: 1px solid #eddce5;
    padding: 18px 0;
}

.pdd-faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d262a;
    margin: 0 0 8px;
}

.pdd-faq-answer {
    font-size: 0.92rem;
    color: #5c4e56;
    line-height: 1.55;
    margin: 0;
}

/* Consultation CTA Section */
.pdd-cta-section {
    background: linear-gradient(135deg, #6e2448 0%, #8a335e 100%);
    color: #fff;
    padding: 56px 20px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.pdd-cta-section .pdd-eyebrow {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pdd-cta-section h2 {
    font-size: 1.85rem;
    color: #fff;
    margin: 0 0 14px;
    font-weight: 700;
}

.pdd-cta-section p {
    font-size: 1.05rem;
    color: #f7e6ef;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.pdd-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdd-cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #8a335e;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdd-cta-btn-white:hover {
    background: #fbf5f8;
    transform: translateY(-1px);
}

.pdd-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pdd-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
    .hero-banner-section,
    .pdd-tabs,
    .pdd-action-bar,
    .pdd-result-actions,
    .pdd-timeline-section,
    .pdd-faq-section,
    .pdd-cta-section,
    header,
    footer {
        display: none !important;
    }

    .pdd-results-container {
        display: block !important;
        border: none;
        padding: 0;
    }

    .pdd-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
