@charset "UTF-8";
.hide {
  display: none !important;
}

.atc-card {
  font-family: "Noto Sans Hebrew", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 10px;
  background-color: #fdfdfb;
  box-shadow: 0px 4px 30px #c7c2b8;
  /* карточка открыта */
}
.atc-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.atc-card h4 {
  font-size: 20px;
  margin-top: 0;
}
.atc-card p {
  font-size: 18px;
  margin: 0;
}
.atc-card.is-open .atc-cv-row__details {
  max-height: 2000px;
  /* достаточно большое значение */
}

.atc-button,
.atc-button[type=submit] {
  display: inline-block;
  padding: 12px 12px;
  width: 100%;
  max-width: 170px;
  background: linear-gradient(87.27deg, #b99141 -5.35%, #f5ebaf 107.17%);
  border-radius: 5px;
  position: relative;
  font-family: "Open Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  border: none;
  color: #1e1e1e;
  white-space: nowrap;
}
.atc-button:hover,
.atc-button[type=submit]:hover {
  filter: brightness(1.1);
}
.atc-button i.arr-ic,
.atc-button[type=submit] i.arr-ic {
  padding-left: 10px;
}

.atc-button[type=submit] {
  font-weight: 700;
}
.atc-button[type=submit][disabled] {
  pointer-events: none;
  filter: brightness(0.81);
}

.atc-loader {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  margin-bottom: 3px;
  border-radius: 50%;
  display: inline-block;
  animation: rotate 1s linear infinite;
}
.atc-loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 2px solid #d7d7d7;
  animation: prixClipFix 2s linear infinite;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

i.arr-ic {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' class='bi bi-chevron-down' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  transition: transform 200ms ease;
}

.atc-cv-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  /* перенос на малых экранах */
  padding: 20px 30px;
}
.atc-cv-row__1 {
  flex: 1 1 30%;
  min-width: 200px;
}
.atc-cv-row__2, .atc-cv-row__3 {
  flex: 1 1 20%;
  min-width: 160px;
}
.atc-cv-row__4 {
  flex: 1 1 15%;
  min-width: 120px;
  text-align: left;
}
.atc-cv-row p {
  color: #776b5d;
}
.atc-cv-row a.atc-showmore i.arr-ic {
  padding-left: 10px;
}
.atc-cv-row a.atc-showmore[aria-expanded=true] .arr-ic {
  transform: rotate(180deg);
}

.atc-cv-row__details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 240ms ease;
}

.atc-cv-row__descr {
  padding: 20px 30px;
}

.atc-cv-row__formsend {
  background-color: #eeead7;
  padding: 20px;
}

/***** контейнер формы в строку + адаптивное поведение **********/
.atc-form .atc-form--inline {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  /* перенос на малых экранах */
  direction: rtl;
  /* раз у тебя тексты на иврите */
}

.atc-form .atc-input {
  min-width: 160px;
  padding: 12px 12px;
  border-radius: 10px;
  font: inherit;
  outline: none;
  background: #ffffff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border: none;
  line-height: 1.4;
  direction: rtl;
}
.atc-form .atc-input:focus {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.2);
}

/* кастомный upload */
.atc-file {
  position: relative;
  flex: 1 1 230px;
  min-width: 180px;
  display: flex;
  align-items: center;
  /* прячем нативный input, но оставляем доступным с клавиатуры через label */
}
.atc-file input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* псевдо-поле с иконкой upload внутри */
.atc-file-label {
  display: block;
  position: relative;
  width: 100%;
  padding: 12px 12px 12px 44px;
  /* слева место под иконку (RTL) */
  background: #ffffff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  color: #6b7280;
  line-height: 1.4;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  inset: 0;
  pointer-events: none;
  /* чтобы клик шел в input */
  /* Стили ошибки у поля файла (если используете) */
}
.atc-file-label::after {
  content: "";
  position: absolute;
  left: 12px;
  /* иконка справа, т.к. RTL */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  /* inline SVG иконка upload */
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 16V4m0 0l-4 4m4-4l4 4' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 16v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.atc-file-label::before {
  content: attr(data-placeholder);
}
.atc-file-label.has-file {
  color: #111;
}
.atc-file-label.has-file::before {
  content: attr(data-text);
  /* показываем имя файла */
  opacity: 1;
}
.atc-file-label .atc-file .is-error ~ .atc-file-label,
.atc-file-label .atc-file .atc-file-label.error {
  color: #b91c1c;
}
.atc-file-label input[type=file] {
  position: relative;
  z-index: 2;
  /* выше лейбла для клика */
  opacity: 0;
  /* скрыт визуально, но кликабелен */
  width: 100%;
  height: 44px;
  /* подстройте под ваш дизайн */
  cursor: pointer;
}

/* имя выбранного файла */
.atc-file-name {
  margin-inline-start: 8px;
  color: #111827;
  font-size: 0.7rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: absolute;
  bottom: -18px;
}

.atc-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
  position: relative;
}

.atc-input.is-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.atc-error-text {
  color: #b91c1c;
  font-size: 0.7rem;
  position: absolute;
  bottom: -18px;
  right: 0;
}

.atc-msg {
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 8px;
}

.atc-msg--ok {
  background: #ecfff1;
  border: 1px solid #46b450;
}

.atc-msg--error {
  background: #fff7ed;
  border: 1px solid #b45309;
}

/* на очень узких экранах растягиваем элементы на всю ширину */
@media (max-width: 767px) {
  .atc-cv-row {
    gap: 10px;
    padding: 15px;
  }
  .atc-cv-row__1, .atc-cv-row__2, .atc-cv-row__3, .atc-cv-row__4 {
    flex: 1 1 48%;
    min-width: 0;
  }
  .atc-cv-row__2 {
    text-align: center;
  }

  .atc-form .atc-input,
.atc-button.atc-submit {
    flex: 1 1 100%;
    min-width: 0;
  }

  .atc-form .atc-input,
.atc-file-label,
.atc-button {
    padding: 8px;
  }

  .atc-button[type=submit] {
    max-width: none;
  }
}