:root {
    --cp-primary: #10a38a;
    --cp-primary-dark: #0d8a74;
    --cp-gradient: linear-gradient(135deg, #0ea5e9 0%, #10a38a 55%, #059669 100%);
    --cp-text: #0f172a;
    --cp-muted: #64748b;
    --cp-surface: #ffffff;
    --cp-border: rgba(15, 23, 42, 0.08);
}

.clinic-preview-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--cp-text);
    background: #f8fafc;
    margin: 0;
}

.cp-preview-banner {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(90deg, #0f766e, #0284c7);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    padding: 0.65rem 1rem;
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.25);
}

.cp-preview-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cp-hero {
    background: var(--cp-gradient);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.cp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 45%);
    pointer-events: none;
}

.cp-hero .container {
    position: relative;
    z-index: 1;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cp-hero h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cp-hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 640px;
    line-height: 1.6;
}

.cp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.cp-btn-light {
    background: #fff;
    color: var(--cp-primary-dark);
    border: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.35rem;
}

.cp-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.75);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.72rem 1.25rem;
}

.cp-section {
    padding: 4rem 0;
}

.cp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cp-section-sub {
    color: var(--cp-muted);
    margin-bottom: 2rem;
}

.cp-card {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.cp-doctor-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cp-doctor-avatar {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
}

.cp-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cp-booking-panel {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--cp-border);
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.cp-slot {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #0f172a;
}

/* Hero sections set color: #fff — slots sit on light panels and need dark text */
.cp-hero .cp-slot,
.cp-booking-panel .cp-slot,
[class*="-hero-panel"] .cp-slot {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.cp-tip-card {
    border-left: 4px solid var(--cp-accent, var(--cp-primary));
}

.cp-footer-cta {
    background: var(--cp-gradient);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.cp-footer-cta .btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.75rem 1.35rem;
}

.cp-site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cp-border);
    padding: 0.85rem 0;
}

.cp-site-header .brand {
    font-weight: 800;
    color: var(--cp-text);
    text-decoration: none;
}

.cp-site-header .brand span {
    color: var(--cp-accent, var(--cp-primary));
}

/* Lead modal (landing page) */
.cp-lead-modal-dialog {
    max-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
}

.cp-lead-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    max-height: calc(100dvh - 1rem);
    display: flex;
    flex-direction: column;
}

.cp-lead-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.cp-lead-modal .modal-header {
    background: var(--cp-gradient);
    color: #fff;
    border: none;
    padding: 1.35rem 1.5rem;
    flex-shrink: 0;
}

.cp-lead-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.cp-lead-modal .modal-body {
    padding: 1.25rem 1.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.cp-lead-modal .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cp-lead-modal .form-control,
.cp-lead-modal .form-select {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.cp-lead-modal .modal-footer,
.cp-lead-modal-footer {
    border-top: 1px solid var(--cp-border);
    padding: 0.75rem 1.5rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #fff;
}

.cp-lead-submit-btn {
    background: #10a38a;
    border-color: #10a38a;
}

.cp-lead-submit-btn:hover,
.cp-lead-submit-btn:focus {
    background: #0d8a74;
    border-color: #0d8a74;
}

.cp-lead-modal.cp-show .modal-dialog {
    animation: cpModalIn 0.35s ease;
}

@keyframes cpModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575.98px) {
    .cp-lead-modal-dialog {
        max-height: calc(100dvh - 0.5rem);
        margin: 0.25rem auto;
    }

    .cp-lead-modal .modal-content {
        max-height: calc(100dvh - 0.5rem);
        border-radius: 16px;
    }

    .cp-lead-modal .modal-header {
        padding: 0.85rem 1rem;
    }

    .cp-lead-modal-subtitle {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .cp-lead-modal .modal-body {
        padding: 0.65rem 1rem 0.75rem;
    }

    .cp-lead-modal .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.15rem;
    }

    .cp-lead-modal .form-control,
    .cp-lead-modal .form-select {
        padding: 0.45rem 0.65rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    .cp-lead-modal .cp-lead-form-grid {
        --bs-gutter-y: 0.45rem;
    }

    .cp-lead-mobile-hint {
        font-size: 0.7rem;
        margin-top: 0.15rem;
        line-height: 1.3;
    }

    .cp-lead-modal-footer {
        padding: 0.5rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
        gap: 0.35rem;
    }

    .cp-lead-cancel-btn {
        font-size: 0.875rem;
        padding: 0.35rem 0.5rem;
    }

    .cp-lead-submit-btn {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 767.98px) {
    .cp-hero { padding: 3rem 0 3.5rem; }
    .cp-section { padding: 2.75rem 0; }
    .cp-doctor-card { flex-direction: column; }
}

/* Hero card inline preview widget (Landing page) */
.cp-hero-preview-widget .form-control,
.cp-hero-preview-widget .form-select {
    border-radius: 10px;
    font-size: 0.9375rem;
}

.cp-hero-preview-widget .input-group .form-control {
    border-radius: 0;
}

.cp-hero-preview-widget .input-group-text {
    border-radius: 10px 0 0 10px;
    font-size: 0.8125rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.cp-hero-preview-widget .input-group .input-group-text:last-child {
    border-radius: 0 10px 10px 0;
}

.cp-hero-preview-widget .input-group .form-control:not(:first-child):not(:last-child) {
    border-left: 0;
    border-right: 0;
}

.cp-hero-preview-row .form-select {
    min-width: 0;
}

.cp-hero-preview-row .cp-hero-preview-btn {
    width: 7.25rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-hero-preview-row .cp-hero-preview-btn-icon {
    margin-right: 0.35rem;
}

@media (max-width: 575.98px) {
    .cp-hero-preview-row .cp-hero-preview-btn {
        width: 2.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .cp-hero-preview-row .cp-hero-preview-btn-label {
        display: none;
    }

    .cp-hero-preview-row .cp-hero-preview-btn-icon {
        margin-right: 0;
    }
}

.cp-hero-preview-widget .btn-primary {
    background: #10a38a;
    border-color: #10a38a;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1rem;
}

.cp-hero-preview-widget .btn-primary:hover {
    background: #0d8a74;
    border-color: #0d8a74;
}

.cp-stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--cp-border);
    padding: 1.75rem 0;
    margin-top: -1rem;
    position: relative;
    z-index: 2;
}

.cp-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cp-accent, var(--cp-primary));
    line-height: 1.2;
}

.cp-stat-label {
    font-size: 0.8125rem;
    color: var(--cp-muted);
    margin-top: 0.25rem;
}

.cp-service-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

.cp-procedure-card {
    border-top: 3px solid var(--cp-accent, var(--cp-primary));
}

.cp-faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(16, 163, 138, 0.08);
    color: var(--cp-text);
    box-shadow: none;
}

.cp-faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--cp-border);
}

.cp-specialty-page .cp-site-header .brand span {
    color: var(--cp-accent, var(--cp-primary));
    font-weight: 600;
}

.cp-hero-headline {
    font-size: clamp(1.85rem, 4.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: #fff;
}

.cp-hero-doctor-line {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
}

.cp-site-header .brand-clinic {
    font-weight: 800;
    color: var(--cp-text);
}

.cp-site-header .brand-meta {
    font-weight: 500;
    color: var(--cp-muted);
    font-size: 0.8125rem;
}

.cp-marketing-strip {
    background: #fff;
    border-bottom: 1px solid var(--cp-border);
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.cp-marketing-item {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-text);
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    line-height: 1.35;
}

.cp-marketing-item .bi-check-circle-fill {
    color: #10a38a;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.cp-problem-chip {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.cp-testimonial {
    border-left: 4px solid var(--cp-accent, var(--cp-primary));
}

.cp-stars {
    color: #f59e0b;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.cp-blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.cp-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.cp-blog-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cp-muted);
}

.cp-trust-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1040;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.35);
    font-size: 0.8125rem;
    line-height: 1.3;
    max-width: 200px;
    pointer-events: none;
}

.cp-trust-float-title {
    font-weight: 700;
}

.cp-trust-float-sub {
    opacity: 0.9;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

@media (max-width: 767.98px) {
    .cp-trust-float {
        left: 12px;
        bottom: 12px;
        max-width: 160px;
        font-size: 0.75rem;
    }
}
