/* FORMULARZ KONTAKTOWY */
.contact-message-form {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 42px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 116, 95, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(43, 39, 28, 0.10);
  backdrop-filter: blur(6px);
}

/* Odstępy pól */
.contact-message-form .form-item,
.contact-message-form .form-wrapper {
  margin: 0 0 24px;
}

/* Label */
.contact-message-form label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b2a22;
}

/* Gwiazdka wymagana */
.contact-message-form .form-required::after {
  content: "*";
  display: inline-block;
  margin-left: 6px;
  color: #b8751c;
  font-size: 16px;
  line-height: 1;
  background: none;
}

/* Pola tekstowe */
.contact-message-form input[type="text"],
.contact-message-form input[type="email"],
.contact-message-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(115, 120, 101, 0.28);
  border-radius: 14px;
  background: #fff;
  color: #1f211b;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.contact-message-form textarea {
  min-height: 230px;
  resize: vertical;
}

/* Focus */
.contact-message-form input[type="text"]:focus,
.contact-message-form input[type="email"]:focus,
.contact-message-form textarea:focus {
  border-color: #767c67;
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(118, 124, 103, 0.16);
}

/* Actions */
.contact-message-form .form-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

/* Główny przycisk */
.contact-message-form input[type="submit"],
.contact-message-form .button {
  min-height: 58px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: #737867;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

/* Przycisk wyślij na pełną szerokość */
.contact-message-form #edit-submit {
  width: 100%;
  background: #737867;
  box-shadow: 0 12px 26px rgba(87, 93, 75, 0.22);
}

.contact-message-form #edit-submit:hover {
  background: #5f6556;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(87, 93, 75, 0.28);
}

.contact-message-form #edit-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(87, 93, 75, 0.20);
}

/* Ukrycie przycisku podglądu */
.contact-message-form #edit-preview {
  display: none;
}

/* Komunikat antibot / noscript */
.contact-message-form .antibot-message {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff3d8;
  color: #4d3510;
  font-weight: 600;
}

/* Walidacja HTML5 / Drupal */
.contact-message-form input:invalid:not(:placeholder-shown),
.contact-message-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(170, 70, 45, 0.55);
}

/* Mobile */
@media (max-width: 767px) {
  .contact-message-form {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .contact-message-form label {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .contact-message-form input[type="text"],
  .contact-message-form input[type="email"],
  .contact-message-form textarea {
    min-height: 54px;
    padding: 14px 15px;
    font-size: 15px;
    border-radius: 12px;
  }

  .contact-message-form textarea {
    min-height: 190px;
  }

  .contact-message-form .form-actions {
    margin-top: 22px;
  }
}