.benz21-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    background: #ffffff;
    color: #222222;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.benz21-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benz21-form fieldset {
    border: 1px solid #d0d0d0;
    padding: 1rem;
    border-radius: 6px;
}

.benz21-form legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.benz21-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.benz21-field label {
    font-weight: 600;
}

.benz21-field input,
.benz21-field textarea {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.benz21-field input[aria-invalid="true"],
.benz21-field textarea[aria-invalid="true"] {
    border-color: #c53030;
    box-shadow: 0 0 0 1px rgba(197, 48, 48, 0.2);
}

.benz21-error {
    color: #c53030;
    font-size: 0.875rem;
    margin: 0;
}

.benz21-alert {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.benz21-button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.benz21-button:hover,
.benz21-button:focus {
    background: #1d4ed8;
    outline: none;
}

.benz21-button-secondary {
    background: #10b981;
}

.benz21-button-secondary:hover,
.benz21-button-secondary:focus {
    background: #059669;
}

.benz21-button-copy {
    background: #7c3aed;
    margin-right: 0.75rem;
}

.benz21-button-copy:hover,
.benz21-button-copy:focus {
    background: #6d28d9;
}

.benz21-button-clear {
    background: #6b7280;
}

.benz21-button-clear:hover,
.benz21-button-clear:focus {
    background: #4b5563;
}

.benz21-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.benz21-results {
    outline: none;
}

.benz21-copy-section {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benz21-copy-feedback {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
}

.benz21-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.benz21-table th,
.benz21-table td {
    border: 1px solid #d4d4d4;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.benz21-table thead th {
    background: #f1f5f9;
    font-weight: 600;
}

@media (max-width: 640px) {
    .benz21-form {
        gap: 1rem;
    }

    .benz21-table thead {
        display: none;
    }

    .benz21-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        overflow: hidden;
    }

    .benz21-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .benz21-table td:last-child {
        border-bottom: none;
    }

    .benz21-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
}

@media print {
    .benz21-button,
    .benz21-pdf-form {
        display: none !important;
    }

    .benz21-wrapper {
        padding: 0;
    }
}
