﻿.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}
:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --border: #d8d8db;
  --text: #17191d;
  --muted: #555d68;
  --brand: #c8102e;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  --radius-card: 18px;
  --radius-choice: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% 10%, #f7f7f8 0, var(--bg) 48%, #efeff1 100%);
}

.page {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 40px 16px 28px;
  gap: 24px;
}

.brand {
  text-align: center;
  line-height: 1;
  user-select: none;
}

.brand-main {
  display: block;
  font-size: 56px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--brand);
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 35px;
  font-weight: 500;
  color: #62666d;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
}

.logo {
  display: block;
  margin: 0 auto;
  height: 48px;
  width: auto;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 64px 50px 54px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.subtitle {
  margin: 16px auto 34px;
  max-width: 440px;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  color: #2a2f36;
}

.choice-list {
  display: grid;
  gap: 14px;
}

.choice {
  border: 2px solid #aeb3bb;
  border-radius: var(--radius-choice);
  padding: 16px 18px;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.choice:hover {
  border-color: #7e8692;
}

.choice.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.choice-copy {
  flex: 1;
}

.choice-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
}

.choice-desc {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.choice-icon {
  width: 30px;
  height: 30px;
  border: 2px solid #989ea7;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.choice-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  top: 8px;
  left: 9px;
  transform: rotate(45deg);
  color: #989ea7;
}

.choice.active .choice-icon {
  border-color: var(--brand);
}

.choice.active .choice-icon::after {
  color: var(--brand);
}

.cta {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  height: 54px;
  cursor: pointer;
  transition: filter 0.18s ease;
}

.cta:hover {
  filter: brightness(0.96);
}

.help-link {
  display: block;
  margin-top: 24px;
  text-align: center;
  color: var(--text);
  font-size: 17px;
}

footer {
  color: #525760;
  font-size: 17px;
  text-align: center;
}

/* ---- Regulamin / Terms ---- */
.terms-wrapper {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

.terms-checkbox {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.terms-link {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.terms-link:hover {
  text-decoration: underline;
}

.terms-error {
  margin: 0;
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
}

.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

@media (max-width: 900px) {
  .brand-main {
    font-size: 48px;
  }

  .brand-sub {
    font-size: 31px;
  }

  .panel {
    padding: 38px 24px 30px;
  }

  h1 {
    font-size: 34px;
  }

  .choice-title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 17px;
  }

  .cta {
    font-size: 18px;
  }
}

@media (max-width: 540px) {
  .page {
    padding: 24px 12px 20px;
  }

  .brand-main {
    font-size: 38px;
  }

  .brand-sub {
    font-size: 24px;
  }

  .choice {
    padding: 14px;
  }

  .choice-title {
    font-size: 28px;
  }

  .choice-desc {
    font-size: 14px;
  }
}