.hos-contact {
  background: transparent;
  padding: 64px 0;
}
@media (max-width: 1000px) {
  .hos-contact {
    background: transparent;
    padding: 48px 0;
  }
}
.hos-contact__grid {
  display: grid;
  gap: 48px;
}
.hos-contact--has-media .hos-contact__grid {
  grid-template-columns: 1.2fr 1fr;
}
.hos-contact--media-right .hos-contact__grid {
  grid-template-columns: 1fr 1.2fr;
}
.hos-contact--no-media .hos-contact__grid {
  grid-template-columns: 1fr;
}



@media (max-width: 992px) {
 
  .hos-contact__grid {
display: flex!important;
flex-direction: column!important;
gap:32px;
  }
  .hos-contact--video   .hos-contact__grid {
    flex-direction: column-reverse!important;
  }
}

.hos-contact--media-right .hos-contact__media {
  order: 2;
}
.hos-contact--media-right .hos-contact__form {
  order: 1;
}

.hos-contact__media-inner {
  overflow: hidden;
  border-radius: 32px;
  height: 100%;
}
.hos-contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hos-contact__video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #151619;
}
@media (max-width: 992px) {
 .hos-contact__video-wrap {
    height: 280px;
  }
}
.hos-contact__video-wrap iframe,
.hos-contact__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hos-contact__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 48px;
  width: 100%;
}

@media (max-width: 1000px) {
  .hos-contact__head {
    margin-bottom: 32px;

  }
}

/* CUSTOM CHECKBOX – acceptance */
.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"] {
  /* reset */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;

  /* box */
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #656974;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.08);

  display: inline-block;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  top: -4px;
}

/* ikona „ptaszka” */
.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"]::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

/* zaznaczone */
.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"]:checked {
  background: #ff7031;
  border-color: #ff7031;
  box-shadow: 0 6px 20px rgba(255, 112, 49, 0.35),
    0 0 0 4px rgba(255, 112, 49, 0.18);
}

.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* hover / focus */
.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"]:hover {
  border-color: #ff7031;
}

.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"]:focus-visible {
  outline: 2px solid #ff7031;
  outline-offset: 3px;
}

.hos-contact__heading {
  margin-bottom: 12px;
}
.hos-contact__lead {
  margin: 0;
  color: #697289;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hos-contact {
    padding: 40px 0;
  }
  .hos-contact__heading {
    font-size: 36px;
  }
}

/* CF7 form styling inside */
.hos-contact__cf7 .wpcf7 {
  width: 100%;
}
.hos-contact__cf7 form.wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hos-contact__cf7 form.wpcf7-form label {
  display: block;
  width: 100%;
}
.hos-contact__cf7 form.wpcf7-form label.half {
  width: calc(50% - 8px);
}
@media (max-width: 768px) {
  .hos-contact__cf7 form.wpcf7-form label.half {
    width: 100%;
  }
}
.hos-contact__cf7 input[type="text"],
.hos-contact__cf7 input[type="email"],
.hos-contact__cf7 input[type="tel"],
.hos-contact__cf7 textarea,
.hos-contact__cf7 select {
  width: 100%;
  background: #ffffff;
  color: #070d0b;
  border: 1px solid #656974;
  border-radius: 30px;
  padding: 14px 20px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 10px;
}
.hos-contact__cf7 select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L8 8L14.5 1.5' stroke='%23656974' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hos-contact__cf7 textarea {
  height: 150px;
}
.hos-contact__cf7 input[type="text"]:focus,
.hos-contact__cf7 input[type="email"]:focus,
.hos-contact__cf7 input[type="tel"]:focus,
.hos-contact__cf7 textarea:focus {
  border: 1px solid #ff7031;
}

.wpcf7-form-control-wrap .wpcf7-list-item-label {
  color: #656974;
  font-size: 13px;
}
.hos-contact__cf7 .wpcf7-list-item {
  margin: 0;
}
.hos-contact__cf7 input::placeholder,
.hos-contact__cf7 textarea::placeholder {
  color: #97a3bb;
  opacity: 1;
}
.hos-contact__cf7 textarea {
  min-height: 140px;
  grid-column: 1/-1;
  resize: vertical;
}
.hos-contact__cf7 .wpcf7-submit {
  background: #ff7031;
  color: white;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 600;
  width: fit-content;
  transition: 0.3s;
  text-transform: none;
  text-align: center;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 360px;
  box-shadow: 0px 4px 20px 0px rgba(255, 102, 0, 0.2);
  cursor: pointer;
  font-family: var(--font-family-sans-serif);
  border: 0;
  margin-top: 8px;
}

@media (max-width: 1000px) {
  .hos-contact__cf7 .wpcf7-submi {
    padding: 10px 20px;
    font-size: 16px;
  }
}

.hos-contact__cf7 .wpcf7-submit:hover {
  background: #da5216;
}

.hos-contact__cf7 .wpcf7-spinner {
  display: none;
}
.hos-contact__cf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}
.hos-contact__cf7 .wpcf7-response-output {
  grid-column: 1/-1;
  width: 100%;
  margin: 12px 0 0;
}

/* acceptance, extra rows */
.hos-contact__cf7 .wpcf7-acceptance {
  grid-column: 1/-1;
  color: #9aa6bf;
  font-size: 14px;
}
.hos-contact__cf7 form.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hos-contact__cf7 .wpcf7-acceptance input[type="checkbox"] {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .hos-contact__cf7 form.wpcf7-form {
    grid-template-columns: 1fr;
  }
}

.hos-contact.hos-contact--no-media .hos-contact__container {
  max-width: calc(584px + 4.8rem);
}

.hos-contact.hos-contact--no-media .hos-contact__head {
  align-items: center;
  max-width: 584px;
}
.hos-contact.hos-contact--no-media form.wpcf7-form {
  justify-content: center;
}
.hos-contact__text p {
  margin-bottom: 20px;
    color: #697289;
    font-size: 16px;
}
.hos-contact--text .hos-contact__form {
  justify-content: flex-end;
}
.hos-contact.hos-contact--no-media .hos-contact__lead {
  text-align: center;
}
.hos-contact__form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hos-contact.hos-contact--no-media .hos-contact__heading {
  text-align: center;
}

.hos-contact.hos-contact--no-media .hos-contact__cf7 .wpcf7-submit {
  margin: auto;
  margin-top: 8px;
}
