:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-soft: #f4f2fb;
  --text: #191823;
  --muted: #6f6b7a;
  --border: #e6e2ed;

  --pink: #df8a93;
  --purple: #c669de;
  --blue: #9497cb;

  --gradient: linear-gradient(
    135deg,
    var(--pink) 0%,
    var(--purple) 52%,
    var(--blue) 100%
  );

  --danger: #c84256;
  --success: #208c69;

  --shadow-small: 0 12px 30px rgba(47, 41, 67, 0.08);
  --shadow-large: 0 24px 70px rgba(47, 41, 67, 0.13);

  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(223, 138, 147, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 92% 20%,
      rgba(198, 105, 222, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 75% 90%,
      rgba(148, 151, 203, 0.13),
      transparent 32%
    ),
    var(--bg);
  font-family:
    Poppins,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button,
select,
.upload-box {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(540px, 1.2fr);
  align-items: start;
  gap: 72px;
}

.intro {
  position: sticky;
  top: 48px;
  padding-top: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(198, 105, 222, 0.28);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family:
    Montserrat,
    Poppins,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.intro-text {
  max-width: 520px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.info-card {
  max-width: 500px;
  padding: 22px 24px;
  border: 1px solid rgba(198, 105, 222, 0.18);
  background: rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(16px);
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.form-card {
  overflow: hidden;
  padding: 44px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(22px);
}

.form-section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(198, 105, 222, 0.22);
}

.section-heading h2 {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.field {
  display: block;
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > span {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  background: #ffffff;
  border-radius: var(--radius-small);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input,
select {
  min-height: 52px;
  padding: 0 15px;
}

textarea {
  min-height: 160px;
  padding: 15px;
  resize: vertical;
  line-height: 1.65;
}

input::placeholder,
textarea::placeholder {
  color: #aaa5b2;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #d5cfdf;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(198, 105, 222, 0.12);
}

select:disabled {
  color: #aaa5b2;
  background: #f6f5f8;
  cursor: not-allowed;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(200, 66, 86, 0.48);
}

.upload-box {
  position: relative;
  min-height: 190px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1.5px dashed #cbc5d6;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--gradient) border-box;
  border-radius: var(--radius-medium);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.upload-box:hover,
.upload-box.is-dragging {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(74, 56, 100, 0.12);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  border-radius: 17px;
  font-size: 28px;
  font-weight: 300;
  box-shadow: 0 10px 26px rgba(198, 105, 222, 0.26);
}

.upload-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.upload-box p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.upload-box small {
  display: block;
  color: #96909e;
  font-size: 12px;
}

.file-preview {
  margin-top: 16px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: var(--radius-small);
}

.file-preview > div {
  min-width: 0;
}

.file-preview strong,
.file-preview span {
  display: block;
}

.file-preview strong {
  overflow: hidden;
  margin-bottom: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.file-preview span {
  color: var(--muted);
  font-size: 12px;
}

.file-preview button {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--danger);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.file-preview button:hover {
  background: rgba(200, 66, 86, 0.08);
}

.progress-wrapper {
  margin-top: 18px;
}

.progress-details {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: #edeaf1;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--gradient);
  border-radius: inherit;
  transition: width 180ms ease;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.65;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
}

.form-message {
  margin-bottom: 18px;
  padding: 13px 15px;
  color: var(--danger);
  background: rgba(200, 66, 86, 0.08);
  border: 1px solid rgba(200, 66, 86, 0.16);
  border-radius: var(--radius-small);
  font-size: 13px;
}

.form-message.success {
  color: var(--success);
  background: rgba(32, 140, 105, 0.08);
  border-color: rgba(32, 140, 105, 0.17);
}

.submit-button,
.secondary-button {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.submit-button {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 14px 30px rgba(198, 105, 222, 0.28);
}

.submit-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 76%
  );
  content: "";
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(198, 105, 222, 0.32);
}

.submit-button:hover::after {
  transform: translateX(120%);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-button span {
  position: relative;
  z-index: 1;
}

.privacy-note {
  margin: 14px 0 0;
  color: #9a95a1;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.success-screen {
  min-height: 100vh;
  padding: 40px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(223, 138, 147, 0.17),
      transparent 35%
    ),
    radial-gradient(
      circle at 88% 14%,
      rgba(198, 105, 222, 0.16),
      transparent 35%
    ),
    var(--bg);
}

.success-card {
  width: min(620px, 100%);
  padding: 54px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-large);
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 15px 34px rgba(198, 105, 222, 0.28);
  font-size: 30px;
  font-weight: 700;
}

.success-card h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
}

.success-card > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.reference-box {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
}

.reference-box span,
.reference-box strong {
  display: block;
}

.reference-box span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reference-box strong {
  font-family:
    Montserrat,
    Poppins,
    sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.secondary-button {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
}

.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .page {
    width: min(760px, calc(100% - 32px));
    padding: 42px 0 64px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro {
    position: static;
  }

  .brand {
    margin-bottom: 52px;
  }

  h1 {
    max-width: 650px;
  }

  .intro-text,
  .info-card {
    max-width: 650px;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 600px);
    padding: 22px 0 42px;
  }

  .brand {
    margin-bottom: 36px;
  }

  h1 {
    font-size: 45px;
  }

  .intro-text {
    font-size: 16px;
  }

  .form-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

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

  .form-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .upload-box {
    min-height: 220px;
    padding: 28px 20px;
    flex-direction: column;
    text-align: center;
  }

  .success-card {
    padding: 38px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}