.ltn__header-area,
.ltn__header-middle-area {
    transition: z-index 0.2s;
}

.custom-dropdown-container {
  position: relative;
  width: 100%;
}

.custom-dropdown-selected {
  background: #fff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 10px 40px 10px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #505050;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
  position: relative;
}

.custom-dropdown-selected.active, .custom-dropdown-container:focus-within .custom-dropdown-selected {
  border-color: #878787;
}

.custom-dropdown-arrow {
  border: solid #878787;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  transition: .3s;
}

.custom-dropdown-selected.active .custom-dropdown-arrow {
  transform: rotate(-135deg);
}

.custom-dropdown-options {
  position: absolute;
  z-index: 99;
  width: 100%;
  left: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid #bababa;
  max-height: 230px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scaleY(.98);
  transition: opacity 0.2s, transform 0.25s;
}

.custom-dropdown-options.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

.custom-dropdown-option {
  padding: 4px 18px;
  cursor: pointer;
  font-size: 16px;
  color: #272727;
  transition: background 0.2s, color 0.2s;
}

.custom-dropdown-option:hover,
.custom-dropdown-option.active {
  background: #F2F6FF;
  color: var(--);
}

label {
  font-weight: 600;
  color: #383838ff;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.5px;
}

.modal-overlay,
#modalSeguro {
    z-index: 99999 !important; 
}

.ltn__header-area,
.ltn__header-middle-area {
    transition: opacity 0.35s ease, z-index 0.12s;
}

/* Classe para fazer fade-out e z-index baixo */
.header-fade-out {
    opacity: 0 !important;
    z-index: 1 !important;
    pointer-events: none;
}

.btn-cotacao {
    padding: 12px 20px;
    background: #272a86;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.underline {
    text-decoration: underline;
    text-underline-position: under;
}

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Z-INDEX ALTO */
}

/* MODAL */
.modal-container {
    background: #fff;
    width: 80%;
    height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s ease;
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* FORM */
.modal-form {
    padding: 20px 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    padding: 10px;
    margin-bottom: 0;
    border-radius: 6px;
    width: 100%;
    height: max-content !important; 
    border: 1px solid #ccc;
}

select.dropdown-verde {
    padding: 12.4px;
}

.form-group input > .marck-check {
    width: auto !important;
}

.marck-check {
    width: 25px;
    height: 25px;
}
.form-group.checkbox {
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

/* FOOTER */
.modal-footer {
    margin-top: 20px;
    text-align: right;
}

/* ANIMAÇÃO */
@keyframes modalFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* RESPONSIVO */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}