/* ===== Bclean CF7 (formos klase: bclean-cf7) ===== */

.bclean-cf7 .wpcf7 form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

/* Make CF7 <p> wrappers not break the grid */
.bclean-cf7 .wpcf7 form p{
  margin: 0;
  display: contents;
}

/* Make labels act as the grid items */
.bclean-cf7 .wpcf7 form label{
  display: block;
  width: 100%;
}

/* Field styling */
.bclean-cf7 input[type="text"],
.bclean-cf7 input[type="email"],
.bclean-cf7 input[type="tel"],
.bclean-cf7 input[type="url"],
.bclean-cf7 input[type="number"],
.bclean-cf7 select,
.bclean-cf7 textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  border-radius: 999px;
  padding: 16px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.bclean-cf7 input[type="text"],
.bclean-cf7 input[type="email"],
.bclean-cf7 input[type="tel"],
.bclean-cf7 select{
  min-height: 56px;
}

/* Textarea look */
.bclean-cf7 textarea{
  border-radius: 22px;
  min-height: 150px;
  padding: 18px 22px;
  resize: vertical;
}

/* Make ONLY the message label span both columns */
.bclean-cf7 .wpcf7 form label.cf7-span-2{
  grid-column: 1 / -1;
}

/* Placeholder */
.bclean-cf7 ::placeholder{
  color: #9aa0a6;
  opacity: 1;
}

/* Focus */
.bclean-cf7 input:focus,
.bclean-cf7 select:focus,
.bclean-cf7 textarea:focus{
  border-color: #d6d6d6;
  box-shadow: 0 0 0 4px rgba(31,199,125,0.10);
}

/* Select arrow */
.bclean-cf7 select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 54px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa0a6 50%),
    linear-gradient(135deg, #9aa0a6 50%, transparent 50%);
  background-position:
    calc(100% - 26px) 50%,
    calc(100% - 20px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Submit button (NOT full width on desktop) */
.bclean-cf7 .wpcf7-submit{
  grid-column: auto;           /* right column */
  justify-self: start;      /* change to 'end' for right aligned */
  width: auto !important;   /* prevents theme forcing 100% */
  display: inline-block;

  border: 0;
  cursor: pointer;
  min-height: 56px;
  padding: 16px 75px 16px 35px;
  border-radius: 999px;

  background-color: #212E3B;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%230299aa'/%3E%3Cpath d='M18 13l7 7-7 7' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) 50%;
  background-size: 40px 40px;

  transition: transform .15s ease, filter .15s ease;
}

.bclean-cf7 .wpcf7-submit:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.bclean-cf7 .wpcf7-submit:active{ transform: translateY(0); }

/* Response output */
.bclean-cf7 .wpcf7-response-output{
  grid-column: 1 / -1;
  margin: 12px 0 0;
  border-radius: 14px;
}

/* Mobile: stack */
@media (max-width: 767px){
  .bclean-cf7 .wpcf7 form{ grid-template-columns: 1fr; }
  .bclean-cf7 .wpcf7 form label.cf7-span-2{ grid-column: 1 / -1; }

  /* Optional: make button full width on mobile (remove if you don't want) */
  .bclean-cf7 .wpcf7-submit{
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100% !important;
  }
}




