.p-cccd-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* FORM */

.p-cccd-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.p-cccd-form-row {
    margin-bottom: 12px;
}

.p-cccd-form-row label {
    display: block;
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 4px;
}

.p-cccd-form-row input[type="text"] {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #cbd2e1;
    font-size: 14px;
    box-sizing: border-box;
}

.p-cccd-form-row input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.p-cccd-required {
    color: #dc2626;
    font-weight: 700;
}

.p-cccd-form-actions {
    margin-top: 10px;
}

.p-cccd-form .button-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.p-cccd-form .button-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ERROR */

.p-cccd-error {
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #7f1d1d;
}

/* RESULT */

.p-cccd-result {
    margin-top: 20px;
}

.p-cccd-result > h3 {
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-cccd-result > h3::before {
    content: "📊";
    font-size: 20px;
}

/* CARD */

.p-cccd-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.p-cccd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #e5e7eb;
}

.p-cccd-card-icon {
    font-size: 26px;
}

.p-cccd-card-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.p-cccd-card-body {
    padding: 16px 18px 18px;
    background: #f9fafb;
}

/* META */

.p-cccd-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    margin-bottom: 4px;
}

.p-cccd-meta-label {
    font-weight: 700;
    color: #111827;
}

.p-cccd-meta-value {
    font-weight: 500;
    color: #1f2933;
}

/* SECTIONS */

.p-cccd-section-title {
    margin-top: 16px;
    margin-bottom: 8px;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-cccd-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #22c55e);
}

/* LINES */

.p-cccd-line {
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.p-cccd-line-empty {
    margin-bottom: 6px;
}

.p-cccd-bullet {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.p-cccd-bullet-icon {
    color: #4b5563;
    font-size: 10px;
    margin-top: 4px;
}

.p-cccd-bullet-text {
    flex: 1;
    line-height: 1.45;
}

.p-cccd-summary-line {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
    margin-top: 6px;
    margin-bottom: 4px;
}

.p-cccd-text-line {
    font-size: 14px;
    color: #111827;
    line-height: 1.45;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .p-cccd-card-body {
        padding: 14px 12px 14px;
    }

    .p-cccd-card-header {
        padding: 10px 12px;
    }
}
