:host {
  --ptf-purple: #4b2d8f;
  --ptf-purple-dark: #321c6b;
  --ptf-purple-mid: #6a42c2;
  --ptf-purple-light: #f2edff;
  --ptf-green: #2ecc8e;
  --ptf-green-dark: #1da873;
  --ptf-gold: #f5a623;
  --ptf-white: #ffffff;
  --ptf-off-white: #f8f7ff;
  --ptf-gray-50: #f4f4f6;
  --ptf-gray-100: #e8e7ee;
  --ptf-gray-400: #9490a8;
  --ptf-gray-700: #3d3854;
  --ptf-ink: #1a1530;
  --ptf-border: rgba(75, 45, 143, 0.12);
  --ptf-shadow-card: 0 2px 20px rgba(75, 45, 143, 0.1);
  --ptf-shadow-hover: 0 8px 40px rgba(75, 45, 143, 0.18);
  --ptf-shadow-btn: 0 4px 18px rgba(46, 204, 142, 0.35);
  color: var(--ptf-ink);
  background: var(--ptf-off-white);
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--ptf-off-white);
  font-size: 16px;
  line-height: 1.6;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
select,
textarea {
  width: 100%;
}

a {
  color: inherit;
}

.ptf-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.ptf-header {
  background: var(--ptf-purple-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ptf-logo {
  font-family: "Sora", "Avenir Next", sans-serif;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ptf-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--ptf-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ptf-ink);
  flex-shrink: 0;
}

.ptf-header-phone {
  color: var(--ptf-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.ptf-header-phone:hover {
  color: #fff;
}

.ptf-trust-bar {
  background: rgba(46, 204, 142, 0.07);
  border-bottom: 1px solid rgba(46, 204, 142, 0.18);
  padding: 10px 32px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ptf-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ptf-green-dark);
}

.ptf-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 32px 80px;
  align-items: start;
}

.ptf-main-layout > form {
  min-width: 0;
}

.ptf-sidebar {
  position: sticky;
  top: 110px;
}

.ptf-card {
  background: var(--ptf-white);
  border: 1px solid var(--ptf-border);
  box-shadow: var(--ptf-shadow-card);
}

.ptf-sidebar-card {
  padding: 24px;
  margin-bottom: 16px;
}

.ptf-sidebar-card h3 {
  margin: 0 0 16px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ptf-purple-dark);
}

.ptf-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ptf-sidebar-list li {
  font-size: 13px;
  color: var(--ptf-ink);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--ptf-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ptf-sidebar-list li:last-child {
  border-bottom: none;
}

.ptf-list-dot {
  width: 8px;
  height: 8px;
  background: var(--ptf-green);
  flex-shrink: 0;
}

.ptf-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ptf-border);
}

.ptf-stat:last-child {
  border-bottom: none;
}

.ptf-stat-num {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ptf-purple);
  line-height: 1;
  min-width: 64px;
}

.ptf-stat-label {
  font-size: 13px;
  color: var(--ptf-gray-400);
  line-height: 1.4;
}

.ptf-sidebar-card-dark {
  background: var(--ptf-purple-dark);
  border-color: transparent;
}

.ptf-sidebar-card-dark h3 {
  color: #fff;
}

.ptf-sidebar-card-dark p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.ptf-call-btn {
  display: block;
  background: var(--ptf-green);
  color: var(--ptf-ink);
  text-align: center;
  padding: 14px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ptf-panel-header {
  margin-bottom: 28px;
}

.ptf-panel-header h1,
.ptf-panel-header h2 {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ptf-purple-dark);
  margin: 0 0 6px;
  line-height: 1.1;
}

.ptf-panel-header p {
  margin: 0;
  font-size: 15px;
  color: var(--ptf-gray-400);
}

.ptf-panel-header:focus {
  outline: none;
}

.ptf-section {
  background: var(--ptf-white);
  border: 1px solid var(--ptf-border);
  box-shadow: var(--ptf-shadow-card);
  padding: 28px;
  margin-bottom: 20px;
}

.ptf-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ptf-purple);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.ptf-section-num {
  width: 22px;
  height: 22px;
  background: var(--ptf-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: "Sora", "Avenir Next", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ptf-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ptf-field-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ptf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ptf-field > span:not(.ptf-field-hint) {
  font-size: 11px;
  font-weight: 700;
  color: var(--ptf-gray-700);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.ptf-input {
  padding: 12px 14px;
  border: 1.5px solid var(--ptf-border);
  border-radius: 0;
  font-size: 15px;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ptf-ink);
  background: var(--ptf-gray-50);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.ptf-input:focus {
  border-color: var(--ptf-purple);
  background: var(--ptf-white);
  box-shadow: none;
}

select.ptf-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 stroke=%27%234B2D8F%27 stroke-width=%271.5%27 fill=%27none%27 stroke-linecap=%27square%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.ptf-field-hint {
  display: block;
  font-size: 11px;
  color: var(--ptf-gray-400);
  margin-top: 2px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
}

.ptf-consent-block {
  background: var(--ptf-gray-50);
  border: 1px solid var(--ptf-border);
  padding: 20px;
}

.ptf-consent-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ptf-purple);
  font-family: "Sora", "Avenir Next", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ptf-consent-block p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ptf-gray-400);
  line-height: 1.7;
}

.ptf-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ptf-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--ptf-purple);
  cursor: pointer;
}

.ptf-check-row label,
.ptf-check-row span {
  font-size: 13px;
  color: var(--ptf-ink);
  line-height: 1.5;
  cursor: pointer;
}

.ptf-form-nav {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.ptf-btn-back {
  flex: 1;
  padding: 15px;
  background: transparent;
  color: var(--ptf-purple);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--ptf-border);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ptf-btn-back:hover {
  border-color: var(--ptf-purple);
  background: var(--ptf-purple-light);
}

.ptf-btn-next {
  flex: 2;
  padding: 15px;
  background: var(--ptf-green);
  color: var(--ptf-ink);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: var(--ptf-shadow-btn);
}

.ptf-btn-next:hover {
  background: var(--ptf-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 204, 142, 0.45);
}

.ptf-btn-submit {
  background: var(--ptf-purple);
  color: #fff;
}

.ptf-btn-submit:hover {
  background: var(--ptf-purple-mid);
  box-shadow: 0 8px 28px rgba(75, 45, 143, 0.4);
}

.ptf-upload-zone {
  position: relative;
  border: 2px dashed var(--ptf-border);
  padding: 32px 20px;
  text-align: center;
  background: var(--ptf-gray-50);
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}

.ptf-upload-zone:hover {
  border-color: var(--ptf-purple);
  background: var(--ptf-purple-light);
}

.ptf-upload-zone.has-files {
  border-color: var(--ptf-green);
  background: rgba(46, 204, 142, 0.05);
}

.ptf-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.ptf-upload-zone h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ptf-purple);
  font-family: "Sora", "Avenir Next", sans-serif;
}

.ptf-upload-zone p {
  margin: 0;
  font-size: 13px;
  color: var(--ptf-gray-400);
  line-height: 1.5;
}

.ptf-upload-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.ptf-upload-required {
  color: #e24b4a;
  margin-left: 4px;
}

.ptf-file-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ptf-file-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(46, 204, 142, 0.08);
  border: 1px solid rgba(46, 204, 142, 0.25);
  font-size: 13px;
  color: var(--ptf-green-dark);
  font-weight: 500;
}

.ptf-page-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 32px 80px;
}

.ptf-sign-layout {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 32px 80px;
}

.ptf-sign-page-wrap {
  max-width: 1280px;
  width: 100%;
  overflow: hidden;
}

.ptf-sign-frame-wrap {
  width: 100%;
  overflow: hidden;
}

.ptf-sign-frame {
  width: 100%;
  max-width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .ptf-header {
    padding: 12px 16px;
  }

  .ptf-header-phone span {
    display: none;
  }

  .ptf-main-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
    justify-items: center;
  }

  .ptf-sidebar {
    position: static;
    width: 100%;
    max-width: 720px;
  }

  .ptf-trust-bar {
    gap: 20px;
    padding: 10px 16px;
  }

  .ptf-trust-item {
    font-size: 12px;
  }

  .ptf-field-grid,
  .ptf-field-grid-three {
    grid-template-columns: 1fr;
  }

  .ptf-main-layout > form,
  .ptf-page-wrap {
    width: min(100%, 720px);
    padding: 0 16px 40px;
    margin-left: auto;
    margin-right: auto;
  }

  .ptf-sign-layout {
    padding: 0 16px 40px;
  }

  .ptf-sign-page-wrap {
    width: min(100%, 960px);
    padding: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .ptf-form-nav {
    justify-content: center;
    align-items: center;
  }

  .ptf-form-nav > * {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .ptf-main-layout {
    padding: 0 12px 32px;
  }

  .ptf-main-layout > form,
  .ptf-page-wrap {
    width: min(100%, 560px);
    padding: 0 12px 32px;
  }

  .ptf-sign-layout {
    padding: 0 12px 32px;
  }

  .ptf-sign-page-wrap {
    width: 100%;
    padding: 0;
  }

  .ptf-section {
    padding: 22px 18px;
  }

  .ptf-upload-zone {
    padding: 26px 16px;
  }

  .ptf-sign-frame-wrap,
  .ptf-sign-frame {
    min-height: 70vh;
  }

  .ptf-panel-header h1,
  .ptf-panel-header h2 {
    font-size: 26px;
  }

  .ptf-panel-header p {
    font-size: 14px;
  }

  .ptf-form-nav {
    gap: 12px;
  }

  .ptf-btn-back,
  .ptf-btn-next {
    flex: 1 1 0;
    width: auto;
    text-align: center;
  }

  .ptf-trust-bar {
    justify-content: flex-start;
  }

  .ptf-trust-item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ptf-main-layout > form > div:first-child {
    margin-left: 0;
    margin-right: 0;
  }

  .ptf-main-layout > form > div:first-child > div {
    max-width: 100%;
  }

  .ptf-main-layout > form > div:first-child > div > div {
    padding: 10px 4px 12px !important;
  }

  .ptf-main-layout > form > div:first-child > div > div > div:first-child {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .ptf-main-layout > form > div:first-child > div > div > div:last-child {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .ptf-main-layout > form .ptf-form-nav {
    max-width: 100%;
  }
}

