/* agreement.css — оформление страницы «Соглашение о сотрудничестве».
   Повторяет вид страниц ордеров (style.css), добавляет вывод многостраничного
   документа. Ничего из style.css не переопределяет. */

#agreement section {
  border: 1px solid #232227;
  background-color: #15161c;
  padding: 20px 50px;
  margin-bottom: 10px;
  transition: background-color .3s ease, border-color .3s ease;
}

#agreement section:hover {
  border-color: #8471aa;
  background-color: #201c2a;
}

#agreement section .name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

#agreement .button-section {
  text-align: center;
  margin-top: 50px;
}

#agreement .button-section .btn {
  font-size: 22px;
}

#agreement .back-button-section {
  text-align: center;
  margin-bottom: 40px;
}

#agreement .back-button-section .btn {
  font-size: 18px;
}

#agreement #result {
  display: none;
}

#agreement .textarea-control {
  resize: vertical;
  min-height: 120px;
}

#agreement #pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

#agreement .page-block {
  text-align: center;
}

#agreement .page-canvas {
  display: block;
  width: 794px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55);
  margin-bottom: 14px;
}


/* переключатель ведомства */
#agreement .radio-group{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#agreement .radio{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #dee2e6;
  user-select: none;
}

#agreement .radio input{
  display: none;
}

#agreement .radio-custom{
  width: 20px;
  height: 20px;
  border: 2px solid #6c757d;
  border-radius: 50%;
  background: #212529;
  position: relative;
  transition: all .2s ease;
  flex-shrink: 0;
}

#agreement .radio-custom::after{
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #b490fe;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s ease;
}

#agreement .radio:hover .radio-custom{
  border-color: #b490fe;
}

#agreement .radio input:checked + .radio-custom{
  border-color: #b490fe;
}

#agreement .radio input:checked + .radio-custom::after{
  transform: translate(-50%, -50%) scale(1);
}

#agreement .radio input:focus-visible + .radio-custom{
  box-shadow: 0 0 0 4px rgba(13,110,253,.25);
}

#agreement .radio input:disabled + .radio-custom{
  opacity: .5;
  cursor: not-allowed;
}

