.apb-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.apb-choice-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: #fff;
    user-select: none;
    line-height: 1.4;
}

.apb-choice-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.apb-choice-card input[type="radio"],
.apb-choice-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.apb-choice-card-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-bottom: 8px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.apb-choice-cards-checkbox .apb-choice-card-check {
    border-radius: 4px;
}

.apb-choice-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.apb-choice-card:has(input:checked) .apb-choice-card-check {
    border-color: #2563eb;
    background: #2563eb;
}

.apb-choice-card:has(input:checked) .apb-choice-card-check::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.apb-choice-cards-checkbox .apb-choice-card:has(input:checked) .apb-choice-card-check::after {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.apb-choice-card-label {
    display: block;
    font-weight: 600;
}

.apb-choice-card-copy {
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
}

.apb-choice-card-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.apb-choice-card-description {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
    font-weight: 400;
}

.apb-choice-card-media {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.apb-choice-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apb-choice-card-has-image {
    align-items: center;
}

@media (max-width: 480px) {
    .apb-choice-cards {
        grid-template-columns: 1fr;
    }
    .apb-choice-card-label,
    .apb-choice-card-description {
        text-align: left;
    }
}

.apb-step-panel {
    display: none;
}

.apb-step-panel-active {
    display: block;
}

.apb-steps-progress {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 0;
}

.apb-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.apb-step-dot-active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.apb-step-dot-done {
    background: #2563eb;
    border-color: #2563eb;
}

.apb-step-dot-done::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.apb-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.2s;
}

.apb-step-dot-done + .apb-step-line {
    background: #2563eb;
}

.apb-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.apb-btn-step {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.apb-btn-back {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.apb-btn-back:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.apb-btn-next {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
}

.apb-btn-next:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.apb-choice-cards.apb-invalid {
    outline: 2px solid #ef4444;
    outline-offset: 4px;
    border-radius: 8px;
}

.apb-section-heading {
    padding: 8px 0 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 4px;
}

.apb-section-heading-title {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.apb-section-heading-desc {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.apb-field input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.apb-field input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
