/* templates/static/css/offer.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 40px;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

h2 {
  color: #34495e;
  margin: 25px 0 15px 0;
  font-size: 1.5em;
}

.offer-text {
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  margin-bottom: 30px;
  line-height: 1.8;
}

.offer-text p {
  margin-bottom: 15px;
  font-size: 16px;
}

.offer-text strong {
  color: #2c3e50;
  display: block;
  margin-top: 20px;
  font-size: 1.1em;
}

.accept-section {
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 2px solid #dee2e6;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 15px;
  cursor: pointer;
}

.checkbox label {
  font-size: 18px;
  color: #2c3e50;
  cursor: pointer;
  flex: 1;
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

button {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 300px;
}

.btn-accept {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
}

.btn-accept:hover:not(:disabled) {
  background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-accept:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.btn-decline {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.btn-decline:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
}

/* Форма регистрации */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group input[required] {
  background-color: #fff9e6;
}

.btn-submit {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1c5f8a 100%);
  transform: translateY(-2px);
}

.btn-back {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
  border: none;
}

.btn-back:hover {
  background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
  transform: translateY(-2px);
}

.type-info {
  background: #e8f4fc;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid #3498db;
  margin-top: 30px;
}

.type-info h3 {
  color: #2980b9;
  margin-bottom: 10px;
}

.message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 20px;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    max-width: 100%;
  }

  .offer-text {
    max-height: 400px;
    font-size: 14px;
  }
}
