.rmodal-contact.has-err #rmodal-contact-input { border-color: var(--c-danger); }
.rmodal-contact.has-err .form-field-err { display: block; }
.rmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility 0s linear .28s;
}
.rmodal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
body.modal-open { overflow: hidden; }

.rmodal-box {
  position: relative;
  width: min(650px, calc(100vw - 48px));
  max-width: 650px;
  min-height: 486px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  background: #191c20;
  border: 0;
  border-radius: 16px;
  padding: 38px 40px 32px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
  transform: translateY(14px);
  transition: transform .3s var(--ease);
}
.rmodal.is-open .rmodal-box { transform: translateY(0); }
.rmodal-box::-webkit-scrollbar { width: 4px; }
.rmodal-box::-webkit-scrollbar-track { background: transparent; }
.rmodal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }
.rmodal-box::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

.rmodal-close {
  position: absolute;
  top: 22px; inset-inline-end: 20px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none; border-radius: 0;
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.rmodal-close:hover { background: transparent; color: #fff; opacity: .82; }
.rmodal-close svg { width: 27px; height: 27px; stroke-width: 2.35; }

.rmodal-title {
  font-size: 26px; font-weight: 700;
  color: var(--c-text);
  margin: 0 0 24px;
  line-height: 1.2;
  padding-inline-end: 44px;
}
.rmodal-sub {
  font-size: 14px;
  color: var(--c-text-dim);
  margin: 0 0 28px;
  line-height: 1.6;
}
.rmodal-form { display: flex; flex-direction: column; gap: 12px; }
.rmodal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rmodal-req { font-weight: 400; color: rgba(255,255,255,.6); }

.rmodal-contact { display: flex; flex-direction: column; gap: 10px; }
.rmodal-contact-label { font-size: 13px; font-weight: 600; color: var(--c-text); margin: 0; }
.rmodal-contact-tabs { display: flex; gap: 20px; }
.rmodal-contact-tab {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 16px;
  color: rgba(255,255,255,0.9);
  transition: color .18s var(--ease);
  user-select: none;
}
.rmodal-contact-tab:hover { color: rgba(255,255,255,0.8); }
.rmodal-contact-tab input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: #fff;
  cursor: pointer; margin: 0;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rmodal-contact-tab input[type="radio"]:checked {
  border-color: #2196F3;
  box-shadow: inset 0 0 0 4px #fff;
  background: #2196F3;
}
.rmodal-contact-tab:has(input:checked) { color: rgba(255,255,255,0.9); }

.rmodal-form .form-field label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.8);
  height: auto;
}
.rmodal-form .form-field input,
.rmodal-form .form-field select,
.rmodal-form .form-field textarea {
  appearance: none;
  -webkit-appearance: none;
  background-color: #090909;
  border-color: rgba(255,255,255,0.12);
  border-radius: 10px;
}
.rmodal-form .form-field input:focus,
.rmodal-form .form-field select:focus,
.rmodal-form .form-field textarea:focus { background-color: #090909; }
.rmodal-form .form-field textarea {
  min-height: 64px;
  height: 64px;
  resize: vertical;
  overflow-y: hidden;
}
.rmodal-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 2px 0 0;
}
.rmodal-amount {
  display: flex;
  align-items: stretch;
  background-color: #090909;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  transition: border-color .15s var(--ease);
  overflow: hidden;
}
.rmodal-form .form-field .rmodal-amount input {
  border: 0 !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}
.rmodal-form .form-field .rmodal-amount input[name="amount"] {
  flex: 1 1 auto; min-width: 0; padding-inline-end: 8px;
}
.rmodal-form .form-field .rmodal-amount input.rmodal-amount-cur {
  flex: 0 0 110px;
  width: 110px;
  border-inline-start: 1px solid rgba(255,255,255,0.22) !important;
  padding-inline-start: 12px;
  padding-inline-end: 32px;
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239aa29f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 8px !important;
}
.rmodal-form .form-field .rmodal-amount input.rmodal-amount-cur:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>") !important;
}
.rmodal-form .form-field .rmodal-amount input.rmodal-amount-cur::-webkit-calendar-picker-indicator {
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
}
.rmodal-form .form-field .rmodal-amount input.rmodal-amount-cur::-webkit-list-button {
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.rmodal-form .form-field select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239aa29f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
}
.rmodal-form .form-field select:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
}
.rmodal-form .form-field .rmodal-dropzone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  height: auto;
  line-height: 1.3;
  margin: 0;
  border-radius: 10px;
  background-color: #090909;
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.rmodal-form .form-field .rmodal-dropzone:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); }
.rmodal-form .form-field .rmodal-dropzone.is-drag {
  border-color: var(--c-accent-2);
  background-color: color-mix(in oklab, #090909 85%, var(--c-accent-2));
  color: rgba(255,255,255,0.95);
}
.rmodal-form .form-field .rmodal-dropzone svg { flex: 0 0 auto; color: rgba(255,255,255,0.5); }
.rmodal-form .form-field .rmodal-dropzone-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rmodal-form .form-field .rmodal-dropzone-title u { text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 2px; }
.rmodal-form .form-field .rmodal-dropzone-title .dz-meta {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.rmodal-form .form-field .rmodal-dropzone .dz-desktop { display: inline; }
.rmodal-form .form-field .rmodal-dropzone .dz-mobile  { display: none; }
@media (max-width: 820px) {
  .rmodal-form .form-field .rmodal-dropzone .dz-desktop { display: none; }
  .rmodal-form .form-field .rmodal-dropzone .dz-mobile  { display: inline; }
}

.rmodal-file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rmodal-file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.04);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.rmodal-file-list li .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmodal-file-list li .size { flex: 0 0 auto; font-size: 11px; color: rgba(255,255,255,0.45); }
.rmodal-file-list li .rm {
  flex: 0 0 auto; cursor: pointer;
  background: transparent; border: 0;
  color: rgba(255,255,255,0.5);
  padding: 2px 4px; line-height: 1;
  transition: color .15s var(--ease);
}
.rmodal-file-list li .rm:hover { color: var(--c-danger); }

.rmodal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  user-select: none;
  margin-top: 4px;
}
.rmodal-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.rmodal-consent-mark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  background: #090909;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  margin-top: 1px;
}
.rmodal-consent:hover .rmodal-consent-mark { border-color: rgba(255,255,255,0.45); }
.rmodal-consent input:checked ~ .rmodal-consent-mark {
  background: var(--c-accent-2);
  border-color: var(--c-accent-2);
}
.rmodal-consent input:checked ~ .rmodal-consent-mark::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: solid var(--c-accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.rmodal-consent input:focus-visible ~ .rmodal-consent-mark {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 2px;
}
.rmodal-consent-text { flex: 1 1 auto; }
.rmodal-consent.has-err .rmodal-consent-mark { border-color: var(--c-danger); }
.rmodal-consent.has-err .rmodal-consent-text { color: var(--c-danger); }

.rmodal-submit {
  width: 100%; height: 52px;
  border-radius: 999px;
  background: var(--c-accent-2);
  color: var(--c-accent-ink);
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .2s var(--ease);
  margin-top: 20px;
}
.rmodal-submit:hover { background: var(--c-accent); color: var(--c-accent-ink); }
.rmodal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.rmodal-success {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 32px 8px 16px; gap: 20px;
  animation: rmodal-fadein 0.4s ease;
}
.rmodal-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,212,168,0.18) 0%, rgba(43,212,168,0.04) 100%);
  border: 1.5px solid rgba(43,212,168,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ok);
  box-shadow: 0 0 32px rgba(43,212,168,0.12);
}
.rmodal-success-ref {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ok); opacity: 0.8;
}
.rmodal-success h3 { font-size: 24px; font-weight: 700; color: var(--c-text); margin: 0; line-height: 1.2; }
.rmodal-success p { font-size: 14px; color: var(--c-text-dim); margin: 0; line-height: 1.7; max-width: 360px; }
.rmodal-success-steps {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 360px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 16px 20px; text-align: start;
}
.rmodal-success-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--c-text-dim); line-height: 1.5;
}
.rmodal-success-step-num {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: rgba(43,212,168,0.12); border: 1px solid rgba(43,212,168,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--c-ok); flex-shrink: 0;
}

@media (max-width: 640px) {
  .rmodal { padding: 0; align-items: flex-start; }
  .rmodal-box {
    width: 100%; max-width: 100%;
    height: 100vh; height: 100dvh;
    max-height: none; border-radius: 0;
    padding: 72px 20px 40px;
  }
  .rmodal-row { grid-template-columns: 1fr; }
}
#contact-inline .cnt-card--form .rmodal-form { gap: 12px; min-width: 0; }
@media (max-width: 960px) {
  #contact-inline .rmodal-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  #contact .rmodal-amount, #contact-inline .rmodal-amount { min-width: 0; }
}
.rmodal-file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rmodal-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #0d0f12; border: 1px solid #2a2e35; border-radius: 10px; font-size: 13px; color: #cfd3d8; }
.rmodal-file-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmodal-file-rm { flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 6px; background: #2a2e35;
  color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.rmodal-file-rm:hover { background: #ff6b6b; }
.rwiz .rmodal-dropzone {
  min-height: 122px;
  margin-top: 6px;
  border: 1px dashed rgba(255,255,255,0.6);
  border-radius: 0;
  background: transparent;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}
.rwiz .rmodal-dropzone svg { width: 28px; height: 28px; stroke-width: 2.3; color: #fff; }
.rwiz .rmodal-dropzone-title { font-size: 15px; font-weight: 400; line-height: 1.35; }
.rwiz .rmodal-dropzone-title u { font-weight: 700; color: #fff; text-decoration-color: #fff; text-underline-offset: 2px; }
.rmodal-dropzone.is-drag { border-color: #2196F3; background: rgba(33,150,243,0.06); }

@media (max-width: 640px) {
  .rmodal {
    align-items: center;
    padding: 14px;
  }
  .rmodal-box {
    width: 100%;
    max-width: calc(100vw - 28px);
    height: auto;
    min-height: auto;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    border-radius: 16px;
    padding: 30px 20px 24px;
  }
  .rmodal-close {
    top: 16px;
    inset-inline-end: 14px;
  }
  .rmodal-close svg {
    width: 24px;
    height: 24px;
  }
  .rwiz .rmodal-dropzone {
    min-height: 116px;
  }
}
body.modal-open { overflow: hidden; }
