/* =============================================================
   Clube do Tecnico - CSS customizado (header_code)
   Agrupa: barra de pesquisa, botao Aluguel de Ferramentas,
   e remocao do rodape padrao.
   ============================================================= */


/* =============================================================
   0.5) STICKY FOOTER - empurra os 4 cards de features
   para o bottom quando o conteudo for pequeno
   ============================================================= */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > div:first-of-type {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.top-footer {
  margin-top: auto;
}


/* =============================================================
   0) AJUSTES DE HEADER (reduz logo e economiza espaco)
   O logo original tem 182x40, muito largo e corta os itens
   da direita (nome do cliente, botao Aluguel). Reduz pra ~100
   mantendo proporcao e deixa a barra de pesquisa menos larga.
   ============================================================= */
.gsm-theme-header .nav-logo img,
.gsm-theme-header .nav-logo .logo {
  max-width: 140px !important;
  max-height: 46px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Reduz o espaco entre a logo e o primeiro item do menu */
.gsm-theme-header .nav-logo {
  margin-right: 4px !important;
}

/* Esconde as setinhas de scroll do nav (so aparecem quando falta espaco) */
.gsm-theme-header .nav-arrow-left,
.gsm-theme-header .nav-arrow-right {
  display: none !important;
}

/* Reduz um pouco o padding dos links do menu */
.gsm-theme-header .nav-links > li > a {
  padding-left: 8px !important;
  padding-right: 8px !important;
}


/* =============================================================
   1) BARRA DE PESQUISA + DROPDOWN DE RESULTADOS
   ============================================================= */
.ct-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 220px;
  margin: 0 8px;
  transition: border-color .15s ease, background .15s ease;
}
.ct-search-form:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}
.ct-search-form .ct-search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .7;
  color: #fff;
}
.ct-search-form .ct-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  padding: 1px 2px;
}
.ct-search-form .ct-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Dropdown de resultados */
.ct-search-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 380px;
  background: #0f1b3d;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  max-height: 480px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  padding: 6px;
}
.ct-search-dd.open { display: block; }

.ct-search-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.5);
  padding: 10px 10px 4px;
  font-weight: 700;
}

.ct-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s ease;
}
.ct-search-item:hover,
.ct-search-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.ct-search-thumb,
.ct-search-thumb-ph {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.ct-search-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ct-search-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-search-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.ct-search-price {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 1px 7px;
  border-radius: 999px;
}
.ct-search-time {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* Badge do tipo (Aluguel/Server/IMEI) */
.ct-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.ct-badge-remote { background: #16a34a; color: #fff; }
.ct-badge-server { background: #2563eb; color: #fff; }
.ct-badge-imei   { background: #a855f7; color: #fff; }

.ct-search-empty {
  padding: 18px 12px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
}

.ct-search-dd::-webkit-scrollbar { width: 8px; }
.ct-search-dd::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.ct-search-dd::-webkit-scrollbar-track { background: transparent; }

/* Mobile: barra de pesquisa quebra linha abaixo do logo/menu,
   ocupando toda a largura dentro do header */
@media (max-width: 991.98px) {
  .gsm-theme-header { flex-wrap: wrap !important; }
  .ct-search-form {
    width: 100% !important;
    order: 10 !important;
    margin: 6px 0 !important;
  }
  .ct-search-form .ct-search-input { font-size: 14px; }
  .ct-search-dd {
    min-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}


/* =============================================================
   2) BOTAO "ALUGUEL DE FERRAMENTAS" (destaque azul com shine)
   ============================================================= */
.nav-links > li > a.ct-rental-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(234, 246, 255) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
  padding: 0 11px;
  overflow: visible;
  --brilho-pos: 150%;
  --brilho-borda: 0.4;
  --brilho-glow: 0px;
  --brilho-glow-a: 0;
}

.nav-links > li > a.ct-rental-btn .ct-rental-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: #38bdf8;
}

.nav-links > li > a.ct-rental-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  border-radius: 10px;
  background-color: rgba(56, 189, 248, 0.12);
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(125, 211, 252, 0.5) 50%,
    rgba(255, 255, 255, 0.16) 55%,
    rgba(255, 255, 255, 0) 64%
  );
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: var(--brilho-pos) 0;
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, var(--brilho-borda)),
    0 0 var(--brilho-glow) rgba(56, 189, 248, var(--brilho-glow-a));
  z-index: -1;
  pointer-events: none;
  animation: ct-rental-shine 3.5s ease-in-out infinite;
}

.nav-links > li > a.ct-rental-btn:hover {
  --brilho-borda: 0.7;
  --brilho-glow: 14px;
  --brilho-glow-a: 0.35;
  color: #fff !important;
}

.nav-links > li > a.ct-rental-btn:hover .ct-rental-icon {
  stroke: #7dd3fc;
}

@keyframes ct-rental-shine {
  0%   { background-position: 160% 0; }
  25%, 100% { background-position: -70% 0; }
}

@media (max-width: 991.98px) {
  .nav-links > li > a.ct-rental-btn {
    padding: 10px 14px;
    width: 100%;
  }
  .nav-links > li > a.ct-rental-btn::before {
    height: 44px;
  }
}


/* =============================================================
   3) CARDS - SOMBRA (inspirada no DHMF) + CANTOS ARREDONDADOS
   Sobrescreve o `.rounded-0` (border-radius:0) do Bootstrap que
   o tema aplica em todos os cards.
   ============================================================= */
.card,
.card.rounded-0 {
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden; /* evita que imagens vazem dos cantos arredondados */
  transition: transform .2s ease, box-shadow .2s ease !important;
}

.card:hover,
.card.rounded-0:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}


/* =============================================================
   4) SLIDERS / CARROSSEIS - CANTOS ARREDONDADOS
   Aplica no banner principal (Bootstrap carousel) e no Owl.
   ============================================================= */
.carousel.slide,
.carousel-inner,
.owl-carousel,
.owl-stage,
.owl-item {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Imagens dentro dos carrosseis */
.carousel-item img,
.owl-item img,
.carousel-inner img {
  border-radius: 12px !important;
  border: 0 !important;
}


/* =============================================================
   4.5) TEMPLATE DE DESCRICAO DOS SERVICOS DE ALUGUEL
   Use colando o HTML do template no campo Descricao do servico.
   ============================================================= */
.ct-rental-desc {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
}
.ct-rental-desc * { box-sizing: border-box; }

/* Banner do titulo */
.ct-rd-banner {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 16px;
}
.ct-rd-banner-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Badges de categoria */
.ct-rd-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ct-rd-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.ct-rd-cat.ct-rd-cat-active {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fdba74;
}

/* Secoes */
.ct-rd-section { margin-bottom: 20px; }
.ct-rd-section-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Botoes dos planos de aluguel */
.ct-rd-plans {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ct-rd-plan {
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fdba74;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
}
.ct-rd-plan:hover {
  background: #fed7aa;
  color: #c2410c;
  text-decoration: none;
}
.ct-rd-plan.ct-rd-plan-active {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}

/* Passos "Como comprar" */
.ct-rd-steps { list-style: none; padding: 0; margin: 0; }
.ct-rd-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #334155;
}
.ct-rd-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #032a7d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* Caixa de atencao */
.ct-rd-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 16px;
}
.ct-rd-warning-title {
  font-weight: 700;
  color: #92400e;
  font-size: 13px;
  margin-bottom: 4px;
}
.ct-rd-warning-text {
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Botoes finais */
.ct-rd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.ct-rd-btn {
  flex: 1;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s ease;
}
.ct-rd-btn-dark {
  background: #0f172a;
  color: #fff;
}
.ct-rd-btn-dark:hover { background: #1e293b; color: #fff; }
.ct-rd-btn-orange {
  background: #ea580c;
  color: #fff;
}
.ct-rd-btn-orange:hover { background: #c2410c; color: #fff; }


/* =============================================================
   5) MODAL DE TERMOS OBRIGATORIOS (paleta Clube do Tecnico)
   Primary: #032a7d (azul marinho) | Accent alerta: #dc2626
   ============================================================= */
.ct-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 45, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow-y: auto;
  padding: 20px;
}

.ct-popup-box {
  background: #061435;
  border: 2px solid rgba(3, 42, 125, 0.9);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  color: #e6ecff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(59, 130, 246, 0.25);
  animation: ct-popup-in .3s ease;
}

@keyframes ct-popup-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.ct-popup-header-warning {
  background: linear-gradient(135deg, #032a7d 0%, #0a3e9e 50%, #dc2626 100%);
  padding: 22px 20px;
  border-radius: 14px 14px 0 0;
  text-align: center;
  color: #fff;
}
.ct-popup-header-warning h2 {
  margin: 10px 0 0;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}

.ct-icon-warning {
  font-size: 2.5rem;
  display: inline-block;
  animation: ct-shake 0.6s ease-in-out infinite alternate;
}
@keyframes ct-shake {
  from { transform: rotate(-5deg); }
  to   { transform: translateX(5px) rotate(5deg); }
}

.ct-popup-content-scroll {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  background: #081a3f;
}
.ct-popup-content-scroll h3 {
  color: #60a5fa;
  margin: 18px 0 10px;
  font-size: 1rem;
}
.ct-popup-content-scroll p,
.ct-popup-content-scroll li {
  color: #cfd7e8;
  font-size: 14px;
}
.ct-popup-content-scroll ul { padding-left: 20px; margin: 10px 0; }
.ct-popup-content-scroll li { margin-bottom: 8px; }
.ct-popup-content-scroll hr {
  border: none;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  margin: 20px 0;
}

.ct-warning-box {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 14px 0;
  border-left: 5px solid;
}
.ct-warning-box.ct-critical {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
}
.ct-warning-box.ct-danger {
  background: rgba(3, 42, 125, 0.4);
  border-color: #3b82f6;
}
.ct-warning-box h3 {
  margin-top: 0;
  color: #fca5a5;
  font-size: 1rem;
}
.ct-warning-box.ct-danger h3 { color: #93c5fd; }

.ct-highlight-red {
  color: #f87171;
  font-weight: 700;
  text-align: center;
  display: block;
  margin-top: 12px;
}

.ct-acceptance-box {
  background: rgba(3, 42, 125, 0.35);
  padding: 18px;
  border-radius: 10px;
  border: 2px dashed rgba(96, 165, 250, 0.5);
  margin-top: 16px;
}
.ct-acceptance-text {
  font-weight: 600;
  color: #e6ecff;
  margin: 0;
  text-align: center;
}

.ct-popup-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 22px;
  background: #040d26;
  border-top: 1px solid rgba(3, 42, 125, 0.6);
  border-radius: 0 0 14px 14px;
}

.ct-terms-check-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.ct-terms-check-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-terms-check-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(96, 165, 250, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1d4a;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.ct-terms-check-icon {
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.ct-terms-check-text { color: #e6ecff; }
.ct-terms-check-wrapper input:checked + .ct-terms-check-custom {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #032a7d, #1e40af);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}
.ct-terms-check-wrapper input:checked + .ct-terms-check-custom .ct-terms-check-icon {
  opacity: 1;
  transform: scale(1);
}

.ct-btn-accept {
  padding: 14px 36px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #032a7d, #1d4ed8);
  color: #fff;
  transition: all 0.2s ease;
  min-width: 240px;
  letter-spacing: .02em;
}
.ct-btn-accept:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.5);
  filter: brightness(1.1);
}
.ct-btn-accept:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #1a2d5c;
}


/* =============================================================
   6) OCULTA O RODAPE PADRAO DO GSM THEME
   Mantem os 4 cards de features (.top-footer) que ficam fora
   do <footer>. Esconde so o <footer class="footer"> em si.
   ============================================================= */
footer.footer {
  display: none !important;
}
