/*
Theme Name: FE
Version: 1.0
*/

body {
  margin: 0px;
  line-height: 1.5;
  font-size: 16px;
}
* {box-sizing: border-box;}
img {height: auto;}
a, a:link, a:visited{
	text-decoration:none;
    color: inherit;
}
p {
    margin: 15px 0px;
}
p:first-child {margin-top: 0px;}
p:last-child {margin-bottom: 0px;}

body, textarea, button, input {
  font-family: "Open Sans", sans-serif;
}

.wpcf7-form br {
  display: none;
}

/* ===============================
   Contact Form 7 – clean flex version
   font: Open Sans, colors: #fec41c / #0052a1, text: #333
   =============================== */

:root {
  --cf7-text: #333333;
  --cf7-accent: #fec41c;
  --cf7-primary: #0052a1;
  --cf7-error: #d93025;
  --cf7-success: #1e8e3e;
  --cf7-border: #e5e7eb;
  --cf7-muted: #6b7280;
}

.wpcf7-form,
.wpcf7-form * {
  box-sizing: border-box;
}

.wpcf7-form p {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  font-family: "Open Sans", sans-serif;
  color: var(--cf7-text);
  line-height: 1.55;

  /* kluczowe: flex + gap */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpcf7-form .hidden-fields-container {
  display: none;
}

/* Pola tekstowe */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--cf7-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cf7-text);
  outline: 0;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpcf7-form textarea {
  max-height: 140px;
  resize: vertical;
  min-height: 140px;
}

.wpcf7-form ::placeholder {
  color: var(--cf7-muted);
  opacity: 1;
}

/* Focus + brand gradient border */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  box-shadow: 0px 0px 3px 2px rgba(0, 82, 161, 0.5);
}

/* Walidacja błędów */
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--cf7-error);
  position: absolute;
  bottom: -8px;
  background: white;
  padding: 0px 5px;
  right: 16px;
}
.wpcf7-form span[data-name="acceptance"] .wpcf7-not-valid-tip {
  position: relative;
  padding: 0px;
  bottom: 0px;
  right: 0px;
}

/* Checkbox */
.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cf7-primary);
  flex-shrink: 0;
}

.wpcf7-form .wpcf7-acceptance span {
  margin: 0px;
  font-size: 12px;
}

/* Przycisk */
.wpcf7-form input.wpcf7-submit {
  font-size: 18px;
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 20px;
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--cf7-accent);
  text-transform: uppercase;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}
.wpcf7-form input.wpcf7-submit:focus {
  box-shadow: none;
}
.wpcf7-form.submitting input.wpcf7-submit {
  opacity: 0.5;
  pointer-events: none;
}
.wpcf7-form input.wpcf7-submit:hover {
  background: #003b74;
  color: white;
}

.wpcf7-form input.wpcf7-submit[disabled],
.wpcf7-form input.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spinner */
.wpcf7-spinner {
  position: absolute !important;
  bottom: 20px;
  right: 20px;
}

/* Komunikaty */
.wpcf7-response-output {
  padding: 12px 16px !important;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  margin: 10px 0px 0px 0px !important;
}

.wpcf7-form[data-status="sent"] .wpcf7-response-output {
  background: rgba(30, 142, 62, 0.06);
  color: var(--cf7-success);
}

.wpcf7-form[data-status="invalid"] .wpcf7-response-output,
.wpcf7-form[data-status="failed"] .wpcf7-response-output {
  background: rgba(217, 48, 37, 0.06);
  color: var(--cf7-error);
}

/* Linki */
.wpcf7-form a {
  color: var(--cf7-primary);
  text-underline-offset: 2px;
}
.wpcf7-form a:hover {
  color: #003b74;
}

@media (max-width: 767px) {
  .elementor-widget.elementor-align-center .elementor-inline-items {
    justify-content: normal !important;
    gap: 15px;
  }
}