:root {
  --gold: #e4a900;
  --gold-dark: #b57b00;
  --gold-soft: #fff7dd;
  --ink: #151515;
  --muted: #737373;
  --line: #dedede;
  --soft-line: #ececec;
  --field: #ffffff;
  --page: #f5f5f5;
  --danger: #c43d32;
  --success: #237a4b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: var(--page);
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  direction: ltr;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 41.5%) minmax(560px, 58.5%);
  gap: 9px;
  padding: 6px 10px;
}

.brand-side,
.form-card {
  direction: rtl;
}

.brand-side {
  height: calc(100vh - 12px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 11px 22px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.68) 46%, rgba(245, 245, 245, 0.55) 72%),
    linear-gradient(180deg, #fafafa 0%, #eeeeee 100%);
}

.brand-logo {
  width: clamp(118px, 14vw, 154px);
  height: auto;
  object-fit: contain;
  margin: 2px auto 0;
}

.side-illustration {
  width: min(92%, 500px);
  max-height: 260px;
  object-fit: contain;
  margin: -7px auto -2px;
}

.side-title {
  margin: 0;
  color: #111;
  font-size: clamp(18px, 2.15vw, 25px);
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
  letter-spacing: 0;
}

.side-title span {
  color: var(--gold);
}

.side-copy {
  width: min(440px, 88%);
  margin: 6px auto 12px;
  color: #606060;
  font-size: clamp(10px, 1.02vw, 13px);
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.trust-grid {
  width: min(390px, 86%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0 auto 10px;
}

.trust-card {
  min-height: 56px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.035);
}

.trust-icon {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-card strong {
  color: #1f1f1f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.trust-card small {
  color: #696969;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.partners {
  width: min(420px, 96%);
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #e7e7e7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.partners h2 {
  margin: 0 0 8px;
  color: #121212;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.partner-row {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.partner-item {
  width: 100%;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.partner-moneygram {
  transform: scale(1.08);
}

.partner-ria {
  transform: scale(1.08);
}

.partner-western {
  transform: scale(1.06);
}

.form-card {
  height: calc(100vh - 12px);
  min-height: 0;
  padding: 16px 20px 12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-title {
  margin-bottom: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eeeeee;
  text-align: center;
}

.form-title h2 {
  margin: 0;
  color: #0f0f0f;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.alert {
  margin: 0 0 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.alert-success {
  color: var(--success);
  background: #eef9f2;
  border-color: #caead5;
}

.alert-error {
  color: #9e3029;
  background: #fff1f0;
  border-color: #efc8c4;
}

.error-list {
  margin: 0;
  padding: 0 18px 0 0;
}

form {
  display: grid;
  gap: 6px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section legend {
  position: relative;
  width: 100%;
  margin: 0 0 5px;
  padding: 0 10px 0 0;
  color: #242424;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  text-align: right;
}

.form-section legend::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: var(--gold);
}

.form-grid {
  display: grid;
  gap: 6px 12px;
}

.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.identity-stack {
  display: grid;
  gap: 5px;
}

label {
  color: #353535;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.3;
}

.required-star {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  color: #252525;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  outline: none;
  background: var(--field);
  font-size: 9.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  min-height: 48px;
  padding-top: 8px;
  resize: vertical;
}

select {
  appearance: auto;
  padding-left: 8px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: #d9a10b;
  box-shadow: 0 0 0 2px rgba(228, 169, 0, 0.14);
}

input[type="tel"] {
  direction: ltr;
  text-align: center;
}

.upload-field {
  gap: 4px;
}

.upload-drop {
  position: relative;
  min-height: 43px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  overflow: hidden;
  color: #565656;
  border: 1px dashed #d8d8d8;
  border-radius: 4px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
}

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

.upload-drop:hover {
  border-color: var(--gold);
  background: #fffdf7;
}

.upload-icon {
  width: 19px;
  height: 19px;
  color: #7e8a96;
}

.upload-icon svg {
  width: 19px;
  height: 19px;
}

.upload-drop > span:not(.upload-icon) {
  max-width: 100%;
  overflow: hidden;
  color: #454545;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-drop small {
  color: #7c7c7c;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
}

.documents-grid > .upload-field .upload-drop {
  min-height: 71px;
}

.submit-btn {
  height: 28px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1px;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #e6b10d 0%, #d99c00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 5px 13px rgba(206, 145, 0, 0.2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.submit-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.submit-btn:hover {
  background: linear-gradient(180deg, #efbd1b 0%, #d99c00 100%);
}

.footer-note {
  margin: 0;
  color: #6f6f6f;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 15, 15, 0.42);
  cursor: pointer;
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(228, 169, 0, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6b10d 0%, #d99c00 100%);
  box-shadow: 0 10px 20px rgba(217, 156, 0, 0.24);
}

.modal-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.modal-box h2 {
  margin: 0;
  color: #151515;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.65;
}

.modal-action {
  min-width: 112px;
  height: 36px;
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #e6b10d 0%, #d99c00 100%);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

@media (min-width: 1280px) and (min-height: 720px) {
  .page {
    grid-template-columns: minmax(390px, 40.8%) minmax(780px, 59.2%);
    gap: 12px;
    padding: 6px 12px;
  }

  .brand-side {
    padding: 18px 34px 14px;
  }

  .brand-logo {
    width: clamp(142px, 8.6vw, 168px);
  }

  .side-illustration {
    width: min(68%, 500px);
    max-height: 286px;
    margin: 2px auto 0;
    filter: none;
  }

  .side-title {
    font-size: clamp(25px, 1.75vw, 33px);
    line-height: 1.25;
  }

  .side-copy {
    width: min(560px, 86%);
    margin: 6px auto 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .trust-grid {
    width: min(480px, 82%);
    gap: 10px 12px;
    margin-bottom: 10px;
  }

  .trust-card {
    min-height: 52px;
    padding: 8px 13px;
  }

  .trust-card strong {
    font-size: 11px;
  }

  .trust-card small {
    font-size: 8.5px;
  }

  .partners {
    width: min(480px, 88%);
    padding: 12px 18px;
  }

  .partner-row {
    gap: 24px;
  }

  .partner-item {
    height: 48px;
  }

  .form-card {
    padding: 20px 34px 12px;
  }

  .form-title {
    margin-bottom: 9px;
    padding-bottom: 10px;
  }

  .form-title h2 {
    font-size: clamp(27px, 1.85vw, 35px);
    line-height: 1.22;
  }

  form {
    gap: 7px;
  }

  .form-section legend {
    margin-bottom: 5px;
    padding-right: 13px;
    font-size: 12px;
  }

  .form-section legend::before {
    height: 17px;
  }

  .form-grid {
    gap: 7px 16px;
  }

  .documents-grid {
    gap: 16px;
  }

  .identity-stack {
    gap: 6px;
  }

  label {
    font-size: 11.5px;
  }

  input,
  select,
  textarea {
    height: 34px;
    padding-inline: 12px;
    border-color: #d5d5d5;
    font-size: 12px;
  }

  .upload-drop {
    min-height: 54px;
    padding: 9px 12px;
  }

  .documents-grid > .upload-field .upload-drop {
    min-height: 78px;
  }

  .upload-icon,
  .upload-icon svg {
    width: 22px;
    height: 22px;
  }

  .upload-drop > span:not(.upload-icon) {
    font-size: 10.5px;
  }

  .upload-drop small {
    font-size: 7.5px;
  }

  .submit-btn {
    height: 36px;
    margin-top: 3px;
    font-size: 14px;
  }

  .footer-note {
    font-size: 10px;
  }
}

@media (max-height: 660px) and (min-width: 980px) {
  .brand-logo {
    width: 118px;
  }

  .side-illustration {
    max-height: 210px;
    margin-top: -25px;
    margin-bottom: -18px;
  }

  .side-title {
    font-size: 21px;
    line-height: 1.22;
  }

  .side-copy {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.45;
  }

  .trust-grid {
    gap: 6px 8px;
    margin-bottom: 7px;
  }

  .trust-card {
    min-height: 43px;
    padding: 6px 9px;
  }

  .trust-card strong {
    font-size: 9px;
  }

  .trust-card small {
    font-size: 7px;
  }

  .partners {
    padding-block: 8px;
  }

  .partner-row {
    gap: 10px;
  }

  .partner-item {
    height: 32px;
  }

  .form-card {
    padding: 8px 18px 6px;
  }

  .form-title {
    margin-bottom: 4px;
    padding-bottom: 5px;
  }

  .form-title h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  form {
    gap: 3px;
  }

  .form-section legend {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .form-grid {
    gap: 3px 11px;
  }

  .field,
  .upload-field {
    gap: 2px;
  }

  label {
    font-size: 8.5px;
  }

  input,
  select,
  textarea {
    height: 22px;
    font-size: 8.5px;
  }

  .upload-drop {
    min-height: 30px;
    padding: 4px 8px;
  }

  .upload-icon,
  .upload-icon svg {
    width: 15px;
    height: 15px;
  }

  .upload-drop > span:not(.upload-icon) {
    font-size: 8px;
  }

  .upload-drop small {
    font-size: 6px;
  }

  .documents-grid > .upload-field .upload-drop {
    min-height: 50px;
  }

  .submit-btn {
    height: 24px;
    font-size: 10px;
  }

  .footer-note {
    font-size: 7.5px;
    line-height: 1.25;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .brand-side,
  .form-card {
    height: auto;
    min-height: auto;
  }

  .form-card {
    order: 1;
  }

  .brand-side {
    order: 2;
    padding-top: 18px;
  }

  .partners {
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0;
    gap: 0;
  }

  .brand-side,
  .form-card {
    border-radius: 0;
  }

  .form-card {
    padding: 16px 12px;
  }

  .columns-3 {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3 {
    grid-column: auto;
  }

  .trust-grid {
    width: 100%;
  }

  .partner-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .partner-item {
    height: 34px;
  }
}
