/* Основні стилі для форми */
/* Сітка для двох колонок */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Стилі для полів вводу */
.cf7-custom-form label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-weight: 500;
}

.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cf7-custom-form input[type="text"]:focus,
.cf7-custom-form input[type="email"]:focus,
.cf7-custom-form input[type="tel"]:focus,
.cf7-custom-form textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.cf7-custom-form input::placeholder,
.cf7-custom-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Стилі для чекбоксів */
.services-section {
  margin-bottom: 25px;
}

.services-label {
  display: block;
  color: white;
  margin-bottom: 15px;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cf7-custom-form .wpcf7-checkbox {
  display: contents;
}

.cf7-custom-form .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}


.cf7-custom-form .wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .cf7-custom-form .wpcf7-checkbox {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cf7-custom-form .wpcf7-list-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d53f8c;
    border-radius: 4px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

.cf7-custom-form .wpcf7-list-item input[type="checkbox"]:checked {
    background-color: #d53f8c;
}

.cf7-custom-form .wpcf7-list-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: -2px;
    left: 4px;
}

.cf7-custom-form .wpcf7-list-item label {
  margin: 0;
  color: white;
  cursor: pointer;
  font-weight: normal;
}

.cf7-custom-form  .wpcf7-list-item-label {
    color: white;
}

/* Стилі для текстової області */
.message-section {
  margin-bottom: 25px;
}

.cf7-custom-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Стилі для кнопки відправки */
.submit-section {
  text-align: center;
}

.cf7-custom-form .submit-btn {
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.cf7-custom-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Стилі для повідомлень про помилки */
.cf7-custom-form .wpcf7-not-valid-tip {
  position: absolute;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 5px;
}

.cf7-custom-form .wpcf7-not-valid {
  border-color: #ff6b6b !important;
}

/* Стилі для повідомлень про успіх */
.cf7-custom-form .wpcf7-mail-sent-ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}