/* 
|--------------------------------------------------------------------------
| Custom CSS 
|--------------------------------------------------------------------------
| Base visual inspirada na landing page.
| A estrutura principal continua em Tailwind.
|--------------------------------------------------------------------------
*/




html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Saira Semi Condensed', Arial, sans-serif;
    color: #1E293B;
    background: #ffffff;
}

/* Fonte dos títulos igual à landing */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Agdasima', 'Saira Semi Condensed', Arial, sans-serif;
    letter-spacing: 0.01em;
}

/* Linguagem visual da landing: caixa alta e títulos fortes */
h1,
h2,
h3 {
    text-transform: uppercase;
}

/* Seleção de texto */
::selection {
    background: #B9000B;
    color: #ffffff;
}

/* Imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Campos de formulário */
input,
select,
textarea {
    outline: none;
    font-family: 'Saira Semi Condensed', Arial, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #B9000B;
    box-shadow: 0 0 0 3px rgba(185, 0, 11, 0.12);
}

/* Botões base no padrão Nevescar */
.btn-neves {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #15255A;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all .3s ease;
}

.btn-neves:hover {
    background: #0D1738;
}

.btn-neves-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #B9000B;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all .3s ease;
}

.btn-neves-red:hover {
    background: #8F0008;
}

/* Detalhe visual usado como label industrial */
.neves-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.neves-label img {
    width: 2.75rem;
    height: auto;
    flex-shrink: 0;
    display: block;
}

/* Remove seta padrão de input number em alguns navegadores */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #15255A;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B9000B;
}

/* Animação leve */
.fade-in {
    animation: fadeIn 0.35s ease-in-out;
}

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

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

/* Linha limitada para cards */
.line-clamp-2-custom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mapa Representantes */
/* Mapa Representantes */
.representantes-map-card {
    background: #F7F7F7;
    border: 1px solid #E5E7EB;
    padding: 2rem;
}

.representantes-map-svg {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.representantes-map-svg svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
}

/* Estados do mapa */
.representantes-map-svg svg #features path {
    fill: #AFAFAF !important;
    stroke: #FFFFFF !important;
    stroke-width: 1.2 !important;
    transition: fill 0.2s ease, opacity 0.2s ease !important;
}

.representantes-map-svg svg #features path.br-state {
    cursor: pointer;
    pointer-events: auto;
}

.representantes-map-svg svg #features path.br-state:hover {
    fill: #B9000B !important;
}

.representantes-map-svg svg #features path.br-state-active {
    fill: #B9000B !important;
}

/* Tooltip do mapa */
.representantes-map-tooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    pointer-events: none;
    background: #15255A;
    color: #FFFFFF;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.representantes-map-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #15255A;
    transform: translateX(-50%) rotate(45deg);
}

/* Formulário abaixo do mapa */
.representantes-map-form {
    margin-top: 2rem;
    display: grid;
    gap: 0.75rem;
}

.representantes-map-form select {
    width: 100%;
    height: 3.75rem;
    padding: 0 1.25rem;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 1rem;
    outline: none;
}

.representantes-map-form select:focus {
    border-color: #15255A;
}

.representantes-map-form button {
    height: 3.75rem;
    background: #B9000B;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.representantes-map-form button:hover {
    background: #8F0008;
}

@media (min-width: 640px) {
    .representantes-map-form {
        grid-template-columns: 1fr 180px;
    }
}

@media (min-width: 1024px) {
    .representantes-map-card {
        padding: 2.5rem;
    }
}

@media (max-width: 640px) {
    .representantes-map-card {
        padding: 1.25rem;
    }

    .representantes-map-svg {
        max-width: 320px;
    }

    .representantes-map-form {
        margin-top: 1.5rem;
    }
}



/* MULTI SELECT FORMS*/

.multi-select {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
    width: 100%;
    user-select: none;
}
.multi-select .multi-select-header {
    border: 1px solid var(--input-border);
    padding: var(--spacing-medium) var(--spacing-large);
    padding-left: 36px;
    padding-right: var(--icon-space);
    overflow: hidden;
    gap: 0;
    min-height: var(--input-min-height);
    background-color: #fff;
    outline: none;
}
.multi-select .multi-select-header::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
    height: var(--icon-size);
    width: var(--icon-size);
}
.multi-select .multi-select-header.multi-select-header-active {
    border-color: var(--input-border-active);
}
.multi-select .multi-select-header.multi-select-header-active::after {
    transform: translateY(-50%) rotate(180deg);
}
.multi-select .multi-select-header.multi-select-header-active + .multi-select-options {
    display: flex;
}
.multi-select .multi-select-header .multi-select-header-placeholder {
    color: var(--text-color-light);
}
.multi-select .multi-select-header .multi-select-header-option {
    display: inline-flex;
    align-items: center;
    background-color: var(--option-background);
    font-size: var(--font-size-large);
    padding: var(--spacing-smaller) var(--spacing-small);
}
.multi-select .multi-select-header .multi-select-header-max {
    font-size: var(--font-size-large);
    color: var(--text-color-light);
}
.multi-select .multi-select-options {
    display: none;
    box-sizing: border-box;
    flex-flow: wrap;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: var(--spacing-small);
    padding: var(--spacing-small);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: var(--options-height);
    overflow-y: auto;
    overflow-x: hidden;
}
.multi-select .multi-select-options::-webkit-scrollbar {
    width: 5px;
}
.multi-select .multi-select-options::-webkit-scrollbar-track {
    background: #f0f1f3;
}
.multi-select .multi-select-options::-webkit-scrollbar-thumb {
    background: #cdcfd1;
}
.multi-select .multi-select-options::-webkit-scrollbar-thumb:hover {
    background: #b2b6b9;
}
.multi-select .multi-select-options .multi-select-option,
.multi-select .multi-select-options .multi-select-all {
    padding: var(--spacing-large);
}
.multi-select .multi-select-options .multi-select-option .multi-select-option-radio,
.multi-select .multi-select-options .multi-select-all .multi-select-option-radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--checkbox-background);
    margin-right: var(--spacing-large);
    height: var(--checkbox-size);
    width: var(--checkbox-size);
    border: 1px solid var(--checkbox-border);
}
.multi-select .multi-select-options .multi-select-option .multi-select-option-text,
.multi-select .multi-select-options .multi-select-all .multi-select-option-text {
    box-sizing: border-box;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: var(--font-size-larger);
    line-height: var(--line-height);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio::after,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio::after {
    content: "";
    display: block;
    width: calc(var(--checkbox-size) / 4);
    height: calc(var(--checkbox-size) / 2);
    border: solid var(--checkbox-active);
    border-width: 0 var(--checkbox-thickness) var(--checkbox-thickness) 0;
    transform: rotate(45deg) translateY(-1px);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-text,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-text {
    color: var(--text-color-dark);
}
.multi-select .multi-select-options .multi-select-option:hover,
.multi-select .multi-select-options .multi-select-option:active,
.multi-select .multi-select-options .multi-select-all:hover,
.multi-select .multi-select-options .multi-select-all:active {
    background-color: var(--option-background);
}
.multi-select .multi-select-options .multi-select-all {
    border-bottom: 1px solid var(--border-color-light);
}
.multi-select .multi-select-options .multi-select-search {
    padding: var(--spacing-medium) var(--spacing-large);
    border: 1px solid var(--input-border);
    margin: 10px 10px 5px 10px;
    width: 100%;
    outline: none;
    font-size: var(--font-size-larger);
}
.multi-select .multi-select-options .multi-select-search::placeholder {
    color: var(--text-color-light);
}
.multi-select .multi-select-header,
.multi-select .multi-select-option,
.multi-select .multi-select-all {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: var(--font-size-larger);
    color: var(--text-color-dark);
}
.multi-select.disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: var(--input-disabled);
}
.multi-select.multi-select-invalid .multi-select-header {
    border-color: var(--input-border-invalid);
    outline: var(--input-outline-invalid) solid 1px;
}

