.formAndImage {
  width: 100%;
  margin: 50px auto;
}

.formAndImage_Block {
  position: relative;

  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns by default */
  gap: 40px; /* Add gap between items */
  width: 95%;
  margin: auto;
  box-sizing: border-box;
  max-width: 1280px;
  color: #000000;
}

.formAndImage_Column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formAndImage_Column h2 {
  margin: 0;
  color: var(--Hittarp-svart);
  font-family: Anton;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 44px;
  text-transform: uppercase;
}

.formAndImage_Column p {
  color: var(--Hittarp-svart);
  font-family: "Glacial Indifference";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.36px;
}

.formAndImage_image {
  position: relative;
  margin: 0;
  width: 100%;
}

.formAndImage_image img {
  display: block;
  top: auto;
  bottom: auto;
  max-height: 465px;
  width: 100%;
  object-fit: contain;
  margin: 0;
  border-radius: 10px;
}

.wpcf7-form p {
  margin-bottom: 24px;
  width: 100%;
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--Hittarp-svart);
}
.formAndImage_form form {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

/* Text inputs, email, select and textareas */
.formAndImage_form .wpcf7-form input[type="text"],
.formAndImage_form .wpcf7-form input[type="email"],
.formAndImage_form .wpcf7-form .wpcf7-email,
.formAndImage_form .wpcf7-form select,
.formAndImage_form .wpcf7-form textarea {
  width: calc(100% - 26px);
  padding: 12px;
  border: 1px solid var(--Hittarp-red1);
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  background-color: var(--Hittarp-vit);
}

/* Additional email field specificity */
.wpcf7-form .wpcf7-form-control.wpcf7-email {
  border: 1px solid #cccccc;
  border-radius: 4px;
  width: 100%;
  display: block;
}

/* Specific styling for select dropdown */
.wpcf7-form select {
  width: auto;
  min-width: 200px;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  cursor: pointer;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--Hittarp-svart);
  outline: none;
}

/* Form field wrapper */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Radio buttons container */
.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

/* Radio button items */
.wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  /* Reset font for radio labels */
  font-family: inherit;
  font-weight: normal;
  font-size: 16px;
}

.wpcf7-radio .wpcf7-list-item label:hover {
  background-color: #f5f5f5;
}

.submitbutton {
  display: flex;
  justify-content: end;
  flex-direction: row-reverse;
}

.submitbutton p {
  display: block;
}

/* Submit button */
.wpcf7-form input[type="submit"] {
  background-color: var(--Hittarp-red1);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--Hittarp-red2);
}

/* Required field asterisk */
.wpcf7-form .required {
  color: var(--Hittarp-red1);
}

/* Adjust for tablets */
@media (max-width: 1024px) {
  .formAndImage_Block {
    gap: 20px;
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }

  .formAndImage_Column {
    width: 95%;
    margin: auto;
  }

  .formAndImage_Column h3 {
  }

  .formAndImage_Column p {
  }
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
  .formAndImage_Block {
    gap: 0px;
    width: 100%;
    padding-bottom: 10px;
  }

  .formAndImage_Column {
    width: 95%;
  }

  .formAndImage_Column h3 {
  }

  .formAndImage_Column p {
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form .wpcf7-email,
  .wpcf7-form select,
  .wpcf7-form textarea {
    padding: 10px;
  }

  .wpcf7-form select {
    width: 100%;
  }
}
