/* agenda-modal.css — widget de agendamento da Sorriso Real (inline + modal)
 *
 * Um único conjunto de classes, prefixadas com agh- para não colidir com o
 * tema (Bootstrap + main.css). O widget é sempre um card branco: funciona
 * sobre o fundo escuro do agendar.php e sobre as páginas claras.
 */

.agh-wrap {
  display: block;
  background: #fff;
  border: 1px solid #e2ede7;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 50, 30, 0.10);
  padding: 20px 18px;
  color: #25312b;
  font-family: "Roboto", "Open Sans", system-ui, sans-serif;
}
.agh-wrap * { box-sizing: border-box; }

/* ---- indicador de passos ---- */
.agh-passos { display: flex; gap: 6px; margin: 0 0 14px; }
.agh-passo { flex: 1; height: 5px; border-radius: 99px; background: #e4eee8; transition: background 0.2s; }
.agh-passo.agh-ok { background: #b7e6cc; }
.agh-passo.agh-atv { background: #10bc69; }

/* ---- títulos e textos ---- */
.agh-tit { font-family: "Raleway", sans-serif; font-size: 19px; font-weight: 700; margin: 0 0 4px; color: #14241b; }
.agh-sub { margin: 0 0 16px; font-size: 14px; color: #5f687b; line-height: 1.55; }

/* ---- chips (serviço, dia, horário) ---- */
.agh-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.agh-chip {
  appearance: none;
  border: 1px solid #d7e4dc;
  background: #f7fbf9;
  color: #25312b;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.35;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.agh-chip:hover { border-color: #10bc69; }
.agh-chip.agh-atv { border-color: #10bc69; background: #10bc69; color: #fff; box-shadow: 0 4px 10px rgba(16, 188, 105, 0.28); }
.agh-chip:focus-visible { outline: 2px solid #10bc69; outline-offset: 2px; }
.agh-chip:disabled { opacity: 0.55; cursor: not-allowed; }
.agh-chip .agh-chip-sub { display: block; font-weight: 400; font-size: 12px; opacity: 0.8; margin-top: 2px; }
.agh-chip.agh-atv .agh-chip-sub { opacity: 0.95; }

.agh-chip-dia { display: flex; flex-direction: column; align-items: center; min-width: 64px; text-align: center; }
.agh-chip-dia .agh-dia-rot { font-size: 12px; font-weight: 700; text-transform: capitalize; }
.agh-chip-dia .agh-dia-num { font-size: 18px; font-weight: 700; line-height: 1.2; }
.agh-chip-dia .agh-dia-mes { font-size: 11px; font-weight: 400; opacity: 0.85; }

/* ---- barra de ações / botões ---- */
.agh-acoes { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.agh-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.agh-btn-prim { background: #10bc69; color: #fff; box-shadow: 0 4px 12px rgba(16, 188, 105, 0.30); }
.agh-btn-prim:hover { background: #0ea45c; color: #fff; }
.agh-btn-prim:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.agh-btn-sec { background: #eef4f0; color: #35503f; }
.agh-btn-sec:hover { background: #e2ece6; color: #35503f; }
.agh-btn:focus-visible { outline: 2px solid #10bc69; outline-offset: 2px; }

/* ---- estados: carregando / erro / vazio ---- */
.agh-msg { display: flex; align-items: center; gap: 10px; color: #5f687b; font-size: 14px; padding: 14px 0; }
.agh-spin { width: 18px; height: 18px; border: 3px solid #d7e4dc; border-top-color: #10bc69; border-radius: 50%; animation: agh-gira 0.8s linear infinite; flex-shrink: 0; }
@keyframes agh-gira { to { transform: rotate(360deg); } }
.agh-erro { background: #fdeeee; border: 1px solid #f5c2c2; color: #a33; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.agh-vazio { color: #5f687b; font-size: 14px; padding: 8px 0; }

/* ---- formulário ---- */
.agh-form { display: grid; gap: 12px; }
.agh-campo label { display: block; font-size: 13px; font-weight: 600; color: #35503f; margin-bottom: 4px; }
.agh-campo label em { font-weight: 400; color: #8fa39a; }
.agh-campo input,
.agh-campo textarea {
  width: 100%;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #25312b;
  background: #fff;
}
.agh-campo input:focus,
.agh-campo textarea:focus { outline: 2px solid #10bc69; outline-offset: -1px; border-color: #10bc69; }
.agh-campo textarea { resize: vertical; min-height: 64px; }

/* ---- sucesso ---- */
.agh-ok { text-align: center; padding: 8px 6px; }
.agh-ok-icone { width: 56px; height: 56px; border-radius: 50%; background: #10bc69; color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.agh-ok .agh-tit { margin-bottom: 8px; }
.agh-codigo { display: inline-block; background: #eefaf4; border: 1px dashed #10bc69; color: #0a8350; border-radius: 10px; padding: 4px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; margin: 2px 0 10px; }
.agh-ok p { color: #5f687b; font-size: 14px; line-height: 1.6; margin: 0 0 14px; }

/* ---- modal ---- */
.agh-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 28, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: agh-fade 0.15s ease;
}
@keyframes agh-fade { from { opacity: 0; } to { opacity: 1; } }
.agh-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: agh-sobe 0.18s ease;
}
@keyframes agh-sobe { from { transform: translateY(12px); opacity: 0.7; } to { transform: none; opacity: 1; } }
.agh-box-tit { font-family: "Raleway", sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 2px; color: #14241b; }
.agh-box-sub { margin: 0 0 14px; font-size: 13px; color: #5f687b; }
.agh-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: #eef4f0;
  color: #35503f;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agh-fechar:hover { background: #e2ece6; }
.agh-fechar:focus-visible { outline: 2px solid #10bc69; outline-offset: 2px; }