:root{
  --bg: #f5f6fa;
  --card: #ffffff;
  --brand: #3F2430;
  --brand-600: #3F2430;
  --text: #222222;
  --muted: #6b7280;
  --ring: rgba(63,36,48,0.35);
  --border: #e5e7eb;
  --success-bg: #e6ffed;
  --success: #2e7d32;
  --error-bg: #ffe6e6;
  --error: #c62828;
  --table-even: #fafafa;
  --table-odd: #f0f0f0;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, rgba(63,36,48,0.06), rgba(63,36,48,0.03) 35%, transparent 60%), var(--bg);
}

.header-img{
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 2.2s ease-in-out forwards;
  box-shadow: var(--shadow-sm);
}
@keyframes fadeIn { to { opacity: 1; } }

.wrap{
  max-width: 960px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.form-container{
  background: var(--card);
  max-width: 780px;
  margin: 24px auto 0;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

h1{
  margin: 0 0 6px 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: 0.2px;
  text-align: left;
}
.subtitle{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 15px;
}

label{
  font-weight: 600;
  display: block;
  margin-top: 18px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select{
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
  outline: none;
}
textarea{ min-height: 110px; resize: vertical; }

input:focus,
textarea:focus,
select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-inline{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  user-select: none;
}
.checkbox-inline input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(1.1em),
    calc(100% - 13px) calc(1.1em),
    calc(100% - 2.5em) 0.5em;
  background-size: 6px 6px, 6px 6px, 1px 1.8em;
  background-repeat: no-repeat;
}

.info-label{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.info-icon{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease;
  user-select: none;
}
.info-icon:active{ transform: scale(0.96); }

.info-box{
  display: none;
  background: #f8f5ff;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
  border-left: 4px solid var(--brand);
  color: #3f3a4a;
}

table{
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
th, td{
  padding: 10px 12px;
  text-align: center;
  font-size: 15px;
}
th:first-child, td:first-child{ text-align: left; }
thead th{
  background: #f7f7fb;
  font-weight: 700;
  color: #3a3a3a;
}

.radio{
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.section-title{
  margin-top: 26px;
  font-weight: 700;
  color: var(--brand);
}

.muted{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.success-message{
  background-color: var(--success-bg);
  border: 1px solid var(--success);
  padding: 18px;
  border-radius: 10px;
  color: var(--success);
  font-size: 16px;
  margin: 0 0 18px 0;
  text-align: center;
}

.error-message{
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

button{
  margin-top: 26px;
  padding: 14px 20px;
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .06s ease, box-shadow .15s ease, background-color .15s ease;
}
button:hover{ background-color: var(--brand-600); }
button:active{ transform: translateY(1px); }

.hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 680px){
  .form-container{ padding: 22px; }
  .row{ grid-template-columns: 1fr; gap: 12px; }
  h1{ font-size: 24px; }
  button{ font-size: 15px; }
}

/* MINIATÚRA STOLA – PRAVÁ STRANA */
#mini-stol {
  width: 110px;
  height: 110px;
  position: relative;
  display: none; /* zobrazí sa až keď existuje miesto */
  flex-shrink: 0;
}

.mini-table {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: white;
  border: 3px solid #3b1f2b;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3b1f2b;
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  left: 10px;
  top: 10px;
}

.mini-seat {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b1f2b;
  color: white;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
}
