:root {
  --hm-gold:   #dfb66f;
  --hm-dark:   #191919;
  --hm-dark2:  #222222;
  --hm-white:  #ffffff;
}

.hm-section-title {
  font-family: 'Roboto Flex', Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.2;
  color: var(--hm-dark);
  margin: 0 0 16px;
}
.hm-section-title--dark { color: #191919; }

.hm-form-section {
  background: #F9F9F9;
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.hm-form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.hm-form-section__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.hm-form-section__subtitle {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hm-dark);
  margin: 0;
}

/* ── Contact Form 7 стилі ─────────────────── */
.hm-form-section .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Рядок з двох полів */
.hm-form-row p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.wpcf7 form .wpcf7-response-output {
        color: #e57373;
}

/* Лейбл */
.hm-form-section .wpcf7-form label,
.hm-form-section label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--hm-dark);
}

/* Текстові поля */
.hm-form-section .wpcf7-form input[type="text"],
.hm-form-section .wpcf7-form input[type="email"],
.hm-form-section .wpcf7-form input[type="tel"],
.hm-form-section .wpcf7-form input[type="number"],
.hm-form-section .wpcf7-form select,
.hm-form-section .wpcf7-form textarea {
  width: 100%;
    background: rgb(255 255 255);
border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--hm-dark);
  outline: none;
  transition: border-color .22s, background .22s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.hm-form-section .wpcf7-form input:focus,
.hm-form-section .wpcf7-form select:focus,
.hm-form-section .wpcf7-form textarea:focus {
  border-color: var(--hm-gold);
  background: rgba(255,255,255,0.08);
}
.hm-form-section .wpcf7-form input::placeholder,
.hm-form-section .wpcf7-form textarea::placeholder {
  color: var(--hm-dark);
}

/* Select arrow */
.hm-form-section .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.hm-form-section .wpcf7-form select option {
  background: var(--hm-dark2);
  color: var(--hm-white);
}

/* Textarea */
.hm-form-section .wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.hm-form-section .wpcf7-form .wpcf7-checkbox label,
.hm-form-section .wpcf7-form .wpcf7-acceptance label {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--hm-dark);
  cursor: pointer;
  margin-bottom: 30px;
}
.hm-form-section .wpcf7-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 3px;
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  padding: 0;
  cursor: pointer;
  accent-color: var(--hm-gold);
}

/* Submit кнопка */
.hm-form-section .wpcf7-form input[type="submit"],
.hm-form-section .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-dark);
  color: var(--hm-white);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 31px;
  border: none;
  cursor: pointer;
  transition: background .22s, color .22s;
  white-space: nowrap;
  width: 100%;
}
.hm-form-section .wpcf7-form input[type="submit"]:hover {
  background: var(--hm-gold);
  color: var(--hm-dark);
}

/* Повідомлення CF7 */
.hm-form-section .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  border: 1px solid;
}
.hm-form-section .wpcf7-mail-sent-ok {
  border-color: #4caf50;
  background: rgba(76,175,80,0.1);
  color: #81c784;
}
.hm-form-section .wpcf7-validation-errors,
.hm-form-section .wpcf7-mail-sent-ng {
  border-color: #f44336;
  background: rgba(244,67,54,0.1);
  color: #e57373;
}
.hm-form-section .wpcf7-not-valid-tip {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #e57373;
  margin-top: 4px;
}
.hm-form-section .wpcf7-form .wpcf7-not-valid {
  border-color: #f44336 !important;
}

.country-list li.country {
    color: var(--hm-dark);
}

@media (max-width: 768px) {
  .hm-form-section { padding: 64px 0; }
  .hm-form-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hm-form-section__text { position: static; }
  .hm-form-row p { grid-template-columns: 1fr; }
}