/*!
Theme Name: Starter
Theme URI:
Author: Starter
Author URI:
Version: 1.0
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/assets/dist/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.gallery-item {
  display: inline-block;
  text-align: left;
  vertical-align: top;
  width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  background: none;
  display: inline-block;
  max-width: 100%;
}

.gallery-item a img {
  display: block;
  -webkit-transition: -webkit-filter 0.2s ease-in;
  transition: -webkit-filter 0.2s ease-in;
  transition: filter 0.2s ease-in;
  transition:
    filter 0.2s ease-in,
    -webkit-filter 0.2s ease-in;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
  -webkit-filter: opacity(60%);
  filter: opacity(60%);
}

.gallery-caption {
  display: block;
  text-align: left;
  padding: 0 10px 0 0;
  margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
  max-width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
  display: none;
}

.bypostauthor {
  font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

body {
  background-color: #000;
}

/* ===== FORMULARZ – Fusion Marketing (scope: .cta-case-study) ===== */
.cta-case-study .cs-form {
  padding: 40px 32px;
  border-radius: 16px;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Tytuł */
.cta-case-study .cs-form__title {
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
}

/* Siatka pól: 2 kolumny */
.cta-case-study .cs-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CF7 owija każde pole w span — neutralizujemy go, by nie psuł gridu */
.cta-case-study .cs-form__grid .wpcf7-form-control-wrap {
  display: block;
}

/* Pole na całą szerokość (textarea) */
.cta-case-study .cs-form__full {
  grid-column: 1 / -1;
}

/* Inputy i textarea */
.cta-case-study .fm-input,
.cta-case-study .fm-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 15px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-case-study .fm-textarea {
  resize: vertical;
  min-height: 110px;
}

.cta-case-study .fm-input::placeholder,
.cta-case-study .fm-textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.cta-case-study .fm-input:focus,
.cta-case-study .fm-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* Stopka formularza */
.cta-case-study .cs-form__foot {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Zgoda */
.cta-case-study .cs-form__consent {
  max-width: 640px;
}

.cta-case-study .fm-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.cta-case-study .fm-check input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #e91e5a;
  cursor: pointer;
}

.cta-case-study .fm-check a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Przycisk */
.cta-case-study .fm-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgb(230 22 74 / var(--tw-bg-opacity, 1)) !important;
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.05s ease;
  border-radius: 0 !important;
}

.cta-case-study .fm-btn--primary:hover {
  background: rgb(208 20 64 / var(--tw-bg-opacity, 1)) !important;
}

.cta-case-study .fm-btn--primary:active {
  transform: translateY(1px);
}

/* Strzałka — gdy submit jest <input>, dodajemy ją przez CSS */
.cta-case-study .fm-btn--primary::after {
  content: '→';
  font-size: 17px;
}

/* CF7 spinner / komunikaty */
.cta-case-study .wpcf7-spinner {
  margin-left: 10px;
}

.cta-case-study .wpcf7-response-output {
  margin: 18px 0 0 !important;
  color: #fff;
  border-radius: 8px;
}

/* ===== RWD ===== */
@media (max-width: 640px) {
  .cta-case-study .cs-form {
    padding: 28px 18px;
  }

  .cta-case-study .cs-form__grid {
    grid-template-columns: 1fr;
  }
}
