.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Radio buttons estilizados como cards - acessíveis e navegáveis por teclado */
.service-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-label {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: block;
    height: 100%;
}

.service-label:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-subtle);
}

.service-radio:checked+.service-label {
    border-color: var(--color-primary-dark);
    background-color: var(--color-primary-lighter);
    font-weight: var(--font-weight-semibold);
}

.service-radio:focus+.service-label {
    outline: var(--focus-ring-width) solid var(--color-primary-dark);
    outline-offset: var(--focus-ring-offset);
}

.service-label i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: var(--space-3);
    color: var(--color-gray-600);
}

.service-radio:checked+.service-label i {
    color: var(--color-primary-dark);
}

.service-label-text {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

/* Card com destaque reduzido (ex: Outros) */
.service-label-muted {
    opacity: 0.6;
    border-color: var(--color-border-light);
}

.service-label-muted:hover {
    opacity: 0.85;
}

.service-radio:checked+.service-label-muted {
    opacity: 1;
}

.service-label-muted i,
.service-label-muted .service-label-text {
    color: var(--color-text-muted);
}

/* UX/UI: Campos condicionais ocultos por padrão */
.campo-condicional {
    display: none;
}

/* UX: Transição suave ao exibir campos */
.campo-condicional.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-1px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Manter consistência visual com gchamado.php */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

small.text-muted {
    font-size: 0.875rem;
}

/* Estilos do Wizard */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

/* Progress bar do wizard */
.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-progress .progress {
    height: 8px;
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.wizard-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.wizard-step-item.active .wizard-step-circle {
    background-color: #008080;
    border-color: #008080;
    color: #fff;
}

.wizard-step-item.completed .wizard-step-circle {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.wizard-step-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.wizard-step-item.active .wizard-step-label {
    color: #008080;
    font-weight: 600;
}

.wizard-step-item.completed .wizard-step-label {
    color: #198754;
}

/* Botões de navegação do wizard */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

@media (max-width: 768px) {
    .wizard-step-label {
        font-size: 0.75rem;
    }

    .wizard-step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Select2 - Ajustes para ocupar 100% da largura */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    color: #495057;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #008080;
}

/* Upload area */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #f8f9fa;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #008080;
    background: #e7f1ff;
}

.upload-area.error {
    border-color: #dc3545;
    background: #f8d7da;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.upload-area i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

.upload-area.drag-over i {
    color: #008080;
}

.upload-area.error i {
    color: #dc3545;
}

#file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.file-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    max-width: 220px;
}

.file-preview-item .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.file-preview-item .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.form-check-input[type="radio"] {
    font-size: 24px;
    margin-left: -1.125em !important;
}
