/* =========================================================
   eNOS — Atmosferix — mobile-first responsive styles
   Brand: #0093C9 (blue), #414042 (dark gray)
   ========================================================= */

:root {
  --primary:        #0093C9;
  --primary-dark:   #007aaa;
  --primary-light:  #e6f5fb;
  --dark:           #414042;
  --text:           #333333;
  --text-muted:     #6c757d;
  --border:         #dee2e6;
  --bg:             #f8f9fa;
  --white:          #ffffff;
  --success:        #28a745;
  --danger:         #dc3545;
  --warning:        #ffc107;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:      0 4px 24px rgba(0,0,0,.12);
  --transition:     .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 38px;
  width: auto;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
  margin: 0 .85rem;
}

.header-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1.1;
}

.product-sub {
  font-size: .65rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

/* ── Layout ──────────────────────────────────────────────── */
.main {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* ── Stepper ─────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.stepper-step.done::after,
.stepper-step.active::after {
  background: var(--primary);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
  transition: var(--transition);
}

.stepper-step.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.stepper-step.done .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.step-label {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: .3rem;
  text-align: center;
  white-space: nowrap;
}

.stepper-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card-title .icon { font-size: 1.2rem; }

/* ── Location card ───────────────────────────────────────── */
.location-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 .5rem;
  gap: .75rem;
}

.location-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: var(--transition);
}

.location-icon-wrap.success { background: #d4edda; color: var(--success); }
.location-icon-wrap.error   { background: #f8d7da; color: var(--danger);  }
.location-icon-wrap.warning { background: #fff3cd; color: #856404; }

.location-text {
  font-size: .95rem;
  color: var(--text-muted);
}

.location-coords {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover:not(:disabled) { background: var(--primary-light); }

.btn-full { width: 100%; }

/* ── Form elements ───────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}

.form-label .required { color: var(--danger); margin-left: .2rem; }

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,147,201,.15);
}

.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ── Rating list (jakost / neprijetnost) ─────────────────── */
.rating-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.rating-option { display: none; }

.rating-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.rating-label:hover { border-color: var(--primary); background: var(--primary-light); }

.rating-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.rating-option:checked + .rating-label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.rating-option:checked + .rating-label .rating-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Checkbox ────────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.5;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}

.alert-info    { background: var(--primary-light); color: #005f84; border-left: 3px solid var(--primary); }
.alert-danger  { background: #f8d7da; color: #721c24; border-left: 3px solid var(--danger); }
.alert-success { background: #d4edda; color: #155724; border-left: 3px solid var(--success); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 3px solid var(--warning); }

/* ── Step panels ─────────────────────────────────────────── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ── Nav buttons ─────────────────────────────────────────── */
.step-nav {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.step-nav .btn { flex: 1; }

/* ── Success screen ──────────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.success-screen h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: .75rem;
}

.success-screen p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

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

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.site-footer a { color: var(--primary); text-decoration: none; }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (min-width: 480px) {
  .card { padding: 2rem; }
}

/* ── reCAPTCHA ───────────────────────────────────────────── */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 .25rem;
}

/* Preview placeholder only */
.recaptcha-placeholder {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f9f9f9;
  padding: .9rem 1.2rem;
  width: 300px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.recaptcha-placeholder input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: #4a90d9;
  cursor: pointer;
}

.recaptcha-placeholder .rc-label {
  font-size: .88rem;
  color: #333;
  flex: 1;
}

.recaptcha-placeholder .rc-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .55rem;
  color: #999;
  gap: .15rem;
  flex-shrink: 0;
}

.recaptcha-placeholder .rc-logo img {
  width: 32px;
  height: 32px;
}

@media (max-width: 360px) {
  .step-label { display: none; }
  .product-name { font-size: 1rem; }
  .header-logo { height: 30px; }
}
