﻿:root {
  --ff-navy: #12344d;
  --ff-navy-dark: #0e2738;
  --ff-blue: #1f5f93;
  --ff-orange: #f28c1f;
  --ff-orange-dark: #d67200;
  --ff-bg: #f7f9fc;
  --ff-surface: #ffffff;
  --ff-border: #dce4ee;
  --ff-text: #213443;
  --ff-muted: #647b8f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ff-text);
  background: var(--ff-bg);
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  color: var(--ff-navy);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.32rem;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.7rem 1rem 2.4rem;
}

.docs-nudge {
  max-width: 1180px;
  margin: 0 auto 1.4rem;
  padding: 0 0.2rem 0.25rem;
  overflow-x: auto;
}

.docs-nudge__title {
  margin-bottom: 0.62rem;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ff-navy);
}

.docs-nudge__items {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 640px;
  padding-top: 0.9rem;
}

.docs-nudge__items::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: #1d2a35;
}

.docs-nudge__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.docs-nudge__stem {
  width: 2px;
  height: 14px;
  margin-bottom: 0.38rem;
  border-radius: 999px;
  background: #1d2a35;
}

.docs-nudge__word {
  display: inline-block;
  color: #191919;
  font-size: clamp(0.93rem, 1.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    color 0.24s ease,
    transform 0.24s ease;
}

.docs-nudge__word.is-active {
  color: var(--ff-orange);
  transform: scale(1.13);
}

.page-header {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ff-navy);
}

.page-header h1 {
  font-size: clamp(1.52rem, 2.6vw, 2.1rem);
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--ff-navy);
}

.page-header p {
  color: var(--ff-navy);
  max-width: 64ch;
  margin: 0 auto;
}

.layout-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 760px) 300px;
  gap: 1rem;
  justify-content: center;
  align-items: start;
}

.form-column,
.right-rail-shell,
#right-rail {
  min-width: 0;
}

.form-column {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.layout-grid > #dynamic-panels {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.right-rail-shell {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ff-navy);
}

.form-card,
#right-rail {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: 10px;
}

.form-card {
  padding: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 0.82rem;
}

.field-group label {
  font-weight: 600;
  color: var(--ff-navy);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  color: var(--ff-text);
}

textarea {
  resize: vertical;
}

input[type="file"]::file-selector-button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  margin-right: 0.65rem;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  margin-right: 0.65rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #f6a84a, #d46f00);
}

.field-help {
  font-size: 0.85rem;
  color: var(--ff-muted);
}

.attachments-list {
  list-style: none;
  margin: 0.12rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  padding: 0.46rem 0.56rem;
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  background: #ffffff;
}

.attachment-name {
  font-size: 0.88rem;
  color: var(--ff-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  border: 0;
  background: transparent;
  color: var(--ff-navy-dark);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.attachment-remove:hover {
  opacity: 0.75;
}

.checkbox-group {
  flex-direction: row;
  gap: 0.56rem;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.14rem;
  accent-color: var(--ff-blue);
}

.checkbox-group label {
  font-weight: 500;
  color: var(--ff-text);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.28rem;
}

.primary-button {
  border: 1px solid transparent;
  border-radius: 999px !important;
  padding: 1px;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff !important;
  min-width: 190px !important;
  height: auto !important;
  padding: 0.75rem 1.25rem !important;
}

.primary-button:hover {
  background: linear-gradient(135deg, #f6a84a, #d46f00);
}

.primary-button:disabled,
.primary-button.is-locked {
  background: linear-gradient(135deg, #c8ced6, #aab4c1);
  cursor: not-allowed;
  pointer-events: none;
}

.primary-button:disabled:hover,
.primary-button.is-locked:hover {
  background: linear-gradient(135deg, #c8ced6, #aab4c1);
}

.primary-button:disabled p,
.primary-button.is-locked p {
  opacity: 0.92;
}

.primary-button p {
  margin: 0;
}

.text-white {
  color: #ffffff;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.submit-feedback {
  font-weight: 700;
}

.submit-feedback.is-success {
  color: #14653f;
}

.submit-feedback.is-error {
  color: #b42318;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.doc-link-button:focus-visible,
.panel-close:focus-visible {
  outline: 3px solid rgba(18, 52, 77, 0.22);
  outline-offset: 1px;
}

.right-rail-shell {
  padding-top: 0;
  display: grid;
  gap: 0.62rem;
  align-content: start;
}

#dynamic-panels {
  position: relative;
  top: 0;
  justify-self: center;
  width: 240px; /*min(19.5rem, 100%);*/
  max-width: 100%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.74rem;
  pointer-events: auto;
}

.info-panel {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  border-radius: 14px;
  padding: 1.3rem 1.35rem;
  min-height: 154px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 34px rgba(214, 114, 0, 0.34);
  animation: panel-enter 0.24s ease-out;
}

.info-panel h3 {
  margin-bottom: 0.28rem;
  color: #ffffff;
  font-size: 1.08rem;
}

.info-panel p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.44;
}

.info-panel[data-panel="partner"] {
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
}

.info-panel[data-panel="attachments"] {
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
}

.info-panel[data-panel="confirmation"] {
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
}

.panel-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 10px;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

#right-rail {
  background: linear-gradient(165deg, #14344d 0%, #123049 55%, #0d273b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(10, 27, 41, 0.28);
  padding: 0.8rem 0.82rem;
}

#documentation-steps {
  display: grid;
  gap: 0.55rem;
}

#documentation-steps .section-title {
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.single-transaction-box {
  margin: 0;
  padding: 0.62rem 0.74rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 20px rgba(214, 114, 0, 0.3);
}

.doc-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.72rem 0.72rem;
  display: grid;
  gap: 0.34rem;
}

.doc-tag {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.doc-card p {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.93);
}

.doc-card ul {
  font-size: 0.82rem;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.93);
}

.steps-intro {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.steps-list {
  display: grid;
  gap: 0.46rem;
}

.step-item {
  display: grid;
  gap: 0.16rem;
  padding-top: 0.44rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.34);
}

.step-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-item h3 {
  font-size: 0.86rem;
  line-height: 1.26;
  color: #ffffff;
}

.step-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}

.step-item-heading h3 {
  margin: 0;
}

.step-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.step-info-button {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(6, 17, 26, 0.2);
  border-radius: 999px;
  background: #c7d0d9;
  color: #1f3342;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.step-info-button:hover {
  background: #b7c3cf;
}

.step-info-tooltip {
  position: absolute;
  top: calc(100% + 0.34rem);
  right: 0;
  z-index: 20;
  width: min(15rem, calc(100vw - 2rem));
  padding: 0.46rem 0.52rem;
  border: 1px solid rgba(19, 49, 71, 0.2);
  border-radius: 8px;
  background: #eef2f6;
  color: #16344c;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: pre-line;
  box-shadow: 0 8px 16px rgba(8, 27, 41, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.step-info.is-open .step-info-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.step-info.is-open .step-info-button {
  background: #aab7c3;
}

@media (hover: hover) and (pointer: fine) {
  .step-info:hover .step-info-tooltip,
  .step-info:focus-within .step-info-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.step-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.93);
}

.step-item ul {
  columns: 2;
  column-gap: 0.85rem;
  padding-left: 0.92rem;
}

.step-item li {
  break-inside: avoid;
  margin-top: 0.08rem;
}

.doc-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(135deg, var(--ff-orange), var(--ff-orange-dark));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.doc-link-button:hover {
  background: linear-gradient(135deg, #f6a84a, #d46f00);
  color: #ffffff;
}

.doc-card--requirements {
  border-left: 4px solid rgba(255, 255, 255, 0.82);
}

.obs-callout {
  margin-top: 0.2rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .docs-nudge {
    margin-bottom: 1.02rem;
    padding: 0;
    overflow-x: clip;
  }

  .docs-nudge__title {
    margin-bottom: 0.38rem;
    font-size: 0.86rem;
  }

  .docs-nudge__items {
    gap: 0.22rem;
    min-width: 0;
    padding-top: 0.62rem;
  }

  .docs-nudge__items::before {
    height: 2px;
  }

  .docs-nudge__stem {
    height: 10px;
    margin-bottom: 0.23rem;
  }

  .docs-nudge__word {
    max-width: 4.3rem;
    font-size: 0.66rem;
    line-height: 1.14;
  }

  .docs-nudge__word.is-active {
    transform: scale(1.06);
  }

  .layout-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-column,
  .layout-grid > #dynamic-panels,
  .right-rail-shell {
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
  }

  .right-rail-shell {
    order: 1;
  }

  .form-column {
    order: 2;
  }

  .layout-grid > #dynamic-panels {
    order: 3;
  }

  #dynamic-panels {
    position: fixed;
    top: 27% !important;
    left: 10%;
    transform: translateX(-10%);
    margin-bottom: 0;
    justify-self: center;
    width: min(20.25rem, calc(100vw - 1rem));
    z-index: 70;
    gap: 0.52rem;
  }

  .info-panel {
    min-height: 0;
    padding: 0.82rem 0.88rem;
    border-radius: 11px;
    gap: 0.58rem;
    box-shadow: 0 12px 24px rgba(214, 114, 0, 0.32);
  }

  .info-panel h3 {
    margin-bottom: 0.16rem;
    font-size: 0.9rem;
  }

  .info-panel p {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .panel-close {
    width: 1.62rem;
    height: 1.62rem;
    font-size: 0.8rem;
  }

  .step-item ul {
    columns: 1;
  }

  .step-info-tooltip {
    left: auto;
    right: 0;
    width: min(14.5rem, calc(100vw - 2.2rem));
  }
}
