.badge-section {
    margin-top: 12px;
    margin-bottom: 50px;
    padding: 16px;
    border: 2px solid #d4a574;
    border-radius: 8px;
    background: #fffaf5;
}

.badge-section__title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.badge-section__notice {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #333;
}

.badge-section__field {
    margin-bottom: 12px;
}

.badge-section__field label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.badge-section__field input {
    width: 100%;
    max-width: 560px;
    padding: 8px;
    font-size: 16px;
}

.badge-section__meta {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

.badge-section__meta.is-warning {
    color: #c45c00;
}

.badge-section__actions {
    margin: 12px 0 16px;
}

.badge-section__copy-btn,
.badge-section__pdf-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #8b6914;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.badge-section__copy-btn:hover,
.badge-section__pdf-btn:hover {
    background: #f5ecd8;
}

.badge-preview {
    width: 200px;
    max-width: 100%;
    margin: 0 auto;
    padding: calc(var(--badge-scale, 0.5) * 12px) calc(var(--badge-scale, 0.5) * 8px);
    border: 1px solid #333;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

.badge-preview__company {
    width: 100%;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 calc(var(--badge-scale, 0.5) * 10px) var(--badge-gap, 8px);
    word-break: keep-all;
}

.badge-line1 {
    display: inline-block;
    border-bottom: 2px solid #e05050;
}

.badge-line2 {
    display: inline-block;
    border-bottom: 2px solid #4070c0;
}

.badge-line3 {
    display: inline-block;
    border-bottom: 2px solid #27ae60;
}

.badge-preview__legend {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.badge-preview__legend-item {
    display: inline-block;
    margin: 0 6px;
    padding: 0 4px 1px;
}

.badge-preview__legend-item--1 {
    border-bottom: 2px solid #e05050;
}

.badge-preview__legend-item--2 {
    border-bottom: 2px solid #4070c0;
}

.badge-preview__legend-item--3 {
    border-bottom: 2px solid #27ae60;
}

.badge-section__limit-error {
    font-size: 13px;
    margin-left: 6px;
}

.char-count-info {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.badge-preview__industry {
    display: block;
    width: 95%;
    margin: 0 auto var(--badge-gap, 8px);
    border: 1px solid #000;
    font-weight: bold;
    box-sizing: border-box;
}

.badge-preview__post {
    width: 100%;
    font-weight: bold;
    margin: 0 0 var(--badge-gap, 8px);
}

.badge-preview__name {
    width: 100%;
    font-weight: bold;
    margin: 0 0 var(--badge-gap, 8px);
}

.badge-preview__qr {
    width: 20%;
    min-width: 32px;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: repeating-linear-gradient(
        45deg,
        #ddd,
        #ddd 4px,
        #eee 4px,
        #eee 8px
    );
    border: 1px solid #999;
}

.badge-preview__note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

@media all and (max-width: 767px) {
    .badge-section {
        margin-bottom: 30px;
    }
}
