.pf-container {
    max-width: 640px;
    margin: 0 auto;
}

.pf-container h3 {
    margin-bottom: 20px;
}

.pf-checkup-info {
    margin-bottom: 24px;
}

.pf-section {
    margin-top: 20px;
}

.pf-section p {
    margin-bottom: 16px;
}

.pf-field {
    margin-bottom: 24px;
}

.pf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.pf-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pf-radio-card {
    flex: 1;
    min-width: 180px;
    cursor: pointer;
}

.pf-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-radio-card-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pf-radio-card input[type="radio"]:checked + .pf-radio-card-content {
    border-color: #10c956;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px #10c956;
}

.pf-radio-card:hover .pf-radio-card-content {
    border-color: #10c956;
}

.pf-radio-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.pf-radio-text {
    font-size: 15px;
    font-weight: 500;
}

/* Cart summary on patient flow */
.pf-cart-summary {
    margin-top: 24px;
    margin-bottom: 4px;
}

.pf-cart-summary h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.pf-save-hint {
    font-size: 13px;
    color: #666;
    margin: 20px 0 0;
}

.pf-submit {
    margin-top: 12px;
    display: flex;
    gap: 2%;
}

.pf-submit .pf-btn {
    flex: 1 1 0;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, opacity 0.2s;
}

a.pf-btn {
    text-decoration: none;
}

.pf-btn-primary {
    background-color: #10c956;
    color: #fff;
}

.pf-btn-primary:hover,
a.pf-btn-primary:hover,
a.pf-btn-primary:focus {
    background-color: #0eb34d;
    color: #fff;
    text-decoration: none;
}

a.pf-btn-primary,
a.pf-btn-primary:visited {
    color: #fff;
}

.pf-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pf-btn-primary svg {
    flex-shrink: 0;
}

/* Consultation type section animation */
.pf-consultation-type {
    transition: opacity 0.2s;
}

/* Medication list */
.pf-medication-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-medication-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8faf9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
}

.pf-medication-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
}

.pf-medication-info {
    min-width: 0;
}

.pf-medication-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pf-medication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-medication-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Notice box */
.pf-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.pf-notice-info {
    background-color: #e8f5e9;
    border: 1px solid #10c956;
    color: #1b5e20;
}

/* Summary Card */
.pf-summary-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pf-summary-card h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Grid Layout */
.pf-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 1024px) {
    .pf-summary-grid {
        grid-template-columns: 1fr;
    }

    .pf-submit {
        flex-direction: column;
        gap: 10px;
    }

    .pf-submit .pf-btn {
        width: 100%;
    }

    .pf-checkbox-group {
        flex-direction: column;
    }

    .pf-checkbox-card-content {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

.pf-summary-full {
    grid-column: 1 / -1;
}

/* Individual Item */
.pf-summary-item {
    background: #f8faf9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
}

.pf-summary-item + .pf-summary-grid {
    margin-top: 16px;
}

.pf-summary-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.pf-summary-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

/* Symptom Badges */
.pf-symptom-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.pf-symptom-badge {
    display: inline-block;
    background: #e8f5e9;
    border: 1px solid #10c956;
    color: #1b5e20;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}

.pf-btn-edit {
    margin-top: 16px;
    background: #fff;
    color: #10c956;
    border: 2px solid #10c956;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pf-btn-edit:hover {
    background: #10c956;
    color: #fff;
}

/* Anamnese Edit Section */
.pf-anamnese-edit {
    border: 2px solid #10c956;
    background: #fafffe;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.pf-anamnese-edit h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.pf-edit-field {
    margin-bottom: 20px;
}

.pf-edit-field:last-child {
    margin-bottom: 0;
}

.pf-edit-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

/* Checkbox Cards (for symptoms) */
.pf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-checkbox-card {
    cursor: pointer;
}

.pf-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-checkbox-card-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pf-checkbox-card input[type="checkbox"]:checked + .pf-checkbox-card-content {
    border-color: #10c956;
    background: #e8f5e9;
    box-shadow: 0 0 0 1px #10c956;
    color: #1b5e20;
}

.pf-checkbox-card:hover .pf-checkbox-card-content {
    border-color: #10c956;
}

/* Form textareas */
.pf-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pf-form textarea:focus {
    outline: none;
    border-color: #10c956;
}

/* Inline radio for edit section */
.pf-inline-radio {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pf-inline-radio label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Exclusion checkbox */
.pf-exclusion-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.pf-exclusion-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Exclusion criteria toggle & collapsible list */
.pf-exclusion-toggle {
    display: block;
    margin: 8px auto 0;
    background: #fff;
    color: #10c956;
    border: 1.5px solid #10c956;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pf-exclusion-toggle:hover {
    background: #10c956;
    color: #fff;
}

.pf-exclusion-details {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.pf-exclusion-details.open {
    max-height: 600px;
}

.pf-exclusion-list {
    margin: 8px 0 0;
    padding: 12px 16px 12px 32px;
    background: #f8faf9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.pf-exclusion-list li {
    list-style: disc;
}

/* Empty/no-data text */
.pf-empty-text {
    color: #999;
    font-style: italic;
}

/* Validation error */
.pf-error {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.pf-error.visible {
    display: block;
}

/* Notice / Hinweis-Box */
.pf-notice {
    max-width: 640px;
    margin: 40px auto;
    padding: 20px 24px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-left: 4px solid #888;
    border-radius: 6px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.pf-notice a {
    color: #10c956;
    font-weight: 600;
    text-decoration: underline;
}

.pf-notice a:hover {
    color: #0eb34d;
}
