:root {
  --primary: #012B60;
  --primary-700: #001d42;
  --bg: #F7FAFF;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --radius: 18px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--ink);
  
 
}

/* HEADER */
header {
  background: #fff;
  padding: 18px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.brand {
  font-weight: bold;
  font-size: 26px;
  color: var(--primary);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

/* CARDS MAIORES */
.card {
  background: var(--card);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  margin-bottom: 30px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* IMAGENS MAIORES */
.card img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* BOTÕES */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: .3s;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

/* TEXTO ESPAÇADO */
.card b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.card p {
  margin: 10px 0 20px 0;
  line-height: 1.6;
  color: var(--muted);
}

/* HERO */
.hero {
  background: linear-gradient(90deg,#739aec,#207ed6b4,#5fa2dd);
  padding: 60px;
  border-radius: 24px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

/* FORMULÁRIOS PROFISSIONAIS */
.form-box {
  max-width: 480px;
  margin: 60px auto;
  background: white;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}

.form-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  transition: 0.2s;
}

.form-box input:focus,
.form-box textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1,43,96,.1);
}

/* ===== LOGIN E CADASTRO REVESTE ===== */

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #012B60, #0A4BAF, #207ed6);
  padding: 30px;
}

.auth-box {
  width: 100%;
  max-width: 520px;
  background: white;
  padding: 50px 40px;
  border-radius: 35px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  text-align: center;
}

.auth-box h2 {
  font-size: 32px;
  margin-bottom: 35px;
  color: #012B60;
}

/* Inputs maiores */
.auth-box input {
  width: 100%;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 30px;
  border: none;
  background: #f0f6ff;
  font-size: 16px;
  text-align: center;
  transition: .3s;
}

.auth-box input::placeholder {
  color: #5b6b84;
}

.auth-box input:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(32,126,214,.25);
  outline: none;
}

/* Botão arredondado e vivo */
.auth-btn {
  width: 100%;
  padding: 18px;
  border-radius: 35px;
  border: none;
  background: linear-gradient(90deg,#012B60,#0A4BAF,#207ed6);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

/* Link inferior */
.auth-link {
  margin-top: 25px;
  font-size: 15px;
}

.auth-link a {
  color: #207ed6;
  font-weight: bold;
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 100%;          /* altura padrão */
  object-fit: contain;      /* corta proporcional sem distorcer */
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.card img:hover {
  transform: scale(1.02);
}

/* MODAL IMAGEM */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-conteudo {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 20px;
}

.fechar {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
.chat-container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
}

/* ===== CHAT CONTAINER ===== */
.chat-container{
    max-width:900px;
    margin:30px auto;
    background:#f4f7fb;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    height:80vh;
    overflow:hidden;
}

/* ===== TOPO ===== */
.chat-topo{
    padding:20px;
    background:linear-gradient(90deg,#012B60,#207ed6);
    color:#fff;
    font-size:18px;
    font-weight:bold;
}

/* ===== ÁREA DAS MENSAGENS ===== */
.chat-box{
    flex:1;
    padding:20px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:8px;
}

/* ===== BALÕES ===== */
.mensagem{
    max-width:70%;
    padding:14px 18px;
    border-radius:18px;
    font-size:16px;
    line-height:1.4;
    word-wrap:break-word;
    animation:fadeIn 0.2s ease-in-out;
}

.msg-eu{
    align-self:flex-end;
    background:#207ed6;
    color:#fff;
    border-bottom-right-radius:6px;
}

.msg-outro{
    align-self:flex-start;
    background:#ffffff;
    color:#333;
    border-bottom-left-radius:6px;
    box-shadow:0 4px 8px rgba(0,0,0,0.05);
}

/* Nome */
.nome-msg{
    font-size:12px;
    font-weight:bold;
    margin-bottom:4px;
    opacity:0.8;
}

/* Hora */
.hora{
    font-size:11px;
    margin-top:5px;
    text-align:right;
    opacity:0.6;
}

/* ===== DIGITANDO ===== */
.digitando{
    padding:5px 20px;
    font-size:13px;
    color:#666;
    height:20px;
}

/* ===== FORMULÁRIO ===== */
.chat-form{
    display:flex;
    padding:15px;
    gap:10px;
    background:#fff;
    border-top:1px solid #eee;
}

.chat-form input{
    flex:1;
    padding:14px 18px;
    border-radius:30px;
    border:1px solid #ddd;
    font-size:16px;
    outline:none;
}

.chat-form button{
    padding:14px 25px;
    border:none;
    border-radius:30px;
    background:#012B60;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.chat-form button:hover{
    background:#0353a4;
}

/* ===== ANIMAÇÃO ===== */
@keyframes fadeIn{
    from{opacity:0; transform:translateY(5px);}
    to{opacity:1; transform:translateY(0);}
}

/* FORMULÁRIO CENTRALIZADO */
.chat-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

/* Input maior */
.chat-form input {
  width: 70%;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.chat-form input:focus {
  border-color: #0A4BAF;
  box-shadow: 0 0 0 4px rgba(10,75,175,.15);
}

/* Botão */
.chat-form button {
  padding: 16px 28px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg,#012B60,#207ed6);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: .3s;
}

.chat-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.auth-box select,
.auth-box textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 25px;
  border: none;
  background: #f0f6ff;
  font-size: 16px;
  text-align: center;
}

.auth-box textarea {
  resize: none;
  height: 100px;
}

.sucesso-box{
    width:400px;
    margin:100px auto;
    padding:40px;
    background:#fff;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.sucesso-box h2{
    color:#28a745;
    margin-bottom:15px;
}

.sucesso-box p{
    margin-bottom:25px;
    font-size:18px;
}

.btn-voltar-chat{
    background:#ffffff;
    color:#012B60;
    padding:6px 14px;
    border-radius:20px;
    text-decoration:none;
    font-size:14px;
    margin-right:15px;
    font-weight:bold;
    transition:0.3s;
}

.btn-voltar-chat:hover{
    background:#e9eef7;
}

/* =========================
   CHAT RESPONSIVO (MOBILE)
   ========================= */

@media (max-width: 768px){

  .chat-container{
    width: 100%;
    max-width: 100%;
    height: 100vh;          /* ocupa a tela toda */
    margin: 0;
    border-radius: 0;       /* visual de app */
  }

  .chat-topo{
    padding: 14px 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .btn-voltar-chat{
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 13px;
    margin-right: 6px;
    white-space: nowrap;
  }

  .chat-box{
    padding: 12px;
    gap: 6px;               /* mensagens mais próximas */
  }

  .mensagem{
    max-width: 88%;         /* bolhas maiores no mobile */
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 18px;
  }

  .nome-msg{
    font-size: 12px;
  }

  .hora{
    font-size: 10px;
  }

  .digitando{
    padding: 4px 12px;
    font-size: 12px;
    height: 18px;
  }

  .chat-form{
    padding: 10px;
    gap: 8px;
  }

  .chat-form input{
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 22px;
  }

  .chat-form button{
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 22px;
  }
}

/* Extra: para telas bem pequenas */
@media (max-width: 390px){
  .mensagem{ max-width: 92%; }
  .chat-topo{ font-size: 15px; }
  .chat-form button{ padding: 14px 12px; }
}

/* ===== TERMOS OVERLAY (ESTILO APP) ===== */
.termos-btn{
  width:100%;
  border-radius:22px;
  background: linear-gradient(90deg,#012B60,#207ed6);
}

.termos-status{
  margin:12px 0;
  font-weight:800;
  text-align:center;
  color:#dc3545;
}

/* overlay com blur */
.termos-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:flex-end; /* sheet sobe de baixo */
  justify-content:center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:9999;
  padding: 0;
}

/* sheet (tela) */
.termos-sheet{
  width: min(920px, 100%);
  height: min(92vh, 900px);
  background:#f4f7fb;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 60px rgba(0,0,0,.25);
  overflow:hidden;
  transform: translateY(22px);
  opacity:0;
  transition: transform .22s ease, opacity .22s ease;
  display:flex;
  flex-direction:column;
}

/* quando abre */
.termos-overlay.aberto .termos-sheet{
  transform: translateY(0);
  opacity:1;
}

/* topo */
.termos-top{
  background: linear-gradient(90deg,#012B60,#207ed6);
  color:#fff;
  padding: 14px 16px;
  display:flex;
  gap:12px;
  align-items:center;
}
.termos-top h2{
  margin:0;
  font-size:18px;
  line-height:1.1;
}
.termos-top p{
  margin:4px 0 0;
  font-size:12px;
  opacity:.9;
}
.termos-back{
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  background: rgba(255,255,255,.18);
  color:#fff;
  font-size:18px;
}
.termos-back:hover{ background: rgba(255,255,255,.28); }

/* corpo com scroll */
.termos-body{
  padding: 14px;
  overflow:auto;
  flex:1;
  display:grid;
  gap:12px;
}

/* cards internos */
.termos-card{
  background:#fff;
  border-radius:18px;
  border: 1px solid #e6eefc;
  padding:14px;
}
.termos-card h3{
  margin:0 0 10px;
  font-size:15px;
  color:#0f254a;
}

/* itens */
.termos-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 10px;
  border-radius:16px;
  background:#f4f7fb;
  border:1px solid #e6eefc;
  margin-bottom:10px;
}
.termos-dot{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#fff;
  border:1px solid #e6eefc;
  font-size:18px;
}
.termos-item b{ display:block; color:#0f254a; font-size:14px; }
.termos-item small{ display:block; color:#55627a; font-size:13px; line-height:1.35; margin-top:3px; }

/* checkbox */
.termos-check{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:900;
  color:#0f254a;
}
.termos-check input{
  width:18px;
  height:18px;
  accent-color:#207ed6;
}
.termos-help{
  display:block;
  margin-top:8px;
  color:#6b7280;
  font-size:12px;
}

/* ações (barra fixa embaixo) */
.termos-actions{
  padding: 12px 14px;
  background:#fff;
  border-top:1px solid #e6eefc;
  display:flex;
  gap:10px;
}
.termos-primary{
  flex:1;
  border:none;
  cursor:pointer;
  padding: 14px 16px;
  border-radius:18px;
  font-weight:900;
  color:#fff;
  background: linear-gradient(90deg,#1f9d5a,#28a745);
}
.termos-primary:hover{
  box-shadow:0 12px 28px rgba(40,167,69,.25);
  transform: translateY(-1px);
}
.termos-secondary{
  border:none;
  cursor:pointer;
  padding: 14px 16px;
  border-radius:18px;
  font-weight:900;
  background:#e9eef7;
  color:#012B60;
}
.termos-secondary:hover{ background:#dfe7f5; transform: translateY(-1px); }

/* mobile: ocupa 100% */
@media (max-width: 700px){
  .termos-sheet{
    width:90%;
    height:100vh;
    border-radius:0;
  }
  .termos-body{ padding: 12px; }
}
/* ===== AJUSTE DOAR.PHP NO CELULAR ===== */
@media (max-width: 600px){

  /* garante cálculo correto de largura */
  *, *::before, *::after{
    box-sizing: border-box;
  }

  /* fundo ocupa a tela e não corta */
  .auth-bg{
    min-height: 100vh;
    padding: 16px;       /* menor que 30px */
    align-items: flex-start;
  }

  /* cartão branco ocupa a largura toda */
  .auth-box{
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;  /* reduz padding lateral */
    border-radius: 18px;
  }

  /* campos e botões sempre dentro do branco */
  .auth-box input,
  .auth-box select,
  .auth-box textarea,
  .auth-btn,
  .termos-btn{
    width: 100%;
    max-width: 100%;
    display: block;
  }
}

/* --- ZOOM DA IMAGEM (tipo site de roupas) --- */
.img-produto{
  width: 100%;
  max-width: 320px; /* pode ajustar */
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.img-produto:hover{
  transform: scale(1.02);
}

/* Modal */
.modal-img{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-img-conteudo{
  max-width: min(900px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  cursor: zoom-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.15s ease;
}

.modal-fechar{
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 44px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
}

@keyframes zoomIn{
  from{ transform: scale(0.96); opacity: 0.4; }
  to{ transform: scale(1); opacity: 1; }
}