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

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.progress-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-step.active {
  border-color: #073351;
  background: #073351;
  color: #fff;
}

.progress-step.done {
  border-color: #073351;
  background: #073351;
  color: #fff;
}

.progress-line {
  height: 2px;
  flex: 1;
  max-width: 60px;
  background: #d1d5db;
  transition: background 0.3s ease;
}

.progress-line.done {
  background: #073351;
}

.step {
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #2c3e50;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
}

.type-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.type-card:hover, .type-card:focus {
  border-color: #073351;
  box-shadow: 0 4px 20px rgba(7, 51, 81, 0.12);
  transform: translateY(-2px);
}

.type-card:active {
  transform: translateY(0);
}

.type-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #073351;
  margin-bottom: 8px;
}

.type-card-desc {
  font-size: 14px;
  color: #6b7280;
  font-weight: 300;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #073351;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

.hint {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 300;
}

.toggle-group {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 14px 12px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.toggle-btn.active {
  background: #073351;
  color: #fff;
}

.product-row {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
}

.product-row .btn-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.product-row .btn-remove:hover {
  color: #dc2626;
}

.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.btn-next, .btn-submit {
  background: #073351;
  color: #fff;
  width: 100%;
}

.btn-next:hover, .btn-submit:hover {
  background: #0a4568;
}

.btn-next:disabled, .btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-back {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-back:hover {
  border-color: #9ca3af;
}

.btn-add {
  background: transparent;
  color: #073351;
  border: 2px dashed #d1d5db;
  width: 100%;
  margin-top: 8px;
}

.btn-add:hover {
  border-color: #073351;
  background: #f0f7ff;
}

.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.step-nav .btn-back {
  flex: 0 0 auto;
}

.step-nav .btn-next,
.step-nav .btn-submit {
  flex: 1;
}

.summary-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: #6b7280;
  font-weight: 400;
}

.summary-value {
  color: #111827;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.consent-group {
  margin-bottom: 24px;
  text-align: center;
}

.consent-group .checkbox-label {
  display: inline-flex;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.checkbox-label a {
  color: #073351;
  text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #073351;
  vertical-align: middle;
}

.checkbox-label span {
  line-height: 1;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-message {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.bank-account-recommended label::after {
  content: ' (doporučujeme vyplnit)';
  color: #073351;
  font-weight: 400;
  font-size: 12px;
}

@media (min-width: 768px) {
  #app {
    padding: 40px 24px;
  }
  .step-title {
    font-size: 32px;
  }
  .type-cards {
    flex-direction: row;
  }
  .type-card {
    flex: 1;
    padding: 36px 24px;
  }
}
