/* GROW-005 — Self-Serve Public Instant Demo (/dokimase).
 *
 * Page-scoped styles, kept OUT of app.css (owned elsewhere). Airbnb-inspired:
 * generous whitespace, soft shadows, rounded cards, one warm accent. Mobile-
 * first; everything scales up at the 720px breakpoint.
 */

.dokimase-hero {
  /* Brand dark green + gold (was Airbnb red — clashed with the rest of the
     site which is built on dark green). Keeps the same role: one warm accent. */
  --dokimase-accent: #0b4f55;
  --dokimase-accent-dark: #08383d;
  --dokimase-ink: #1d1d22;
  --dokimase-muted: #6b6b73;
  --dokimase-line: #e6e6ea;
  --dokimase-bg: #fbfbfc;
  background:
    radial-gradient(circle at 50% -10%, rgba(11, 79, 85, 0.08), transparent 55%),
    var(--dokimase-bg);
  padding: 2.5rem 1.1rem 4rem;
}

.dokimase-container {
  max-width: 620px;
  margin: 0 auto;
}

.dokimase-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 79, 85, 0.1);
  color: var(--dokimase-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dokimase-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dokimase-ink);
}

.dokimase-subtitle {
  margin: 0 0 1.8rem;
  color: var(--dokimase-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.dokimase-capacity {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff6e8;
  border: 1px solid #f4d9a8;
  color: #7a4a09;
}

.dokimase-capacity p {
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

/* --- Card --- */
.dokimase-card {
  background: #fff;
  border: 1px solid var(--dokimase-line);
  border-radius: 22px;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 30, 0.35);
  overflow: hidden;
}

.dokimase-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--dokimase-line);
  background: #f7f7f9;
}

.dokimase-tab {
  flex: 1;
  padding: 1rem 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dokimase-muted);
  cursor: pointer;
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}

.dokimase-tab.is-active {
  color: var(--dokimase-ink);
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--dokimase-accent);
}

.dokimase-tab:focus-visible {
  outline: 2px solid var(--dokimase-accent);
  outline-offset: -2px;
}

/* --- Panels (forms) --- */
.dokimase-panel {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.4rem 1.8rem;
}

.dokimase-panel.is-active {
  display: flex;
}

.dokimase-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dokimase-field > span {
  font-weight: 600;
  color: var(--dokimase-ink);
  font-size: 0.95rem;
}

.dokimase-field > span small {
  color: var(--dokimase-muted);
  font-weight: 400;
}

.dokimase-field input[type="text"],
.dokimase-field input[type="url"] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--dokimase-line);
  border-radius: 12px;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--dokimase-ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dokimase-field input:focus {
  outline: none;
  border-color: var(--dokimase-accent);
  box-shadow: 0 0 0 3px rgba(11, 79, 85, 0.15);
}

.dokimase-file input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px dashed var(--dokimase-line);
  border-radius: 12px;
  background: #fafafb;
  font-size: 0.95rem;
  cursor: pointer;
}

.dokimase-hint {
  color: var(--dokimase-muted);
  font-size: 0.82rem;
}

/* honeypot — visually hidden but reachable to bots */
.dokimase-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Buttons --- */
.dokimase-button {
  display: inline-block;
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 12px;
  background: var(--dokimase-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.dokimase-button:hover {
  background: var(--dokimase-accent-dark);
}

.dokimase-button:active {
  transform: translateY(1px);
}

.dokimase-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.dokimase-button--ghost {
  background: transparent;
  color: var(--dokimase-accent-dark);
  border: 1.5px solid var(--dokimase-accent);
}

.dokimase-button--ghost:hover {
  background: rgba(11, 79, 85, 0.06);
}

.dokimase-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #fdeaea;
  border: 1px solid #f3c4c4;
  color: #9b1c1c;
  font-size: 0.9rem;
}

/* --- Processing / ready states --- */
.dokimase-processing,
.dokimase-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2.6rem 1.5rem;
}
/* The JS toggles these via the `hidden` attribute. Without this guard the
   class rule above (display:flex) beats the UA `[hidden]{display:none}`, so
   BOTH the spinner and the «Έτοιμο!» state stayed visible at once and the dead
   «Δες» link (href="#") jumped to the top of the page. Keep this last. */
.dokimase-processing[hidden],
.dokimase-ready[hidden],
.dokimase-panel[hidden] {
  display: none;
}

.dokimase-processing h2,
.dokimase-ready h2 {
  margin: 0.4rem 0 0;
  font-size: 1.4rem;
  color: var(--dokimase-ink);
}

.dokimase-processing p,
.dokimase-ready p {
  margin: 0;
  color: var(--dokimase-muted);
  line-height: 1.5;
}

.dokimase-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(11, 79, 85, 0.2);
  border-top-color: var(--dokimase-accent);
  animation: dokimase-spin 0.9s linear infinite;
}

@keyframes dokimase-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dokimase-spinner {
    animation-duration: 2.4s;
  }
}

.dokimase-ready__check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e7f7ee;
  color: #1a8a4f;
  font-size: 1.9rem;
  line-height: 54px;
}

.dokimase-ready .dokimase-button {
  width: 100%;
  max-width: 320px;
  margin-top: 0.4rem;
}

.dokimase-fineprint {
  margin: 1.4rem 0 0;
  color: var(--dokimase-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 720px) {
  .dokimase-hero {
    padding: 4rem 1.5rem 5rem;
  }

  .dokimase-panel {
    padding: 2rem 2.2rem 2.3rem;
  }
}
