/* =========================
   style.css (RESPONSIVO)
   ========================= */

/* ✅ Google Font via CSS (mais resiliente em hospedagem + <base>) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET / BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --vh: 1vh;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  min-height: -webkit-fill-available;
  /*overflow: hidden;*/
  overflow-y: auto;
  .fullscreen-app { height: auto; min-height: 100dvh; }

  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #1a1a1a 100%);
  color: #fff;

  position: fixed;
  inset: 0;

  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* ===== FUNDO ===== */
.bg-decoration {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

.bg-1 {
  width: min(80vh, 80vw, 500px);
  height: min(80vh, 80vw, 500px);
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
  top: -30%;
  right: -30%;
  border-radius: 50%;
}

.bg-2 {
  width: min(60vh, 60vw, 400px);
  height: min(60vh, 60vw, 400px);
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
  bottom: -20%;
  left: -20%;
  border-radius: 50%;
}

/* ===== HOME ===== */
.fullscreen-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 6% 8%;
  position: relative;
  overflow: hidden;
}

.top-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  flex: 0 0 auto;
  margin-top: 2%;
}

.middle-section {
  width: 100%;
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: min(4vh, 30px) 0;
}

.bottom-section {
  width: 100%;
  text-align: center;

  padding: min(4vh, 25px) 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);

  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px 20px 0 0;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  margin-top: auto;
}

.logo-container {
  width: min(40vh, 40vw, 250px);
  height: min(40vh, 40vw, 250px);
  min-width: 140px;
  min-height: 140px;

  margin-bottom: min(5vh, 40px);
}

.logo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;

  background: radial-gradient(circle at 30% 30%, #d4af37 0%, #b8941f 70%, #8a6c15 100%);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 60px rgba(212, 175, 55, 0.5),
    0 0 100px rgba(212, 175, 55, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.2);

  border: 6px solid rgba(255, 255, 255, 0.2);
}

.logo-circle i {
  font-size: min(18vh, 18vw, 90px);
  color: #0a0a0a;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.title-section {
  text-align: center;
  width: 100%;

  margin-bottom: min(4vh, 30px);
}

.main-title {
  font-size: clamp(2.2rem, 11vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;

  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: min(3vh, 20px);
}

.title-highlight {
  color: #d4af37;
  position: relative;
  display: inline-block;

  padding: 0 5px;
}

.title-highlight::after {
  content: "";
  position: absolute;

  bottom: 0;
  left: 5%;
  width: 90%;
  height: 6px;

  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  border-radius: 3px;
  opacity: 0.8;
}

.subtitle {
  font-size: clamp(1.1rem, 5.8vw, 2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);

  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

.divider-line {
  width: min(80%, 400px);
  height: 3px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 20%,
    #d4af37 50%,
    rgba(212, 175, 55, 0.3) 80%,
    transparent 100%
  );

  margin: min(4vh, 30px) 0;
  border-radius: 3px;
}

.info-text {
  font-size: clamp(0.95rem, 4.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);

  margin-bottom: min(2vh, 15px);
  line-height: 1.5;
}

.info-text strong {
  color: #d4af37;
  font-weight: 700;
}

.action-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-button {
  width: min(95%, 520px);

  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  color: #fff;

  border: 3px solid #d4af37;
  padding: min(6vh, 35px) min(8vw, 40px);
  border-radius: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  font-size: clamp(1.35rem, 7.5vw, 2.2rem);
  min-height: 78px;
  text-align: center;
}

.main-button i {
  color: #d4af37;
  font-size: clamp(1.6rem, 8.5vw, 2.8rem);
  margin-right: min(4vw, 25px);
}

/* ===== OVERLAY / WIZARD ===== */
.page-overlay {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);

  background: linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #1a1a1a 100%);
  z-index: 9999;

  display: none;

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 18px 16px;
}

.page-overlay.active {
  display: block;
}

.wizard-wrap {
  width: 100%;
  max-width: 620px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 14px;

  padding-bottom: 22px;
}

/* Loading */
.init-loading {
  position: sticky;
  top: 0;
  z-index: 50;

  justify-content: center;
  align-items: center;

  padding: 10px 0;
}

.init-loading-box {
  width: 100%;
  max-width: 420px;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;

  padding: 12px 14px;

  display: flex;
  gap: 12px;
  align-items: center;

  backdrop-filter: blur(10px);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;

  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #d4af37;

  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.init-loading-text {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

/* Progresso ✅ FIX RESPONSIVO */
.progress {
  width: 100%;
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 6px;
  padding: 0 6px;

  overflow: hidden;
}

.progress::before {
  content: "";
  position: absolute;

  top: 18px;
  left: 8px;
  right: 8px;

  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.p-step {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.p-circle {
  width: clamp(34px, 9vw, 46px);
  height: clamp(34px, 9vw, 46px);

  border-radius: 50%;
  display: grid;
  place-items: center;

  font-weight: 900;

  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);

  border: 3px solid transparent;
  transition: all 0.2s ease;
}

.p-label {
  font-size: clamp(0.72rem, 3.2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.72);

  font-weight: 800;
  line-height: 1.05;

  max-width: 76px;
  word-break: break-word;
}

.p-circle.active {
  background: #d4af37;
  color: #0a0a0a;
  border-color: rgba(212, 175, 55, 0.9);
  transform: scale(1.07);
}

.p-label.active {
  color: #d4af37;
}

.p-circle.completed {
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 420px) {
  .p-label {
    display: none;
  }

  .p-label.active {
    display: block;
    max-width: 120px;
  }
}

.progress-current {
  width: 100%;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;

  backdrop-filter: blur(10px);
}

.pc-small {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);

  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.pc-big {
  font-weight: 900;
  font-size: 1.55rem;
  margin-top: 4px;
}

/* Cards */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-card {
  width: 100%;
  background: rgba(26, 26, 26, 0.92);

  border: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: 22px;

  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.6);

  overflow: hidden;
}

.wizard-card-header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.wizard-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.05;
}

.wizard-subtitle {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.wizard-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Form */
.fg label {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);

  margin-bottom: 10px;
  padding-left: 6px;
}

.fg input {
  width: 100%;
  background: rgba(10, 10, 10, 0.55);

  border: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;

  padding: 16px 16px;
  color: #fff;

  font-size: 1.15rem;
  outline: none;
  transition: all 0.2s ease;
}

.fg input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Lists */
.selection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);

  cursor: pointer;
  transition: all 0.2s ease;
}

.selection-item.selected {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.item-title {
  font-weight: 900;
  font-size: 1.1rem;
}

.item-desc {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  margin-top: 3px;
}

.item-price {
  font-weight: 900;
}

.item-check {
  opacity: 0;
}

.selection-item.selected .item-check {
  opacity: 1;
  color: #d4af37;
  font-weight: 900;
}

/* Selected box */
.selected-box {
  margin-top: 4px;

  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);

  background: rgba(212, 175, 55, 0.08);
  padding: 12px 14px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.selected-box-label {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.selected-box-value {
  font-weight: 900;
  color: #d4af37;
}

/* Empty */
.empty-state {
  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  text-align: center;
}

/* Professionals */
.pro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);

  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-card.selected {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.pro-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-avatar {
  width: 44px;
  height: 44px;

  border-radius: 50%;
  display: grid;
  place-items: center;

  font-weight: 900;

  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);

  color: #d4af37;
}

.pro-name {
  font-weight: 900;
  font-size: 1.1rem;
}

.pro-role {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
  margin-top: 2px;
}

.pro-radio {
  opacity: 0;
}

.pro-card.selected .pro-radio {
  opacity: 1;
  color: #d4af37;
  font-weight: 900;
}

/* ===== CALENDÁRIO ===== */
.section-mini-title {
  margin-top: 6px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-month {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.cal-month-header {
  padding: 12px 14px;
  font-weight: 900;
  color: #d4af37;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  text-transform: capitalize;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;

  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.cal-weekdays div {
  text-align: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;

  padding: 12px 10px 14px;
}

.cal-day {
  border-radius: 14px;
  padding: 10px 6px;

  text-align: center;
  font-weight: 900;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);

  cursor: pointer;
  user-select: none;
}

.cal-day:hover {
  transform: translateY(-1px);
}

.cal-day.blank {
  background: transparent;
  border: 1px solid transparent;

  cursor: default;
  padding: 10px 6px;
}

.cal-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.cal-day.available {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.cal-day.active {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.75);
  color: #d4af37;
}

/* Horários */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.time-slot {
  padding: 12px 10px;
  text-align: center;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(0, 0, 0, 0.2);
  font-weight: 900;

  cursor: pointer;
}

.time-slot.active {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
}

/* Confirm */
.summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sum-k {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.75);
}

.sum-v {
  font-weight: 900;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
}

.confirm-status {
  margin-top: 10px;
  padding: 12px 14px;

  border-radius: 14px;
  font-weight: 900;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

/* Buttons */
.wizard-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn2 {
  width: 100%;
  border-radius: 20px;

  padding: 16px 14px;
  font-size: 1.25rem;
  font-weight: 900;

  border: 2px solid transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  transition: all 0.2s ease;
}

.btn2-primary {
  background: linear-gradient(145deg, #d4af37, #b8941f);
  color: #0a0a0a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.btn2-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

/* Acessibilidade */
input,
textarea,
select {
  font-size: 16px !important;
}

/* ✅ EXTRA: micro-ajustes pra telas muito pequenas */
@media (max-width: 360px) {
  .progress {
    gap: 4px;
    padding: 0 4px;
  }

  .p-circle {
    border-width: 2px;
  }

  .pc-big {
    font-size: 1.35rem;
  }

  .wizard-title {
    font-size: 1.95rem;
  }
}




/* novo * /


/* ===== Fix Mobile Viewport + Scroll ===== */
html, body {
  height: 100%;
}

body {
  overflow-y: auto;              /* permite rolagem */
  -webkit-overflow-scrolling: touch;
}

/* Evita o "corte" por causa da barra do navegador no celular */
.fullscreen-app {
  min-height: 100vh;
  min-height: 100svh;            /* Safari/Chrome modernos: viewport "small" */
  min-height: 100dvh;            /* viewport dinâmico */
  height: auto;                  /* deixa crescer */
}




/* ===== Ajustes para telas pequenas ===== */
@media (max-width: 480px) {
  .top-section {
    padding-top: 16px;   /* menos espaço */
  }

  .logo-circle {
    width: 110px;        /* diminui logo */
    height: 110px;
  }

  .main-title {
    font-size: 2.2rem;   /* diminui título */
    line-height: 1.05;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .main-button {
    padding: 16px 18px;  /* botão mais compacto */
    width: min(92vw, 360px);
  }

  .bottom-section {
    padding-bottom: 18px; /* garante respiro */
  }
}
