@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&display=swap');

.cdcep-heading,
#secondDialogTitle, #termsDialogTitle,
#learnMoreDialogTitle, #idMeDialogTitle, #loginGovDialogTitle {
    font-family: 'Bitter', Georgia, serif;
}

.cdcep-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: cdcepFadeIn 0.2s ease-out;
}

.cdcep-overlay.cdcep-open {
    display: flex;
}

@keyframes cdcepFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cdcep-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 1120px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    margin: 0 16px;
    overflow: hidden;
    font-family: 'Source Sans Pro', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    animation: cdcepScaleIn 0.2s ease-out;
    font-family: 'Source Sans Pro', system-ui, sans-serif;
}

@keyframes cdcepScaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.cdcep-header {
    background-color: #112e51;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.cdcep-header img {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.cdcep-header-title {
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.cdcep-header-subtitle {
    font-size: 18px;
    margin-top: 2px;
    opacity: 0.9;
    white-space: nowrap;
}

.cdcep-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.cdcep-close-btn:hover {
    color: #fff;
}

.cdcep-body {
    padding: 32px;
    color: #374151;
    line-height: 1.625;
    font-size: 17px;
    overflow-y: auto;
}

.cdcep-body h2 {
    font-weight: 700;
    font-size: 24px;
    color: #1b1b1b;
    margin: 0 0 24px 0;
    text-align: left;
}

.cdcep-body p,
.cdcep-body ul {
    margin: 0 0 16px 0;
}

.cdcep-body ul {
    padding-left: 24px;
}

.cdcep-body li {
    margin-bottom: 10px;
}

.cdcep-disclaimer {
    margin-top: 32px;
    font-size: 14px;
    color: #4a4a4a;
}

.cdcep-body h3 {
    font-family: 'Bitter', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    margin: 24px 0 12px 0;
}

.cdcep-citation-link {
    color: #467886;
    text-decoration: underline;
}

.cdcep-citation-link:hover {
    color: #345a65;
}

.cdcep-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 24px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.cdcep-btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.cdcep-btn-back {
    background: #e2e2e2;
    color: #1b1b1b;
    border-color: #c9c9c9;
}

.cdcep-btn-back:hover {
    background: #d5d5d5;
}

.cdcep-btn-accept {
    background: #0071bc;
    color: #fff;
}

.cdcep-btn-accept:hover {
    background: #205493;
}

.cdcep-toast {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #112e51;
    color: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    z-index: 1000;
}

.cdcep-toast.cdcep-open {
    display: flex;
}

.cdcep-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cdcepSpin 0.7s linear infinite;
}

@keyframes cdcepSpin {
    to { transform: rotate(360deg); }
}
