@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&display=swap');

.borda-fipe {
  position: relative;
  border-radius: 26px;
  /* stroke principal */
  border: 1px solid rgba(255,80,120,.35);
  /* glow externo */
  box-shadow:
  0 0 0 1px rgba(255,80,120,.25),
  0 0 30px rgba(255,60,80,.12),
  inset 0 0 40px rgba(0,0,0,.35);
  /* fundo glass */
  background:
  linear-gradient(
    180deg,
    rgba(12,22,45,.75),
    rgba(6,12,30,.85)
  );
  backdrop-filter: blur(10px);  
}

.borda-fipe::after {
  content:"";
  position:absolute;
  left:30px;
  right:30px;
  bottom:-1px;
  height:2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,60,60,.9),
    rgba(255,20,20,.9),
    transparent
  );
  box-shadow: 0 0 8px rgba(255,40,40,.8), 0 0 18px rgba(255,40,40,.6);
}

.fipe-result-card {
  position: relative;
  border-radius: 26px;
  /* stroke azul */
  border: 1px solid rgba(70,160,255,.35);
  /* glow externo */
  box-shadow:
  0 0 0 1px rgba(70,160,255,.25),
  0 0 30px rgba(4, 4, 4, 0.12),
  inset 0 0 40px rgba(0,0,0,.35);
  /* fundo glass */
  /* background:
  linear-gradient(
  180deg,
  rgba(10,22,48,.78),
  rgba(5,14,36,.88)
  ); */
  backdrop-filter: blur(10px);
  padding: 20px;
  height: 500px;  
}

.fipe-result-card::after {
  content:"";
  position:absolute;
  left:30px;
  right:30px;
  bottom:-1px;
  height:2px;
  /* background:
  linear-gradient(
  90deg,
  transparent,
  rgba(60,160,255,.9),
  rgba(40,120,255,.9),
  transparent
  ); */
  /* box-shadow:
  0 0 8px rgba(40,120,255,.8),
  0 0 18px rgba(40,120,255,.6); */
  padding: 20px;
  height: 500px;
}

#fipe-consulta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: inherit;
  background: #ffffff;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  background-image: url("../image/fipe-fundo.png");
}

.fipe-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: stretch;
}

.fipe-form-card {
  /* background: #ffffff;
  border: 1px solid #e9edf2; */
  /* border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); */
  padding: 28px;
}

.fipe-title {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffff;
}

.fipe-field {
  margin-bottom: 18px;
}

.fipe-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #ffff;
}

.fipe-native-select,
.custom-select .selected,
.custom-select .search {
  width: 100%;
  height: 54px;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  background: #ffffff24 !important;
  color: #ffff;
  font-size: 17px;
  padding: 0 16px;
  outline: none;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.fipe-native-select:focus,
.custom-select.active .selected,
.custom-select .search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.fipe-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.fipe-btn {
  border: 0;
  border-radius: 12px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  text-transform: uppercase;
}

.fipe-btn-primary {
  background: linear-gradient(180deg, #ff3b30 0%, #df2017 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(223, 32, 23, 0.22);
}

.fipe-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(223, 32, 23, 0.28);
}

.fipe-btn-secondary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.fipe-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

/* .fipe-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
 // object-fit: cover;
} */

.fipe-image-box img {
  /* max-width: 100%; */
  max-height: 230px;
  object-fit: contain;
  transition: 0.25s ease;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  min-height: 260px;
}

.fipe-result-content {
  min-height: 130px;
  margin-top: 20px;
}

.fipe-result-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fipe-placeholder-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffff;
  margin-bottom: 10px;
}

.fipe-placeholder-text {
  font-size: 17px;
  line-height: 1.6;
  color: #ffff;
}

.fipe-result-brand {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: #ffff;
  margin-bottom: 8px;
}

.fipe-result-model {
  font-size: 20px;
  line-height: 1.1;
  color: #ffff;
  margin-bottom: 8px;
}

.fipe-result-year {
  font-size: 20px;
  color: #ffff;
  margin-bottom: 18px;
}

.fipe-result-price {
  font-size: 35px;
  line-height: 1;
  font-weight: 800;
  color: #ffff;
  margin-bottom: 18px;
  letter-spacing: -1px;
  margin-top: 30px;
}

.fipe-result-reference {
  font-size: 18px;
  color: #ffff;
  float: left;
  margin-top: 10px;
}

.custom-select {
  position: relative;
}

.custom-select .selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding-right: 44px;
  position: relative;
}

.custom-select .selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: translateY(-65%) rotate(45deg);
  transition: 0.2s ease;
}

.custom-select.active .selected::after {
  transform: translateY(-35%) rotate(-135deg);
}

.custom-select .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  z-index: 50;
  overflow: hidden;
}

.custom-select.active .dropdown {
  display: block;
}

.custom-select .search {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.custom-select .options {
  max-height: 240px;
  overflow-y: auto;
}

.custom-select .option {
  padding: 13px 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #181717;
  cursor: pointer;
  transition: 0.15s ease;
}

.custom-select .option:hover {
  background: #f8fafc;
}

.custom-select .option.is-empty {
  color: #94a3b8;
  cursor: default;
}

@media (max-width: 980px) {
  .fipe-layout {
    grid-template-columns: 1fr;
  }

  .fipe-title {
    font-size: 34px;
  }

  .fipe-result-model {
    font-size: 20px;
  }

  .fipe-result-price {
    font-size: 35px;
  }
}

/* SELECT NATIVO (Tipo e Ano) */
.fipe-native-select-wrap {
  position: relative;
}

.fipe-native-select {
  width: 100% !important;
  height: 54px !important;
  padding: 0 50px 0 16px !important;
  border: 1px solid #d8dee6 !important;
  border-radius: 12px !important;
  /*background: #fff !important;*/
  color: #ffff !important;
  font-size: 17px !important;
  line-height: normal !important;
  display: block !important;
  box-sizing: border-box !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-image: none !important;
  box-shadow: none;
}

/* remove setas extras do IE/Edge antigo */
.fipe-native-select::-ms-expand {
  display: none;
}

/* seta desenhada por fora */
.fipe-native-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: calc(50% + 12px);
  width: 10px;
  height: 10px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

/* tenta esconder elementos extras do tema dentro do campo */
.fipe-native-select-wrap .select2,
.fipe-native-select-wrap .select2-selection__arrow,
.fipe-native-select-wrap .stm_select_overflow,
.fipe-native-select-wrap .stm-select-sorting:before,
.fipe-native-select-wrap i,
.fipe-native-select-wrap .fa,
.fipe-native-select-wrap .fas {
  display: none !important;
}

/* Remove estilos do tema que escondem o select */
.fipe-native-select option {
  color: #000;
}

/* Garantir visibilidade */
#tipo,
#ano {
  opacity: 1 !important;
  visibility: visible !important;
}

/* container dos botões */
.fipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

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

/* estilo base */
.fipe-btn {
  width: 100%;
  height: 58px;
  border-radius: 6px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
}

/* botão vermelho */
.fipe-btn-red {
  background: #ff1e1e;
  color: white;
  box-shadow: 0 2px 0 #c91414;
}

.fipe-btn-red:hover {
  background: #e51616;
}

.fipe-btn-red:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c91414;
}

/* botão azul */
.fipe-btn-blue {
  background: #1976d2;
  color: white;
  box-shadow: 0 2px 0 #1257a0;
}

.fipe-btn-blue:hover {
  background: #1565c0;
}

.fipe-btn-blue:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1257a0;
}

/* valor */
/* glow horizontal abaixo */
.fipe-price-line::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background:
  linear-gradient(
  90deg,
  transparent,
  rgba(255,80,0,.8),
  rgba(255,160,40,.9),
  rgba(255,80,0,.8),
  transparent
  );
  box-shadow:
  0 0 8px rgba(255,80,0,.7),
  0 0 18px rgba(255,120,0,.6);
}

.fipe-price-value {
  letter-spacing: .6px;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  background: linear-gradient(180deg, #f4f2ee 52%, #f4f2ef 0%, #f4f3f1 -51%, #000000 13%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0px 0px rgba(255, 140, 0, .55));
  text-shadow: 0 0px 0px rgb(255 254 252 / 65%), 0 0 36px rgb(0 0 0 / 59%), 0 0 13px rgb(255 0 0 / -20%);
}

/* mobile */
@media (max-width: 768px) {
  .fipe-price-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .fipe-price-label {
    color:rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 1.2;
    font-weight:600;
    letter-spacing:.5px;
  }

  .fipe-price-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;   
  }

  .fipe-price-line {
     margin-bottom: 10px;
  }

  .fipe-image-box {
    max-height: 200px;
  }
}

/* desktop */
@media (min-width: 769px) {
  .fipe-price-line {
    display:flex;
    align-items:center;
    gap:12px;
    padding-bottom:10px;
    margin-bottom:18px;
    position:relative;
    font-family: "Poppins", sans-serif;
  }

  /* texto "Valor FIPE:" */
  .fipe-price-label {
    color:rgba(255,255,255,.9);
    font-size:20px;
    font-weight:600;
    letter-spacing:.5px;
  }

  /* amarelo
  .fipe-price-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .6px;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, #f4f2ee 52%, #f4f2ef 0%, #f4f3f1 -51%, #ce5228 13%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0px 0px rgba(255, 140, 0, .55));
    text-shadow: 0 0 0px rgba(259, 140, 0, .55), 0 0 18px rgba(255, 80, 0, .45), 0 0 26px rgb(255 40 0 / 21%);
  } */

  .fipe-price-value {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 5px;
  }

  .fipe-image-box {
    max-height: 250px;
  }

  .fipe-result-card {
    margin-top: 60px;
  }

  .fipe-result-card::after {
    margin-top: 60px;
  }
}

