/* ============================================================
   PC TECH — tools.css
   Open-now badge · Διαγνωστικό wizard · PC health check · Ραντεβού form
   ============================================================ */

/* ============================================================
   OPEN NOW BADGE
   ============================================================ */
.openbadge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-size: 0.845rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--on-dark-line);
  color: var(--on-dark);
}
.openbadge__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--ink-mute);
  position: relative;
}
.openbadge.is-open .openbadge__dot {
  background: var(--ok-dark);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: badge-ping 2.2s var(--ease) infinite;
}
.openbadge.is-closed .openbadge__dot { background: var(--red-500); }
@keyframes badge-ping {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.openbadge__sub { color: var(--on-dark-mute); font-weight: 500; }
/* the badge also sits inside .info__row, whose <strong> is a small uppercase
   label — reset it here so the badge keeps its own voice */
.openbadge strong {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  margin: 0;
}

/* light-surface variant */
.openbadge--light {
  background: var(--paper);
  border-color: var(--line-2);
  color: var(--ink);
}
.openbadge--light.is-open .openbadge__dot { background: var(--ok); }
.openbadge--light.is-closed .openbadge__dot { background: var(--red-600); }
.openbadge--light .openbadge__sub { color: var(--ink-mute); }

/* ============================================================
   ΔΙΑΓΝΩΣΤΙΚΟ — symptom wizard
   ============================================================ */
.wiz {
  max-width: 900px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wiz__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.wiz__steps { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.wiz__step {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--paper-3);
  color: var(--ink-mute);
  transition: background-color 0.3s, color 0.3s;
}
.wiz__step.is-active { background: var(--red-600); color: #fff; }
.wiz__step.is-done { background: var(--blue-600); color: #fff; }
.wiz__line { width: 22px; height: 2px; border-radius: 2px; background: var(--paper-3); }
.wiz__back {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mute);
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wiz__back:hover { color: var(--blue-600); }
.wiz__back[hidden] { display: none; }

.wiz__body { padding: clamp(24px, 3.4vw, 38px); }
.wiz__panel[hidden] { display: none; }
.wiz__q {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.wiz__opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
}
.wiz__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 22px 16px;
  min-height: 118px;
  border-radius: var(--r);
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.wiz__opt .i { width: 27px; height: 27px; color: var(--blue-600); transition: color 0.2s; }
.wiz__opt:hover {
  border-color: var(--red-600);
  background: var(--red-100);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.wiz__opt:hover .i { color: var(--red-600); }

/* symptom list is text-led rather than icon-led */
.wiz__opts--list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wiz__opts--list .wiz__opt {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  min-height: 0;
  padding: 17px 19px;
}

/* --- result --- */
.wiz__result { display: grid; gap: 20px; }
.wiz__verdict {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--r);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.wiz__verdict .i { width: 26px; height: 26px; color: var(--blue-600); flex: none; margin-top: 2px; }
.wiz__verdict h3 { margin-bottom: 6px; }
.wiz__verdict p { font-size: 0.96rem; color: var(--ink-soft); }

.wiz__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.wiz__fact {
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.wiz__fact strong {
  display: block;
  font-family: var(--display);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.wiz__fact span {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--blue-700);
}

.wiz__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wiz__note { font-size: 0.83rem; color: var(--ink-mute); }

/* ============================================================
   PC HEALTH CHECK
   ============================================================ */
.health {
  background: var(--blue-900);
  border-radius: var(--r-xl);
  padding: clamp(38px, 5.4vw, 74px) clamp(26px, 4vw, 52px);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.health::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.30), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}
.health > * { position: relative; }

.health__intro { max-width: 640px; margin-inline: auto; text-align: center; }
.health__intro h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  color: #fff;
  margin-bottom: 12px;
}
.health__intro p { color: var(--on-dark-soft); font-size: 1rem; margin-bottom: 26px; }

.health__stage[hidden] { display: none; }

/* running state */
.health__running { text-align: center; padding-block: 18px; }
.health__track {
  max-width: 420px;
  margin: 0 auto 16px;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.health__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue-400), var(--red-500));
  transition: width 0.35s var(--ease);
}
.health__status { font-family: var(--mono); font-size: 0.88rem; color: var(--blue-300); }

/* results */
.health__result { display: grid; grid-template-columns: auto 1fr; gap: clamp(26px, 4vw, 46px); align-items: center; }

.dial { position: relative; width: 190px; height: 190px; margin-inline: auto; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: rgba(255,255,255,0.13); stroke-width: 13; }
.dial__arc {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 13;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out), stroke 0.6s;
}
.dial__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial__num {
  font-family: var(--display);
  font-size: 3.15rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}
.dial__of { font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark-mute); }

.health__verdict h4 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.health__verdict p { color: var(--on-dark-soft); margin-bottom: 20px; }

.health__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.spec {
  padding: 15px 17px;
  border-radius: var(--r);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--on-dark-line);
}
.spec strong {
  display: block;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 5px;
}
.spec span {
  font-family: var(--mono);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--on-dark);
  word-break: break-word;
}
.spec span.na { color: var(--on-dark-mute); font-style: italic; }

.health__privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin-top: 26px;
  font-size: 0.83rem;
  color: var(--on-dark-mute);
}
.health__privacy .i { color: var(--ok-dark); }

/* ============================================================
   ΡΑΝΤΕΒΟΥ FORM — collects, then hands off. Nothing is submitted.
   ============================================================ */
.book {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.2vw, 36px);
  box-shadow: var(--shadow);
}
.book h3 { margin-bottom: 7px; }
.book__sub { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 24px; }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(27, 79, 168, 0.14);
}
.field textarea { resize: vertical; min-height: 92px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 14px; }
.field--row > div { display: grid; gap: 7px; }

/* native select arrow is OS-themed — replace it so it matches everywhere */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2378859C'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.book__send { margin-top: 22px; }
.book__hint { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 13px; }
.book__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.book__way {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  background: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.book__way:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); transform: translateY(-2px); }
.book__way--call { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.book__way--call:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.book__way .i { width: 1.1em; height: 1.1em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .health__result { grid-template-columns: 1fr; text-align: center; }
  .dial { width: 168px; height: 168px; }
  .health__verdict .btn { margin-inline: auto; }
}
@media (max-width: 560px) {
  .field--row { grid-template-columns: 1fr; }
  .wiz__opts { grid-template-columns: 1fr 1fr; }
  .wiz__opts--list { grid-template-columns: 1fr; }
}
