/* forms.app–style: centered card, soft shadows, clean typography */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a2e;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), transparent 55%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.06), transparent 55%),
    linear-gradient(180deg, #f5f7ff 0, #fbfcff 45%, #f3f9ff 100%);
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
@media (min-width: 640px) {
  body { padding: 2.5rem 2rem; }
}

.modal-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}
@media (min-width: 640px) {
  .modal-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
  color: #fff;
}
.modal-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .modal-header { padding: 1.5rem 2rem; }
}
.modal-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .modal-header h1 { font-size: 1.25rem; }
}

.modal-body {
  padding: 1.5rem;
  background: #fff;
}
@media (min-width: 640px) {
  .modal-body { padding: 2rem; }
}

.modal-body p {
  margin: 0 0 1rem;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-body p br + br,
.modal-body p:has(br:only-child) {
  margin-bottom: 1.25rem;
}

.modal-body strong {
  font-weight: 600;
  color: #1e293b;
}
.modal-body em {
  font-style: italic;
  color: #64748b;
}

/* Variant blocks – form-question style */
.modal-body p:has(strong:first-child) {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}
.modal-body p:has(strong:first-child) + p:not(:has(strong)),
.modal-body p:has(strong:first-child) + p em {
  padding-left: 0.25rem;
}

/* Sub-items (Privalumai / Trūkumai list text) */
.modal-body p:not(:has(strong)) {
  padding-left: 1rem;
  color: #475569;
  font-size: 0.9375rem;
}

.modal-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}
.modal-body ol li {
  margin-bottom: 0.35rem;
  color: #475569;
}
.modal-body ol li::marker {
  color: #94a3b8;
}

.modal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}
.modal-body ul li {
  padding-left: 0.15rem;
  margin-left: 1rem;
  margin-bottom: 0.35rem;
  color: #475569;
}
.modal-body ul li::marker {
  color: #94a3b8;
}

.pin-line {
  display: inline;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.no-underline {
  text-decoration: none;
}

.primary-button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}
.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.45);
}

.link-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(129, 140, 248, 0.5);
}
.link-badge:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #1e40af;
}