@import "./quick-access.css";

/***** COLORS *****/
.text-red-500 {
  color: var(--color-red-500) !important;
}

.border-red-500 {
  border-color: var(--color-red-500) !important;
}

.border-red-500::placeholder {
  color: var(--color-red-500) !important;
}

/***** TYPOGRAPHY *****/
.shadow-form-injection span,
.shadow-form-injection p,
.shadow-form-injection a,
.shadow-form-injection label,
.shadow-form-injection h3,
.shadow-form-injection legend,
.shadow-form-injection button,
.shadow-form-injection textarea,
.shadow-form-injection small,
.shadow-form-injection input,
.sfi-file-error,
.shadow-form-steps * {
  font-family: "IranYekan" !important;
}

.shadow-form-injection input,
.shadow-form-injection textarea {
  font-family: "IranYekan" !important;
}

.shadow-form-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 28px;
  line-height: 190%;
  margin-bottom: 8px;
}

.shadow-form-header h3:before {
  content: "";
  width: 20px;
  height: 7px;
  background-color: #ec4552;
  border-radius: 20px;
}

.shadow-form-header__desc {
  display: block;
  font-weight: 400;
  font-size: 18px;
  line-height: 180%;
  color: var(--color-dominant-500);
  white-space: pre-line;
}

.shadow-form-section legend {
  font-weight: 500;
  font-size: 20px;
  line-height: 190%;
  color: var(--color-dominant-300);
}

.shadow-form-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: 24px;
  column-gap: 24px;
}

.shadow-form-field {
  grid-column: span 4;
  display: flex;
  position: relative;
}

.shadow-form-fields > .shadow-form-field:nth-last-child(1):nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.shadow-form-field.label-fix label:not(.sfi-inline) {
  top: 0 !important;
  font-size: 16px;
}

.shadow-form-field.checkbox-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  column-gap: 80px;
  row-gap: 20px;
  align-items: center;
}

.shadow-form-field.checkbox-list .sfi-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  justify-content: flex-start;
  flex-direction: row-reverse;
  text-align: right;
  font-size: 18px;
  font-weight: 400;
}

[dir="ltr"] .shadow-form-field.checkbox-list .sfi-inline {
  flex-direction: row;
  text-align: left;
}

.shadow-form-field .sfi-inline input[type="checkbox"],
.shadow-form-field .sfi-inline input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 20px;
  block-size: 20px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: transparent;
  display: inline-grid;
  place-content: center;
  margin: 0;
  flex: 0 0 auto;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.shadow-form-field .sfi-inline input[type="checkbox"]::after,
.shadow-form-field .sfi-inline input[type="radio"]::after {
  content: "";
  inline-size: 15px;
  block-size: 20px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: var(--sfi-checkmark, #0f172a);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='white' d='M16.704 5.296a1 1 0 0 1 0 1.414l-7.5 7.5a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L8.5 12.086l6.793-6.79a1 1 0 0 1 1.411 0z'/></svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='white' d='M16.704 5.296a1 1 0 0 1 0 1.414l-7.5 7.5a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L8.5 12.086l6.793-6.79a1 1 0 0 1 1.411 0z'/></svg>")
    no-repeat center / contain;
}

.shadow-form-field .sfi-inline input[type="checkbox"]:checked,
.shadow-form-field .sfi-inline input[type="radio"]:checked {
  background-color: var(--color-dominant-200, #22d3ee);
  border-color: var(--color-dominant-200, #22d3ee) !important;
  color: #0b1020;
}

.shadow-form-field .sfi-inline input[type="checkbox"]:checked::after,
.shadow-form-field .sfi-inline input[type="radio"]:checked::after {
  transform: scale(1);
  background: #fff;
  background-color: #101010;
}

.shadow-form-field .sfi-inline input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35);
  border-color: var(--color-dominant-200, #22d3ee);
}

.shadow-form-field .sfi-inline input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shadow-form-field.radio-list {
  grid-template-columns: repeat(8, minmax(100px, 1fr));
}

@media (max-width: 1024px) {
  .shadow-form-field.checkbox-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    column-gap: 40px;
  }

  .shadow-form-field {
    grid-column: span 6;
  }

  .shadow-form-field.wide-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shadow-form-field.checkbox-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
  }

  .shadow-form-field {
    grid-column: 1 / -1;
  }
}

.shadow-form-field.wide-row {
  flex-direction: column;
  width: 100%;
  grid-column: 1 / -1;
}

.shadow-form-field input[type="text"]:not(input[type="checkbox"]),
.shadow-form-field input[type="tel"]:not(input[type="checkbox"]),
.shadow-form-field input[type="email"]:not(input[type="checkbox"]),
.shadow-form-field input[type="url"]:not(input[type="checkbox"]),
.shadow-form-field input[type="date"]:not(input[type="checkbox"]) {
  width: 100%;
  height: 80px;
  padding-top: 8px;
  padding-right: 24px;
  padding-bottom: 8px;
  padding-left: 24px;
  border-radius: 16px;
  border-width: 1px;
  border-color: var(--color-dominant-800);
  outline: none !important;
  transition: border-color 0.3s ease;
  font-size: 18px;
}

.shadow-form-field textarea {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  padding: 24px 16px;
  border-radius: 16px;
  border-width: 1px;
  border-color: var(--color-dominant-800);
  outline: none !important;
  transition: border-color 0.3s ease;
  font-size: 18px;
}

.shadow-form-field input:focus-within,
.shadow-form-field input:focus-visible,
.shadow-form-field input:focus,
.shadow-form-field textarea:focus-within,
.shadow-form-field textarea:focus-visible,
.shadow-form-field textarea:focus {
  border-color: var(--color-dominant-500) !important;
}

input[type="email"],
input[type="tel"] {
  direction: ltr;
}

.shadow-form-field label:not(.sfi-inline) {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s ease;
  color: var(--color-dominant-500);
  background-color: #101010;
  padding: 0 6px;
  font-size: 18px;
}

.shadow-form-field input:focus-within + label:not(.sfi-inline),
.shadow-form-field input:focus-visible + label:not(.sfi-inline),
.shadow-form-field input:focus + label:not(.sfi-inline) {
  color: var(--color-dominant-500) !important;
  right: 24px;
  top: -14px;
}

.shadow-form-field.sfi-has-value label:not(.sfi-inline) {
  top: -14px;
  right: 24px;
  transform: none;
  font-size: 16px;
  color: var(--color-dominant-500) !important;
}

.shadow-form-field.sfi-has-value input,
.shadow-form-field.sfi-has-value textarea {
  border-color: var(--color-dominant-500) !important;
}

/* Error state on field wrapper (overrides has-value) */
.shadow-form-field.sfi-error input,
.shadow-form-field.sfi-error textarea,
.shadow-form-field.sfi-error select {
  border-color: var(--color-red-500) !important;
}
.shadow-form-field.sfi-error label:not(.sfi-inline) {
  color: var(--color-red-500) !important;
}
.shadow-form-field.sfi-error input::placeholder,
.shadow-form-field.sfi-error textarea::placeholder {
  color: var(--color-red-500) !important;
}

.shadow-form-injection button,
.shadow-form-injection .sfi-next {
  width: 134px;
  height: 48px;
  background-color: #fff;
  border-radius: 50px;
  color: #000;
  cursor: pointer;
}

.shadow-form-injection .sfi-prev {
  width: 134px;
  height: 48px;
  background-color: transparent;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  border: 1px solid #fff;
}

.shadow-form-injection .sfi-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-position {
  left: 24px !important;
  right: auto !important;
}

.sfi-textarea-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sfi-example {
  display: block;
  width: 100%;
  clear: both;
  grid-column: 1 / -1;
  order: 100;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-dominant-700);
  margin: 8px 0 0;
}

.sfi-file-error {
  margin: 10px 0;
}

/************ STEPS START ************/
.shadow-form-steps span {
  font-size: 14px;
  line-height: 160%;
  font-weight: 400;
}

.step {
  content: "";
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  background-color: #2a2a2c;
  z-index: 2;
}

.step::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  width: 8px;
  height: 8px;
  background-color: var(--color-dominant-500);
}

.step.active:before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  width: 8px;
  height: 8px;
  background-color: var(--color-dominant-200);
}

.form-step {
  transition: all 0.3s ease;
}

.form-step:first-child::before {
  content: "";
  width: 100%;
  height: 4px;
  position: absolute;
  top: -24px;
  left: -50%;
  background-color: var(--color-dominant-800);
  z-index: 0;
}

.form-step::before,
.form-step:last-child::before {
  content: "";
  width: 100%;
  height: 4px;
  position: absolute;
  top: -24px;
  left: 50%;
  background-color: var(--color-dominant-800);
  z-index: 0;
}

.form-step.step-complete .step::before {
  background-color: #c2c2c3;
}

.form-step.step-complete .step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 24px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml;utf8,<svg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'><rect x='5.33594' y='5' width='14' height='14' rx='7' fill='%23C2C2C3'/><rect x='5.33594' y='5' width='14' height='14' rx='7' stroke='%23C2C2C3' stroke-width='6'/><path d='M8.23047 12L11.0605 14.83L16.7305 9.17004' stroke='%232A2A2C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat center / contain;
}

.form-step.step-complete::before,
.form-step.step-active::before {
  background-color: #c2c2c3 !important;
}

.form-step.en-position:first-child::before {
  left: auto;
  right: -50%;
}

.form-step.en-position::before,
.form-step.en-position:last-child::before {
  right: auto;
  left: -50%;
}
/************ STEPS END ************/

.single-content + header,
.single-title,
.single-thumbnail,
.contact-us-footer {
  display: none !important;
}

/****** INTRO ******/
.sfi-intro * {
  direction: rtl;
  font-family: "IranYekan", sans-serif !important;
}

.sfi-intro {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

.sfi-intro.dir-ltr {
  text-align: left;
}

.sfi-intro.dir-ltr * {
  direction: ltr;
}

.sfi-intro .sfi-hero-title {
  font-size: 30px;
  color: var(--color-white);
  font-weight: 700;
  margin: 0 0 8px;
}

.sfi-intro .sfi-hero-desc {
  color: var(--color-accent-400);
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 16px;
}

.sfi-start-btn {
  font-family: "IranYekan", sans-serif !important;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
}

.sfi-start-btn:hover {
  opacity: 0.9;
}

.sfi-intro.sfi-hero-text {
  flex: 1 0 50%;
}

.sfi-intro .sfi-hero-media {
  flex: 1 0 50%;
}

.single-content + header,
.single-title,
.single-thumbnail,
.contact-us-footer {
  display: none !important;
}
/* Intro */
.sfi-intro .sfi-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sfi-intro .sfi-hero-desc {
  color: #bfc3c9;
  line-height: 1.9;
  margin: 0 0 16px;
}

.sfi-start-btn:hover {
  opacity: 0.9;
}

.sfi-intro .sfi-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfi-intro .sfi-hero-img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Intro cross slide animation (text and media move oppositely; fade at center) */
.sfi-hero-text,
.sfi-hero-media {
  position: relative;
  will-change: transform, opacity;
}

@keyframes sfiCrossOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-12%);
    opacity: 0;
  }
  100% {
    transform: translateX(-22%);
    opacity: 0;
  }
}

@keyframes sfiCrossOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(12%);
    opacity: 0;
  }
  100% {
    transform: translateX(22%);
    opacity: 0;
  }
}

@keyframes sfiCrossInFromLeft {
  0% {
    transform: translateX(-22%);
    opacity: 0;
  }
  50% {
    transform: translateX(-12%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes sfiCrossInFromRight {
  0% {
    transform: translateX(22%);
    opacity: 0;
  }
  50% {
    transform: translateX(12%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.sfi-hero-text.sfi-cross-out-left {
  animation: sfiCrossOutLeft 0.36s ease both;
  z-index: 2;
}

.sfi-hero-text.sfi-cross-out-right {
  animation: sfiCrossOutRight 0.36s ease both;
  z-index: 2;
}

.sfi-hero-text.sfi-cross-in-from-left {
  animation: sfiCrossInFromLeft 0.36s ease both;
  z-index: 2;
}

.sfi-hero-text.sfi-cross-in-from-right {
  animation: sfiCrossInFromRight 0.36s ease both;
  z-index: 2;
}

.sfi-hero-media.sfi-cross-out-left {
  animation: sfiCrossOutLeft 0.36s ease both;
  z-index: 1;
}

.sfi-hero-media.sfi-cross-out-right {
  animation: sfiCrossOutRight 0.36s ease both;
  z-index: 1;
}

.sfi-hero-media.sfi-cross-in-from-left {
  animation: sfiCrossInFromLeft 0.36s ease both;
  z-index: 1;
}

.sfi-hero-media.sfi-cross-in-from-right {
  animation: sfiCrossInFromRight 0.36s ease both;
  z-index: 1;
}

@media (max-width: 1192px) {
  .shadow-form-steps {
    overflow-x: scroll;
    justify-content: end;
    height: 54px;
  }

  .shadow-form-steps.en-posiiton {
    justify-content: start;
  }

  .form-step {
    flex: 1 0 25%;
    align-items: end;
  }

  .form-step::before,
  .form-step:last-child::before {
    top: 8px;
  }

  .step {
    top: 0;
  }

  .form-step:first-child::before {
    top: 8px;
  }
}

@media (max-width: 768px) {
  .sfi-intro.dir-ltr .sfi-hero-title,
  .sfi-intro.dir-ltr .sfi-hero-desc {
    text-align: center;
  }
}

@media (max-width: 782px) {
  .h-entry > header {
    display: none !important;
  }

  .single-content,
  .the_content {
    margin-bottom: 0 !important;
  }

  .form-step {
    flex: 1 0 45%;
  }

  .sfi-intro {
    flex-direction: column-reverse;
    text-align: center;
  }

  .shadow-form-fields {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 0;
  }

  .shadow-form-header h3 {
    font-size: 24px;
  }

  .shadow-form-header__desc {
    font-size: 14px;
  }

  .shadow-form-section legend {
    font-size: 16px;
  }

  .sfi-help-icon img {
    width: 20px;
    height: 20px;
  }

  .shadow-form-field label:not(.sfi-inline),
  .shadow-form-field.sfi-has-value label:not(.sfi-inline),
  .shadow-form-field.label-fix label:not(.sfi-inline),
  .shadow-form-field.checkbox-list .sfi-inline {
    font-size: 14px;
    font-weight: 400;
  }

  .shadow-form-field.checkbox-list .sfi-inline {
    white-space: normal;
  }

  .shadow-form-field input:not(input[type="checkbox"]) {
    max-height: 56px;
    font-size: 14px;
    font-weight: 400;
  }

  .shadow-form-field textarea {
    min-height: 260px;
    max-height: 360px;
    font-size: 14px;
    font-weight: 400;
  }

  .shadow-form-section-parent .shadow-form-section:last-child {
    border-bottom: 0;
  }

  .shadow-form-injection button,
  .shadow-form-injection .sfi-next,
  .shadow-form-injection button,
  .shadow-form-injection .sfi-prev {
    width: 100px;
    height: 40px;
    font-size: 14px;
  }

  .shadow-form-steps.en-position {
    justify-content: start;
  }

  .sfi-start-btn {
    font-size: 14px;
    padding: 9px 20px;
  }

  .sfi-intro .sfi-hero-title {
    font-size: 24px;
  }

  .sfi-intro .sfi-hero-desc {
    font-size: 16px;
  }

  .shadow-form-injection small {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .sfi-file-cards {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .sfi-dropzone {
    padding: 60px !important;
  }

  .shadow-form-field label:not(.sfi-inline),
  .shadow-form-field.sfi-has-value label:not(.sfi-inline),
  .shadow-form-field.label-fix label:not(.sfi-inline) {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}

/* Languages */
.sfi-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: "IranYekan", sans-serif;
  backdrop-filter: blur(5px);
  transition: 0.3s ease;
}

.sfi-modal__dialog {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sfi-modal__body {
  background: #fff;
  border-radius: 12px;
  max-width: 320px;
  width: 92%;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.sfi-modal__body .sfi-modal__body-image {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.sfi-modal__body .sfi-modal__body-image img {
  max-width: 80px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.sfi-modal__title {
  color: var(--color-dominant-900);
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.sfi-modal__desc {
  margin: 0 0 16px;
  color: #555;
}

.sfi-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.sfi-btn {
  appearance: none;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 10px 16px;
  background: #f6f8fa;
  color: #111;
  cursor: pointer;
}

.sfi-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sfi-btn--primary:hover {
  opacity: 0.9;
}

/* help */
.shadow-form-section__help {
  color: #6b7280;
  margin: 6px 0 0;
  font-size: 14px;
  position: relative;
}

.sfi-help-icon {
  cursor: pointer;
}

.sfi-help-icon:hover + .sfi-help,
.sfi-help-icon:focus + .sfi-help {
  opacity: 1;
  visibility: visible;
  display: block;
}

.sfi-help {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  position: absolute;
  top: -60px;
  right: -230px;
  left: 0;
  width: 220px;
  background: rgba(39, 39, 39, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  margin-top: 6px;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  font-family: "IranYekan", sans-serif;
  pointer-events: none;
}

.sfi-help.en-position {
  left: -230px !important;
  right: auto !important;
}

.sfi-help::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: rgba(39, 39, 39, 0.5) transparent transparent transparent;
}

.sfi-help.en-position::before {
  right: 20px;
  left: auto;
}

/* Files */
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.file-name {
  font-size: 13px;
}

.file-size {
  font-size: 12px;
  color: #6b7280;
}

.file-size-warning {
  color: #b45309;
}

.remove-file {
  border: none;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  line-height: 22px;
}

/**** Input Files ****/
.sfi-upload {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  font-family: "IranYekan", sans-serif;
}

.sfi-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-dominant-800);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sfi-dz-icon {
  margin-bottom: 4px;
  position: relative;
}

.sfi-dz-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  width: 40px;
  height: 15px;
  border-radius: 30px;
  background: #101010;
  filter: blur(4px);
}

.sfi-dz-title {
  font-size: 13px;
  font-weight: 500;
}

.sfi-dz-subtitle {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/**** End Input Files ****/
.sfi-file-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 0;
}

.sfi-file-cards.dir-ltr .sfi-card-remove {
  margin-right: 0;
  margin-left: auto;
}

.sfi-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 277px;
  height: 50px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-dominant-800);
  border-radius: 8px;
  padding: 10px 12px;
}

.sfi-field-grid .sfi-field-card {
  transition: box-shadow 0.15s ease;
}

.sfi-field-grid .sfi-field-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.sfi-media-field .sfi-media-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  min-width: 24px;
  min-height: 24px;
}

.sfi-card-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-dominant-500);
}

.sfi-card-sub {
  font-size: 9px;
  font-weight: 400;
  color: var(--color-dominant-500);
  font-family: "IranYekan", sans-serif;
}

.sfi-media-field .button {
  margin-inline-start: 6px;
}

.sfi-card-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  border-radius: 100% !important;
  background-color: transparent !important;
  border: 2px solid var(--color-dominant-700);
  color: var(--color-dominant-700) !important;
  font-size: 14px;
  margin-right: auto;
}

@media (max-width: 768px) {
  .sfi-intro {
    text-align: center;
  }

  .sfi-intro .sfi-hero-media {
    order: -1;
  }

  .sfi-card {
    width: 100%;
  }
}

.shadow-form-field.textarea-element .sfi-help-row {
  position: absolute;
  left: 18px;
  top: 30px;
}

.shadow-form-field.textarea-element .sfi-help-row.dir-ltr {
  top: 20px;
  right: 18px;
  left: auto;
}

.shadow-form-field.textarea-element .sfi-help {
  right: -200px;
  left: 0;
}

.sfi-ty {
  padding: 48px 16px;
  background: #0b0b0b;
  color: #fff;
  border-radius: 12px;
  margin: 16px 0;
}

.sfi-ty__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.sfi-ty__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.sfi-ty__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.25;
}

.sfi-ty__desc {
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.9;
}

.sfi-ty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  padding: 12px 18px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sfi-ty__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/*** Thanks Page ***/
.sfi-thankyou {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
}

.sfi-thankyou__content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.sfi-thankyou__content.dir-ltr {
  justify-content: end;
}

.sfi-thankyou__image {
  flex: 0 0 566px;
  max-width: 100%;
  height: 100%;
  position: relative;
}

.sfi-thankyou__image img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  object-fit: cover;
}

.sfi-thankyou__text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  flex: 1 1 360px;
  z-index: 2;
}

.sfi-thankyou__text.dir-rtl {
  direction: rtl;
  text-align: right;
  left: auto;
  right: 0;
}

.sfi-thankyou__text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.sfi-thankyou__text p {
  font-size: 18px;
  font-weight: 400;
}

.sfi-thankyou__text.dir-rtl h2 {
  font-size: 28px;
}

.sfi-thankyou__text.dir-rtl p {
  font-size: 18px;
  color: var(--color-accent-400);
}

.sfi-thankyou h2,
.sfi-thankyou p,
.sfi-thankyou-button {
  font-family: "IranYekan", sans-serif !important;
}

.sfi-thankyou-button {
  display: inline-block;
  background: #fff;
  color: #101010;
  padding: 9px 15px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-top: 32px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .sfi-thankyou {
    height: auto;
    justify-content: center;
  }

  .sfi-thankyou__content {
    max-width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .sfi-thankyou__image {
    width: 100%;
  }

  .sfi-thankyou__text.dir-rtl,
  .sfi-thankyou__text.dir-ltr {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 50%;
    text-align: center;
  }

  .sfi-thankyou__text {
    top: 84%;
    width: 100%;
  }

  .sfi-thankyou__text h2 {
    font-size: 24px !important;
  }

  .sfi-thankyou__text p {
    font-size: 16px !important;
  }

  .sfi-thankyou__text h2,
  .sfi-thankyou__text p {
    text-align: center;
  }

  .sfi-thankyou-button {
    margin: 20px auto 0;
  }
}

.sfi-intro-lang-btn {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 110px;
  height: 42px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 999px;
  border: 1px solid var(--color-dominant-800);
  color: var(--color-dominant-500);
  padding: 0 5px 0 14px;
  cursor: pointer;
}

.sfi-intro-lang-btn.dir-ltr {
  padding: 0 14px 0 5px;
}

.sfi-intro-lang-btn.dir-ltr span img {
  margin-right: 0;
  margin-left: 9px;
}

.sfi-intro-lang-btn {
  position: relative;
}

.sfi-intro-lang-btn span {
  position: absolute;
  right: 5px;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: start;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-dominant-800);
  border-radius: 100%;
  transition: all 0.3s ease;
}

.sfi-intro-lang-btn:hover span {
  width: 90%;
  border-radius: 999px;
  z-index: -1;
}

.sfi-intro-lang-btn span img {
  width: 14px;
  height: 14px;
  filter: invert(1) opacity(0.7);
  margin-right: 9px;
}

.sfi-hero-desc-buttons {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 24px;
}

@media (max-width: 768px) {
  .sfi-hero-desc-buttons {
    justify-content: center;
    gap: 16px;
  }
}

#sfi-steps {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#sfi-steps .form-step {
  scroll-snap-align: center;
}

/* Simple Captcha */
.sfi-captcha-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sfi-modal__head {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 12px;
  position: relative;
}

.sfi-modal__foot {
  margin: 16px 0 0;
}

.sfi-modal__close {
  position: absolute;
  right: -15px;
  top: -24px;
  width: 32px;
  height: 22px;
  border-radius: 0 0 100% 100%;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-dominant-900);
  cursor: pointer;
}

.sfi-captcha-refresh {
  cursor: pointer;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-dominant-800);
  border-radius: 5px;
  text-shadow: 0 1px 0 #000;
}

.sfi-captcha-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  max-width: 420px;
  width: 92%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sfi-captcha-view {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 8px;
}

.sfi-captcha-code {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.25em;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  user-select: none;
}

.sfi-captcha-label {
  display: block;
  margin: 8px 0 6px;
}

.sfi-captcha-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}

.sfi-captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.sfi-btn {
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.sfi-btn-primary {
  background: #111827;
  color: #fff;
}

.sfi-btn-secondary {
  background: #f3f4f6;
}

.sfi-btn-link {
  background: transparent;
  border: 0;
  color: #2563eb;
  padding: 0;
}

.sfi-captcha-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

.sfi-captcha-input {
  outline: none !important;
  border: 1px solid #cbd5e1;
  padding: 10px;
  font-size: 16px;
  color: #111;
}

.sfi-captcha-submit {
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 9px 22px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.sfi-modal__captcha {
  display: block;
  width: 100%;
  height: 70px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.sfi-captcha-hint {
  font-size: 14px;
}

.sfi-modal__msg {
  display: none;
  font-size: 12px;
  color: var(--color-red-500);
  margin: 0 0 8px;
  background-color: rgba(255, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 16px;
  line-height: 180%;
  border-radius: 4px;
  padding: 5px;
}

.sfi-modal__msg.active {
  display: block !important;
}
