.container {
  padding-top: 100px;
  padding-bottom: 100px;
}
.template3-form {
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}
.template3-form .wpforms-container {
	background-color: white;
	padding: 25px;
	width: 100%;
	border-radius: 5%;
}
.template3-form h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: #222;
}

.template3-form .wpforms-field-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.template3-form .wpforms-field {
    display: flex;
    flex-direction: column;
}
/* Placeholder Styling */
.template3-form input::placeholder,
.template3-form textarea::placeholder {
  color: transparent;
}
/* Input Label Styling */
.template3-form label {
  display: block;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 8px;
  color: #000;
}
/* Character Counter Below Textarea */
.template3-form .wpforms-field small {
  font-size: 14px !important;
  color: #757575;
  margin-left: 8px;
}
/* Hide labels but keep styling */
.template3-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;
}

/* Center Form Title */
#kontakt .form-title {
  text-align: center;
  margin-bottom: 3.75rem;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.template3-form input[type="text"],
.template3-form input[type="email"],
.template3-form input[type="number"],
.template3-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    height: auto;
    outline: none;
}

.template3-form textarea {
    height: 120px;
    resize: vertical;
}

.template3-form input:focus,
.template3-form textarea:focus {
    border-bottom-color: #66afe9;
    box-shadow: none;
}

.template3-form .wpforms-submit {
    width: auto;
    background-color: var(--color_one);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: 1px solid #222;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    text-transform: none;
}

.template3-form .wpforms-submit:hover {
    background-color: var(--color_two) !important;
	color: #000 !important;

}

.template3-form .wpforms-confirmation-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
    background: none;
    border: none;
    padding: 0;
	appearance: none;
}

.template3-form .wpforms-confirmation-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .template3-form {
        padding: 20px;
        margin: 10px auto;
    }

    .template3-form input,
    .template3-form textarea {
        font-size: 14px;
    }

    .template3-form h3 {
        font-size: 1.3em;
    }
}
/* 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;
}
/* Placeholder Styling */
.template3-form input::placeholder,
.template3-form textarea::placeholder {
  color: transparent;
}

/* Submit Button Styling */
.template3-form button[type="submit"],
.template3-form input[type="submit"] {
  border: 1px solid #000;
  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 */
.template3-form button[type="submit"]:hover,
.template3-form input[type="submit"]:hover {
  background-color: #000;
  color: #fff;
}

/* Submit Button Container */
.template3-form .wpforms-submit-container {
  text-align: center;
  padding-bottom: 28px !important;
}
.template3-form label .wpforms-required-label {
  color: inherit;
}
#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;
  font-size: 16px !important;
}
#wpforms-1453-field_4:hover {
  background-color: transparent !important;
}
.template3-form .wpforms-field-label-inline{
  font-size: 16px !important;
}
.wpforms-container#wpforms-1453 {
  margin-bottom: 0;
}

.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); }
}