/* ==================================================================
   МОДАЛЬНЫЕ ОКНА
   ================================================================== */
.modal.fade .modal-dialog {
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #0d6efd 0%, #1d8ce0 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1) brightness(100%);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1.5rem;
  border-radius: 0 0 12px 12px;
}

.modal-table {
  font-size: 0.85rem;
}

.modal-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-top: none;
}

.modal-table td {
  vertical-align: middle;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
  opacity: 1;
}

/* ==================================================================
   МОДАЛЬНОЕ ОКНО ДОГОВОРА
   ================================================================== */
.contract-preview {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.contract-preview-content {
  background-color: white;
  padding: 2rem;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
}

.contract-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contract-title {
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 1rem;
}

.contract-date {
  margin-bottom: 1rem;
}

.contract-party {
  margin-bottom: 1rem;
  text-align: justify;
}

.contract-clause {
  margin-bottom: 0.5rem;
}

.contract-signatures {
  margin-top: 3rem;
}

.signature-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.signature-block {
  width: 45%;
  text-align: center;
}

.signature-name {
  border-top: 1px solid #000;
  padding-top: 0.5rem;
  margin-top: 2rem;
}

/* ==================================================================
   ИНФОРМАЦИОННЫЕ БЛОКИ В ФОРМАХ
   ================================================================== */
.legal-notice {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-notice-title {
  font-weight: 600;
  color: #856404;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-notice-content {
  color: #856404;
  line-height: 1.6;
  margin: 0;
}

.warning-box {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.warning-box-title {
  font-weight: 600;
  color: #721c24;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box-content {
  color: #721c24;
  line-height: 1.6;
  margin: 0;
}

.info-box {
  background: #d1ecf1;
  border-left: 4px solid #0dcaf0;
  border-radius: 4px;
  padding: 1.5rem;
}

.info-box-title {
  font-weight: 600;
  color: #0c5460;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box-content {
  color: #0c5460;
  line-height: 1.6;
  margin: 0;
}