﻿:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: #0f172a;
  background: #f1f5f9;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 8% 10%, rgba(14,165,233,.14), transparent 35%), radial-gradient(circle at 87% 17%, rgba(2,132,199,.14), transparent 42%), linear-gradient(165deg,#f8fbff 0%,#edf5ff 48%,#e6effa 100%);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .16;
  background-image: linear-gradient(to right, rgba(15,23,42,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 100px 100px;
}

.screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.panel-hero {
  margin: 0 auto 18px;
  max-width: 760px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.72);
  box-shadow: 0 28px 70px rgba(15,23,42,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(186,230,253,.8);
  background: rgba(255,255,255,.9);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #334155;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(14,165,233,.14);
}

.hero-title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 800;
}

.hero-subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: #475569;
}

.container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,.26);
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 62px rgba(15,23,42,.08);
  padding: 18px 18px 6px;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
}

#zapis-form {
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: .01em;
}

input[type="text"], input[type="date"], input[type="tel"], input[type="email"], select {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.42);
  background: rgba(255,255,255,.96);
  color: #0f172a;
  font-size: 17px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 30px rgba(15,23,42,.075);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

input:focus, select:focus {
  border-color: #0284c7;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 14px 32px rgba(15,23,42,.11);
}

input::placeholder, select {
  color: #94a3b8;
}

select option {
  color: #334155;
  background: #fff;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0284c7;
  flex-shrink: 0;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

button {
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(14,165,233,.62);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(180deg,#22d3ee 0%,#0ea5e9 20%,#0284c7 64%,#075985 100%);
  box-shadow: 0 20px 40px rgba(2,132,199,.42);
  cursor: pointer;
  transition: all .2s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 24px 48px rgba(2,132,199,.48);
}

button:disabled {
  border-color: #94a3b8;
  background: linear-gradient(180deg,#e8eef6 0%,#c9d6e3 100%);
  color: #475569;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.error-message {
  color: #e11d48;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  text-align: left;
}

.success-message {
  padding: 26px 12px 30px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.confirm-message {
  font-size: 13px;
  color: #64748b;
  margin-top: 14px;
  text-align: left;
  line-height: 1.35;
}

#confirm-buttons {
  display: none;
  margin-top: 16px;
}

#confirm-buttons p {
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

#confirm-buttons button {
  margin: 4px;
  width: calc(50% - 8px);
  display: inline-block;
}

.alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
  display: none;
  text-align: left;
  font-size: 14px;
  color: #be123c;
}

@media (max-width: 768px) {
  .screen { padding: 16px 10px 24px; }
  .panel-hero { border-radius: 18px; padding: 16px 14px 14px; margin-bottom: 12px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .container { border-radius: 18px; padding: 14px 12px 2px; }
  h2 { font-size: 18px; }
  input[type="text"], input[type="date"], input[type="tel"], input[type="email"], select { height: 50px; font-size: 16px; }
}
