/* Переменни и основни настройки */
:root {
  --bg-color: #000000;
  --text-color: #ACAD83;
  --accent-red: #CC0000;
  --border-color: #333333;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

header img, footer img {
  width: 100%;
  height: auto;
  display: block;
}

/* Структура */
.main-content {
  display: flex;
  gap: 20px;
  padding: 20px 10px;
  background-color: #000000;
}

.form-section {
  flex: 2;
}

.gallery-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.gallery-section img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 4px;
}

/* Заглавна част на формуляра */
.form-title-group {
  text-align: center;
  margin-bottom: 20px;
}

.form-title-group h2 {
  color: var(--text-color);
  font-style: italic;
  margin-top: 10px;
}

/* Полета на формуляра */
.form-group {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
}

.form-group.text-area-group {
  align-items: flex-start;
}

.form-group label {
  width: 200px;
  text-align: right;
  padding-right: 15px;
  font-size: 14px;
  font-style: italic;
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group input[type="tel"], 
.form-group input[type="url"], 
.form-group input[type="date"], 
.form-group select, 
.form-group textarea {
  flex: 1;
  padding: 6px 8px;
  background-color: #ffffff;
  border: 1px solid var(--text-color);
  font-family: inherit;
  font-size: 13px;
  color: #000000;
}

.input-inline {
  display: flex;
  gap: 10px;
  flex: 1;
}

.input-inline input {
  flex: 1;
}

.required-star {
  color: var(--accent-red);
  font-weight: bold;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

/* Чекбоксове */
.checkbox-title {
  text-align: center;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 15px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 20px auto;
}

.checkbox-grid label {
  font-size: 14px;
  cursor: pointer;
}

/* Бутон и Общи условия */
.terms-section, .submit-section {
  text-align: center;
  margin: 15px 0;
}

.terms-section a {
  color: var(--text-color);
}

.btn-submit {
  background-color: #333333;
  color: #ffffff;
  padding: 10px 30px;
  border: 1px solid var(--text-color);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--accent-red);
}

/* Адаптивност за мобилни устройства */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }
}

/* Captcha Centrirane */
.captcha-section {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}