.container {
  padding-top: 100px;
  padding-bottom: 100px;
}
/* Ensure consistent font and form container styles */
.template1-form {
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding-left: 100px;
  padding-right: 100px;
}

/* Input Label Styling */
.template1-form label {
  display: block;
  font-size: 20px;
  font-weight: 600 !important;
  margin-bottom: 8px;
  color: #000;
}

/* Hide labels but keep styling */
.template1-form .wpforms-label-hide {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 8px 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Input & Textarea Styling */
.template1-form input[type="text"],
.template1-form input[type="email"],
.template1-form input[type="tel"],
.template1-form textarea {
  width: 100%;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
}

/* Focus styling */
.template1-form input:focus,
.template1-form textarea:focus {
  border-color: #000;
}

/* Placeholder Styling */
.template1-form input::placeholder,
.template1-form textarea::placeholder {
  color: transparent;
}

/* Submit Button Styling */
.template1-form button[type="submit"],
.template1-form input[type="submit"] {
  width: auto;
  border: none;
  background-color: #fff;
  color: #000;
  padding: 10px 24px;
  font-size: 18px;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 0 2.5px #000 inset;
}

/* Submit Button Hover */
.template1-form button[type="submit"]:hover,
.template1-form input[type="submit"]:hover {
  background-color: #000;
  color: #fff;
}

/* Submit Button Container */
.template1-form .wpforms-submit-container {
  text-align: center;
  margin-top: 10px;
  padding-bottom: 48px !important;
}

/* Character Counter Below Textarea */
.template1-form .wpforms-field textarea + small {
  display: inline-block;
  font-size: 14px;
  color: #757575;
  margin-left: 8px;
  transform: translateY(-24px); /* Tõstab üles labeli tasemele */
}

/* Character Counters */
.template1-form .tinymce-char-counter {
  font-size: 12px;
  color: #757575;
  margin-left: 8px;
  white-space: nowrap;
}

.template1-form .tinymce-char-counter-inline {
  font-size: 14px;
  color: #757575;
  margin-left: 8px;
  white-space: nowrap;
  display: inline-block;
}

/* Field Padding Reset */
.template1-form .wpforms-container .wpforms-field {
  padding: 0;
}

/* Center Form Title */
#kontakt .form-title {
  text-align: center;
  margin-bottom: 3.75rem;
}

/* Send Message Title */
#kontakt .sendMessageTitle1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
}

/* Description Style */
#kontakt .sendMessageDesc {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.wpforms-submit.loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 2em !important;
}

.wpforms-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5em;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  border: 2px solid #fff;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#wpforms-1453-field_7,#wpforms-1453-field_7-last,#wpforms-1453-field_1,#wpforms-1453-field_2,#wpforms-1453-field_0,#wpforms-1453-field_0-last,#wpforms-1453-field_6,#wpforms-1455-field_1 {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
#wpforms-1453-field_4 {
  border: 0;
  border-radius: 0;
  padding: 0;
  padding-top: 36px !important;
  padding-bottom: 48px !important;
}
#wpforms-1453-field_4:hover {
  background-color: transparent !important;
}
.wpforms-field-label-inline{
  font-size: 16px !important;
}
.wpforms-container#wpforms-1453 {
  margin-bottom: 0;
}
.template1-form label .wpforms-required-label {
  color: inherit;
}
