.start-header .account-link,
.main-nav .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(5, 17, 29, .3);
}

.start-header .account-link:hover,
.start-header .account-link:focus-visible,
.main-nav .account-link:hover,
.main-nav .account-link:focus-visible {
  border-color: #f42427 !important;
  background: #f42427;
}

.account-required-note {
  max-width: 720px;
  margin: 34px auto -24px;
  padding: 20px 24px;
  border-left: 5px solid #f42427;
  background: #fff;
  box-shadow: 0 5px 24px rgba(7, 21, 35, .08);
  color: #4f5b64;
  font-size: 16px;
  line-height: 1.6;
}

.account-required-note strong {
  display: block;
  margin-bottom: 4px;
  color: #071523;
  font-size: 18px;
}

@media (max-width: 800px) {
  .start-header .account-link,
  .main-nav .account-link { margin-top: 8px; }
  .account-required-note { margin: 22px 18px -14px; }
}
.customer-document-links a:nth-of-type(n+2){display:none}
.customer-form-list{display:grid;gap:18px}.customer-form-card{border:1px solid #dce2e6;border-radius:12px;overflow:hidden;background:#fff}.customer-form-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px;border-bottom:1px solid #e3e7ea;background:#f7f9fa}.customer-form-card h3{margin:7px 0}.customer-form-card p{margin:0}.customer-form-description{padding:18px 20px 0;color:#5f6c76}.customer-dynamic-form{padding:20px}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.customer-form-section{grid-column:1/-1;margin-top:8px;padding-bottom:8px;border-bottom:2px solid #192733}.customer-form-section h4{margin:0 0 5px;font-size:20px}.customer-form-section p{color:#68747d}.customer-form-field{display:block}.customer-form-field.full,.form-radio-group{grid-column:1/-1}.customer-form-field>span,.form-radio-group legend{display:block;margin-bottom:7px;font-size:12px;font-weight:800}.customer-form-field em{color:#c8242d}.customer-form-field input:not([type="checkbox"]):not([type="radio"]),.customer-form-field textarea,.customer-form-field select{display:block;width:100%;padding:12px;border:1px solid #cbd3d9;border-radius:6px;background:#fff}.customer-form-field small{display:block;margin-top:6px;color:#66727c}.form-radio-group{display:flex;flex-wrap:wrap;gap:12px;padding:15px;border:1px solid #dce2e6;border-radius:8px}.form-radio-group legend{padding:0 6px}.form-consent{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #dce2e6;border-radius:8px;background:#f7f9fa}.form-consent>input{width:20px;height:20px}.customer-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-locked-note{margin-top:15px;padding:12px;border-radius:7px;background:#eef2f4;color:#52606a}@media(max-width:760px){.customer-form-grid{grid-template-columns:1fr}.customer-form-card>header{flex-direction:column}.customer-form-actions{flex-direction:column}}

/* Formularze rodzica */
#my-forms-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce3e8;
  background: #f4f6f8;
  box-shadow: 0 14px 40px rgba(7, 21, 35, .08);
}

#my-forms-panel > h2,
#my-forms-panel > .panel-intro {
  margin-right: 34px;
  margin-left: 34px;
}

#my-forms-panel > h2 {
  margin-top: 32px;
  margin-bottom: 7px;
}

#my-forms-panel > .panel-intro {
  margin-bottom: 28px;
  color: #5d6972;
  font-size: 15px;
}

#my-forms {
  padding: 0 34px 34px;
}

.customer-form-list {
  gap: 24px;
}

.customer-form-card {
  border: 1px solid #d8e0e5;
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(7, 21, 35, .07);
}

.customer-form-card > header {
  position: relative;
  align-items: center;
  padding: 25px 30px;
  border-bottom-color: #dfe5e9;
  background: linear-gradient(110deg, #f8fafb 0%, #fff 70%);
}

.customer-form-card > header:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--red);
  content: "";
}

.customer-form-card > header .badge {
  padding: 6px 9px;
  border-radius: 2px;
  background: #e8f6ed;
  color: #146d39;
  letter-spacing: .045em;
}

.customer-form-card h3 {
  margin: 10px 0 5px;
  color: #071523;
  font-size: 24px;
  line-height: 1.15;
}

.customer-form-card > header p {
  color: #66727b;
  font-size: 13px;
}

.customer-form-card > header .document-status {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 2px;
  background: #edf1f3;
  color: #53616b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-form-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.customer-form-toggle {
  min-width: 142px;
}

.customer-form-collapsible {
  border-top: 1px solid #dfe5e9;
}

.customer-form-card > header .status-draft {
  background: #fff1d9;
  color: #835104;
}

.customer-form-card > header .status-submitted {
  background: #e9f2ff;
  color: #285e9e;
}

.customer-form-card > header .status-needs_correction {
  background: #fff0f0;
  color: #a32227;
}

.customer-form-card > header .status-accepted {
  background: #e7f7ed;
  color: #146d39;
}

.customer-form-description {
  margin: 0;
  padding: 22px 30px 0;
  color: #55626c;
  font-size: 14px;
  line-height: 1.65;
}

.customer-form-card > .document-review-note {
  margin: 20px 30px 0;
  padding: 14px 16px;
  border-left: 4px solid #c8242d;
  background: #fff2f2;
  color: #8f2025;
}

.customer-dynamic-form {
  padding: 30px;
}

.customer-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.customer-form-section {
  position: relative;
  margin: 8px 0 2px;
  padding: 17px 20px 16px 23px;
  border: 0;
  border-left: 4px solid var(--red);
  background: #f1f4f6;
}

.customer-form-section:first-child {
  margin-top: 0;
}

.customer-form-section h4 {
  margin: 0;
  color: #071523;
  font-size: 20px;
  line-height: 1.2;
}

.customer-form-section p {
  margin: 6px 0 0;
  color: #65717a;
  font-size: 13px;
}

.customer-form-field {
  min-width: 0;
  color: #17232d;
}

.customer-form-field > span,
.form-radio-group legend {
  margin-bottom: 9px;
  color: #24323d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1.4;
}

.customer-form-field em {
  margin-left: 3px;
  color: #d11f26;
  font-style: normal;
}

.customer-form-field input:not([type="checkbox"]):not([type="radio"]),
.customer-form-field textarea,
.customer-form-field select {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #bfc9d0;
  border-radius: 3px;
  background: #fff;
  color: #14212b;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.customer-form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.customer-form-field select {
  cursor: pointer;
}

.customer-form-field input:not([type="checkbox"]):not([type="radio"]):hover,
.customer-form-field textarea:hover,
.customer-form-field select:hover {
  border-color: #8f9ca5;
}

.customer-form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.customer-form-field textarea:focus,
.customer-form-field select:focus {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(244, 36, 39, .12);
}

.customer-form-field small {
  margin-top: 7px;
  color: #6a7680;
  font-size: 12px;
  line-height: 1.45;
}

.form-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-color: #d4dce1;
  border-radius: 3px;
  background: #fafbfc;
}

.form-radio-group legend {
  padding: 0 8px;
}

.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8dfe4;
  background: #fff;
  cursor: pointer;
}

.form-radio-group input,
.form-consent > input {
  flex: 0 0 auto;
  accent-color: var(--red);
}

.form-consent {
  align-items: flex-start;
  min-height: 64px;
  padding: 16px 18px;
  border-color: #d1d9df;
  border-radius: 3px;
  background: #f7f9fa;
  cursor: pointer;
}

.form-consent:hover {
  border-color: #9daab3;
  background: #f2f5f7;
}

.form-consent > input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

.form-consent > span {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.customer-form-actions {
  margin: 32px -30px -30px;
  padding: 20px 30px;
  border-top: 1px solid #e0e5e9;
  background: #f7f9fa;
}

.customer-form-actions button {
  min-width: 190px;
  min-height: 50px;
}

.customer-form-actions .secondary {
  border: 1px solid #c7d0d6;
  background: #fff;
  color: #152631;
}

.customer-form-actions .secondary:hover {
  border-color: #8796a0;
  background: #f1f4f6;
}

.customer-form-actions .primary {
  box-shadow: 0 6px 16px rgba(244, 36, 39, .18);
}

.form-locked-note {
  margin: 25px 0 0;
  padding: 15px 17px;
  border-left: 4px solid #6c7c87;
  border-radius: 0;
}

@media (max-width: 760px) {
  #my-forms-panel > h2,
  #my-forms-panel > .panel-intro {
    margin-right: 20px;
    margin-left: 20px;
  }

  #my-forms {
    padding: 0 20px 20px;
  }

  .customer-form-card > header,
  .customer-dynamic-form {
    padding: 22px 20px;
  }

  .customer-form-card > header {
    align-items: flex-start;
  }

  .customer-form-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .customer-form-toggle {
    width: 100%;
  }

  .customer-form-description {
    padding-right: 20px;
    padding-left: 20px;
  }

  .customer-form-grid,
  .form-radio-group {
    grid-template-columns: 1fr;
  }

  .customer-form-actions {
    margin: 28px -20px -22px;
    padding: 18px 20px;
  }

  .customer-form-actions button {
    width: 100%;
  }
}
