
/* Глобально: без горизонтального скролла */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

/* Форма — не шире экрана */
#regForm{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

/* Поля на всю ширину и не распирают контейнер */
#regForm input,
#regForm select,
#regForm textarea{
  width: 100%;
  min-width: 0;
}

/* Choices и intl-tel-input на всю ширину */
#regForm .choices,
#regForm .choices__inner,
#regForm .iti{
  width: 100%;
  max-width: 100%;
}

/* Если есть строки с флекс/грид — позволяем переноситься */
#regForm .row,
#regForm .rows,
#regForm .flex,
#regForm [class*="row"],
#regForm [class*="grid"]{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Две колонки — в одну на мобилке */
@media (max-width: 600px){
  #regForm .form-row,
  #regForm .grid,
  #regForm [class*="cols"]{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #regForm .actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #regForm .actions > *{ width:100%; }
}

/* Медиа: ограничить выпадашки по высоте */
.choices__list--dropdown{ max-height: 50vh; overflow:auto; }

/* Картинки/иконки не выходят за пределы */
#regForm img, #regForm svg{ max-width: 100%; height: auto; }
  
  
  #step2,
.verification-step {
  position: relative; /* важное — контейнер становится reference для absolute overlay */
}

#phoneStep,
.verification-step {
  position: relative; /* важное — контейнер становится reference для absolute overlay */
}


  .modal-overlay {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.5);
			z-index: 9999;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.modal-window {
			background: white;
			border-radius: 8px;
			padding: 24px;
			max-width: 400px;
			width: 90%;
			position: relative;
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		}

		.modal-close {
			position: absolute;
			top: 12px;
			right: 12px;
			background: none;
			border: none;
			font-size: 24px;
			cursor: pointer;
			color: #999;
			line-height: 1;
			padding: 0;
			width: 24px;
			height: 24px;
		}

		.modal-close:hover {
			color: #333;
		}

		.modal-content {
			margin-top: 8px;
		}
  
  
  .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            justify-content: center; /* Add center alignment */
        }

        .contact-item svg {
            margin-right: 10px;
        }

        .contact-item a {
            color: #3366FF;
            text-decoration: none;
            font-size: 16px;
        }

        .contact-item a:hover {
            text-decoration: underline;
        }

        #contactBlock {
            text-align: center; /* Center the entire contact block */
        }
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 4px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3366FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.verification-success {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 10px;
                        color: #4CAF50;
                        font-weight: 500;
                        margin: 15px 0;
                    }
#phone{
    padding-left:67px !important; /* отступ слева для номера */
    text-indent: 23px;
}
/* Стили для валидатора телефона конец*/
/* === Контейнер селекта старт === */
.choices {
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  
  position: relative;
}
.choices__inner {
  background-color: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 6px 12px;        
  min-height: 39px;         
  transition: all 0.2s ease;
  box-shadow: none;
  display: flex;
  align-items: center;      
  overflow: visible;        
}


.choices.is-focused .choices__inner {
  border-color: #2563eb; /* голубая рамка при фокусе */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.choices__item--selectable {
  color: #0f172a;
}

/* === Иконка раскрытия === */
.choices[data-type*="select-one"]::after {
  content: "";
  height: 6px;
  width: 6px;
  border: solid #64748b;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.choices[data-type*="select-one"].is-open::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* === Выпадающий список === */
.choices__list--dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 6px;
  padding: 4px 0;
}

/* === Элементы списка === */
.choices__list--dropdown .choices__item {
  padding: 10px 14px;
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 15px;
  color: #0f172a;
  
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* === Поисковое поле === */
.choices__input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
}
/* Сохраняем скругление при фокусе и открытии */
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  border-radius: 12px !important; 
}

/* === Контейнер селекта конец === */


/* === тултип старт === */
 .info-tooltip {
                      position: relative;
                      display: inline-block;
                      cursor: pointer;
                    }

                    .tooltip-content {
                      display: none;
                      position: absolute;
                      z-index: 100;
                      background: white;
                      border-radius: 8px;
                      padding: 16px;
                      width: 300px;
                      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                    }

                    .info-tooltip:hover .tooltip-content,
                    .info-tooltip:focus .tooltip-content {
                      display: block;
                    }

                    .tooltip-content h4 {
                      margin: 0 0 8px;
                      color: #333;
                      font-size: 14px;
                    }

                    .tooltip-content ul {
                      margin: 0;
                      padding-left: 16px;
                    }

                    .tooltip-content ul li {
                      margin: 4px 0;
                      color: #666;
                      font-size: 13px;
                    }

                    @media (min-width: 768px) {
                      .tooltip-content {
                        left: 100%;
                        top: 50%;
                        transform: translateY(-50%);
                        margin-left: 12px;
                      }
                      
                      .tooltip-content:before {
                        content: '';
                        position: absolute;
                        left: -6px;
                        top: 50%;
                        transform: translateY(-50%);
                        border: 6px solid transparent;
                        border-right-color: white;
                      }
                    }

                   @media (max-width: 767px) {
  /* Tooltip should open below on mobile */
  .tooltip-content {
    display: none;
    position: absolute;
    z-index: 100;
    background: white;
    border-radius: 8px;
    padding: 16px;
    width: 280px;
    top: 100%;                /* place under the trigger */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;         /* gap between trigger and tooltip */
  }

  .tooltip-content:before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;                /* arrow sits above tooltip pointing up to the trigger */
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: white;
  }

  
                    }/* === тултип конец === */



/* === Стилизация степсов старт=== */
 .verification-steps {
                display: flex;
                flex-direction: column;
                gap: 24px;
            }

            .verification-step {
                background: #fff;
                padding: 20px;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            }

            .verification-step.disabled {
                opacity: 0.6;
                background: #f5f5f5;
            }

            .step-text {
                font-size: 15px;
                margin-bottom: 12px;
                color: #333;
            }

            .step-content {
                display: flex;
                gap: 12px;
            }

            .step-content input[type="tel"],
            .step-content input[type="email"] {
                flex: 1;
            }

            .step-content input[type="file"] {
                flex: 1;
                padding: 8px;
                border: 1px dashed #ccc;
                border-radius: 6px;
            }

            .btn {
                min-width: 120px;
            }

            .disabled button,
            .disabled input {
                pointer-events: none;
            }
/* === Стилизация степсов конец=== */

/* === Базовые стили блока старт=== */
 /* базовые стили блока */
    .registration { display:flex; align-items:center; justify-content:center; padding:60px 0; background:#fff; }
    .registration__box { width:100%; max-width:920px; padding:20px; background:#eaf1f9; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,0.06); }

    /* двухколоночная верстка */
    .two-col { display:flex; gap:24px; align-items:flex-start; }
    .form-col { flex: 2 1 0%; }
    .help-col { flex: 1 1 0%; background:#fff; border-radius:8px; padding:18px; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,0.04); }

    h1 { margin:0 0 12px; font-size:22px; }
    .progress { height:8px; background:rgba(0,0,0,0.06); border-radius:8px; margin-bottom:16px; overflow:hidden; }
    .progress__bar { height:100%; background:#3366FF; transition:width .25s ease; }

    form#regForm { display:block; }
    .step { background:transparent; padding:8px 0; }

    .row { display:flex; gap:12px; margin-bottom:12px; }
    .row label { flex:1; display:flex; flex-direction:column; font-size:14px; color:#333; }
    input[type="text"], input[type="tel"], input[type="email"] {
      padding:10px 12px; border:1px solid #cfd8e3; border-radius:6px; font-size:15px; background:#fff;
      margin-top:6px;
    }
    .actions { 
        display: flex; 
        gap: 8px; 
        justify-content: flex-end; 
        margin-top: 16px; 
    }

    .actions button {
        align-items: center;
        border: 1px solid #3366ff;
        border-radius: 8px;
        display: flex;
        font-weight: 500;
        height: 36px;
        padding: 0 16px;
        transition: 0.3s ease-in-out;
        background: #fff;
        font-size: 14px;
    }

    .actions .prev {
        margin-right: auto;
        color: #666;
        border-color: #ddd;
    }

    .actions .next,
    .actions .btn-primary {
        background: #3366ff;
        color: #fff;
    }

    .actions button:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(51,102,255,0.15);
    }

    /* кнопки */
    .btn { padding:10px 14px; border-radius:6px; border:none; cursor:pointer; font-size:15px; }
    .btn-primary { background:#3366FF; color:#fff; }
    .btn-secondary { background:#eef1f7; color:#333; border:1px solid #d6dde6; }
    .btn-help { margin-top:14px; background:#ff7a59; color:#fff; padding:10px 12px; border-radius:6px; border:none; cursor:pointer; }

    .manager-photo { width:100%; height:auto; border-radius:6px; object-fit:cover; margin-bottom:12px; }

    .review p { margin:8px 0; padding:6px 8px; background:#fff; border-radius:6px; }

    /* адаптив */
    @media (max-width:680px) {
      .two-col { flex-direction:column; }
      .help-col { order:2; }
      .form-col { order:1;width:100%;  }
      .row { flex-direction:column; }
      .registration__box { padding:16px; }
      
    }

    .info-block {
      display:flex;
      gap:12px;
      align-items:flex-start;
      background:#ffffff;
      padding:12px;
      border-radius:8px;
      margin-bottom:14px;
      margin-top:-5px;
      box-shadow:0 2px 8px rgba(0,0,0,0.04);
    }
    .info-icon {
      width:54px;
      height:54px;
      flex:0 0 54px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:#eef6ff;
      border-radius:8px;
    }
    .info-content h3 {
      margin:0 0 6px;
      font-size:15px;
      color:#0f1724;
    }
    .info-content ul {
      margin:0;
      padding-left:18px;
      color:#334155;
      font-size:14px;
    }
    .info-content ul li { margin:6px 0; }

/* === Базовые стили блока конец=== */