:root {
    --primary-color: #941B80;
    --primary-light: #b93da3;
    --primary-dark: #6f1460;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-color: #f8f5f9;
    --shadow-color: rgba(148, 27, 128, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px var(--shadow-color);
    display: flex;
    font-size: 16px;
}

form{
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.form-col {
    flex: 1;
    width: 100%;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"],
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(148, 27, 128, 0.2);
}

.input-options {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #f5f0f5;
}

.radio-label:hover {
    background-color: #e9dce7;
}

/* Esconder o radio button padrÃ£o */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Criar um radio button personalizado */
.radio-label .custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* Criar o "ponto" interno quando selecionado */
.radio-label .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.2s ease;
}

/* Mostrar o ponto quando o radio estÃ¡ selecionado */
.radio-label input[type="radio"]:checked+.custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Estilo para o label quando o radio estÃ¡ selecionado */
.radio-label input[type="radio"]:checked~span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Estilo para o radio selecionado */
.radio-label input[type="radio"]:checked~.custom-radio {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(148, 27, 128, 0.2);
}

.btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 27, 128, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 75px;
    width: 100%;
}

.datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23941B80" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.resultado {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f0e6ee;
    border-left: 4px solid var(--primary-color);
    display: none;
    width: 100%;
}

.resultado.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para o jQuery UI Datepicker */
.ui-datepicker {
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: none;
}

.ui-datepicker .ui-datepicker-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.ui-datepicker .ui-datepicker-title {
    color: var(--text-light);
}

.ui-datepicker .ui-state-default {
    background: transparent;
    border: 1px solid transparent;
}

.ui-datepicker .ui-state-highlight {
    background-color: #f0e6ee;
}

.ui-datepicker .ui-state-active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.ui-datepicker .ui-icon {
    filter: brightness(0) invert(1);
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 20px 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .input-options {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 15px;
    }
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 45%;
    padding: 10px 7px !important;
    margin: 1px 4px !important;
}

.resultado {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f0e6ee;
    border-left: 4px solid var(--primary-color);
    display: none;
}

.resultado.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.resultado.success {
    background-color: #f0e6ee;
    border-left: 4px solid var(--primary-color);
}

.resultado h3 {
    color: var(--primary-color);
    margin-top: 16px;
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 27, 128, 0.2);
}

.resultado p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.resultado p:last-child {
    margin-bottom: 0;
}

.valor-multa-destaque {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 16px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(148, 27, 128, 0.2);
}

/* Adicione uma animaÃ§Ã£o de pulsaÃ§Ã£o para o valor da multa */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.valor-multa-destaque {
    animation: pulse 2s infinite;
}

/* Linhas zebradas para melhor leitura */
.resultado p:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 6px 4px;
    border-radius: 4px;
}

/* Responsividade */
@media (max-width: 480px) {
    .resultado p {
        flex-direction: column;
        margin-bottom: 12px;
    }

    .valor-multa-destaque {
        font-size: 1.2rem;
    }

    /* .datepicker{
    background-image: none;
  } */
}


/* modal (dialog) simples */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1200;
	padding: 20px;
}

.modal-overlay.open {
	display: flex;
}

.modal {
	width: min(920px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(17, 24, 39, .35);
	padding: 18px 20px;
	border: 1px solid rgba(17, 24, 39, .06);
}

.modal h3 {
	margin: 8px 0 6px;
	color: var(--accent);
}

.modal p {
	margin: 6px 0;
	color: var(--muted);
	line-height: 1.45;
}

.modal .col {
	margin-bottom: 12px;
}

.modal .close {
	position: absolute;
	right: 18px;
	top: 14px;
	background: transparent;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--muted);
}

.modal .actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.modal .actions .btn-secondary {
	min-width: 120px;
}

.modal ul li{
    list-style-type: disc !important;
    margin-left: 25px;
}

/* Modal pode estar fora do .wrap-ir — garantir aparência consistente */
.modal h1,
.modal h2,
.modal h3,
.modal h4 {
	all: unset;
	display: block;
	color: var(--accent, #8b0f7a) !important;
	font-weight: 900 !important;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
	font-size: inherit !important;
	line-height: 1.15 !important;
	margin: 0 0 .5rem !important;
}

/* botão de ajuda (ícone) */
.help-btn {
	display: inline-grid;
	place-items: center;
	width: 29px;
	height: 29px;
	margin-left: 0;
	border-radius: 50%;
	background: rgba(139, 15, 122, .08);
	border: 1px solid rgba(139, 15, 122, .18);
	color: var(--accent);
	font-size: 12px;
	cursor: pointer;
}

.btn-secondary {
	border: 1px solid rgba(139, 15, 122, .25);
	color: var(--accent);
	background: #fff;
	padding: 14px 16px;
	border-radius: 12px;
	font-weight: 900;
	cursor: pointer;
	min-width: 160px;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-family: inherit;
}

.btn-secondary:hover {
	border-color: rgba(139, 15, 122, .45);
}