
    
/* ========== ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ========== */
:root {
  --brand:     #1150d8;
  --bg-light:  #e8f2ff;
  --text:      #222;
  --gray:      #f4f4f4;
}

/* ========== БАЗОВАЯ ТИПОГРАФИКА ========== */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* ========== СТРУКТУРА СЕКЦИЙ ========== */
.section {
  padding: 0;
}

.container {
  position:relative;
  background: #f1f2f3;
  border-radius: 8px;
  margin: 0 auto 0 0;
  padding: 50px;
  max-width: none !important;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 100px;
}

/* ========== ЗАГОЛОВКИ ========== */
h2.section-title {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

/* ========== ГРУППЫ ОПЦИЙ ========== */
.option-group {
  margin-bottom: 15px;
}

.option-group legend {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

#step-2 #contact-form label {
  font-size: 14px;
  color: var(--text);
  display: block;        /* чтобы label занимал всю ширину */
}

#step-2 #contact-form label .required-star {
    color: #d40000;
    font-size: 14px;
    margin-left: 4px;
    vertical-align: super;
    
}

/* inline-позиционирование только для тех label, в которых input-радиокнопки */
#step-2 #contact-form .option-item {
  margin-top: 18px;
  display: inline-flex !important;
}

.option-item {
  display: inline-flex;      /* или просто flex */
  align-items: center;
  gap: 20px;                 /* расстояние между input и текстом */
  margin: 0 20px 8px 0;      
  font-size: 16px;
}
.option-item input {
  /* сбрасываем, если нужно */
  margin: 0;
}


/* ========== СПИСОК ПРОДУКТОВ ========== */
.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-item .option-item {
  flex: 1 1 auto;
}

.qty-input {
  width: 90px;
  padding: 6px;
  font-size: 16px;
}

/* ========== САЙДБАР-ПІДСУМОК ========== */
#summary-box {
      display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
}

#summary-box h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.btn-primary {
  display: block;
  background: var(--brand);
  color: #fff;
  padding: 12px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 400;
  text-align: center;
  font-size: 15px;
  margin-top: auto !important;
  /*margin-bottom: 20px;*/
  box-shadow: none !important;
  font-size:14px;
}

#to-step-2 {
  display: none;
  margin-top: 12px;
}

/* ========== СЕКЦИЯ КОНТАКТОВ ========== */
#step-2 {
  background: var(--gray);
  margin-top: -20px;
}

#step-2 .container,
#contact-step {
  display: block;
  width: 100%;
  margin: 0;
  max-width: none;
}

/* ========== КОНТАКТНА ФОРМА ========== */
#contact-form {
  margin-top: 16px;
}

/* Общие правила для всех .form-row */
#contact-form .form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

/* 2 колонки по умолчанию (имя/фамилия) */
#contact-form .form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 колонки по умолчанию (сайт/телефон/почта) */
#contact-form .form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Убираем сайт для физлица, делаем только 2 колонки в третьей строке */
#contact-form.individual .company-only {
  display: none !important;
}
#contact-form.individual .form-row-3 {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Для компании: показываем сайт и возвращаем 3 колонки */
/* показываем грид только для div.container-row */
#contact-form.company .form-row.company-only {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* а для меток сайта убираем всякие гриды */
#contact-form.company label.company-only {
  display: block;
}
#contact-form.company .form-row-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.cust-details {
  display: none;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

#contact-form label {
  display: block;
}

#contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea
),
#contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea
):hover,
#contact-form :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea
):focus {
  width: 100% !important;
  min-height: 40px !important;
  padding: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  /* отключаем любые тени и обводки */
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}


/* Radios и чекбоксы не должны быть 100% ширины */
#contact-form input[type="radio"],
#contact-form input[type="checkbox"] {
  width: auto !important;
  margin: 0;              /* сбросим старые отступы */
}

/* сделаем лейбл flex-контейнером и зададим gap */
#contact-form .option-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;              /* ровно 20px между чекбоксом и текстом */
}


.company-only {
  display: none;
}

#contact-form textarea {
  resize: vertical;
}


/* повідомлення про помилку під полями */
.field-error {
  color: #d40000;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* підсвічування поля з помилкою */
.input-error {
  /*border-color: #d40000 !important;*/
}


#sent-panel {
  display: flex;
  justify-content: space-between;
  background: #f1f2f3;
  border-radius: 8px;
  align-items: center;
  padding: 30px 50px 0 50px;
  margin-bottom: -15px;
  position: relative;
/*  max-width: 1400px; */
  z-index: 10;
}

/* повідомлення «замовлення відправлено» під формою ліцензій */
#order-sent-msg{
  margin: 0;
  color: #219a00;
  font-weight: 600;
  display:none;        /* показуємо лише після успіху */
}
/* кнопка «Очистити» у правому верхньому куті контейнера */
.clear-btn{
  background:#fff;
  border:1px solid var(--brand);
  color:var(--brand);
  border-radius:25px;
  padding:6px 14px 6px 30px;
  font-size:14px;
  cursor:pointer;
  background-image:url('data:image/svg+xml;utf8,<svg fill="%231150d8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 6.586l4.95-4.95 1.414 1.414L9.414 8l4.95 4.95-1.414 1.414L8 9.414l-4.95 4.95-1.414-1.414L6.586 8 1.636 3.05l1.414-1.414L8 6.586z"/></svg>');
  background-repeat:no-repeat;
  background-size:16px;
  background-position:12px 50%;
  display: none;
}
.clear-btn:hover{
  background:#f7faff;
}
/* горизонтальная разделительная линия */
.section-separator {
  border: none;
  border-top: 1px inset #ccc;      /* вдавленный эффект */
  margin: -20px 20px 50px 20px !important; 
  width: auto;                      
  display: block;
}

#form-success {
  margin-top: 60px !important;  
}













@media (min-width: 768px) and (max-width: 1199px) {
    .container {
      padding: 30px;
      grid-template-columns: 1fr 250px;
      gap: 30px;
    }
}

@media (max-width: 767px) {
  .container {
      padding: 15px 15px 15px 15px;
      grid-template-columns: 1fr 250px;
      gap: 30px;
    }
  #lic-selector .container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  /* чуть отступ сверху, чтобы summary-box не слипался с формой */
  #summary-box {
    margin-top: 0;
  }

  /* 2) Контактный шаг: тоже одна колонка */
  #step-2 .container,
  #contact-step {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding-bottom: 50px;
  }

  /* 3) А в самой форме — все поля в один столбец */
  .form-row-2,
  .form-row-3,
    #contact-form.company .form-row-3,
    #contact-form.individual .form-row-3 {
    grid-template-columns: 1fr !important;
  }

  /* 4) Чтобы поля занимали всю ширину */
  #contact-form input,
  #contact-form textarea {
    width: 100%;
  }
 
  .section-separator {
    margin-top: 20px !important; 
    margin-bottom: -5px !important; 
  } 
  #step-2 .container {
    margin-top: 10px;
  }
  
  .btn-primary{
      margin-top: 15px !important; 
      margin-bottom: 10px !important; 
  }
  
  #sent-panel {
      padding: 15px;
      margin-bottom: -9px;
  }
}