/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

html {
    scroll-behavior: smooth;
}

  .form-label {
    font-style: normal;
    font-weight: 300;
    font-size: 10px;
    line-height: 12px;
    margin-bottom: 0.3em;
    color: #a0a0a0;
  }


input[name="pytanie_s"],
select[name="pytanie_cat"]
{
	background-color: #ffffff;
	border: 0;
    padding: 14px 15px;	
}

.pytanie-search-form {
    width: 100%;
    margin-bottom: 25px;
}

.pytanie-search-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* Pole tekstowe: 50% */
.pytanie-input {
    flex: 1 1 60%;
    padding: 10px;
    font-size: 16px;
}

/* Select + przycisk dzielą pozostałe 50% */
.pytanie-select {
    flex: 1 1 20%;
    padding: 10px;
    font-size: 16px;
	color: #000000;
}

.pytanie-btn {
	flex: 1 1 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* odstęp między ikoną a tekstem */
    padding: 10px 40px;
    font-size: 19px;
    cursor: pointer;
	background-color: #146A77;
	font-weight: bold;
}

.pytanie-btn-icon {
    width: 25px;  /* szerokość ikony */
    height: 25px; /* wysokość ikony */
}

.pytanie-search-results{
	margin: 0 0 1.5em 0em;
	list-style: none;
}

/* Mobile – układ pionowy */
@media (max-width: 768px) {
    .pytanie-search-row {
        flex-direction: column;
    }
    .pytanie-input,
    .pytanie-select,
    .pytanie-btn {
        flex: 1 1 100%;
    }
}





.leadForm-row{
	padding-bottom: 20px;
}

.leadForm input::placeholder,
.leadForm textarea::placeholder{
  font-size: 0.8em;
}

.leadForm-label{
	font-size: 0.8em;
	color: #686868;
}

.leadForm .wpcf7-checkbox .wpcf7-list-item{
	font-size: 0.7em;
	display: flex;
    gap: 8px;	
	align-items: baseline;	
}

.leadForm-grid{
	display: grid;
  	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.leadForm input:not([type="submit"]):not([type='checkbox']),
.leadForm textarea{
	width: 100%;
	border: 1px solid #999999;
	font-size: 1em;
	padding: 10px;
	background-color: #ffffff;
}	

.leadForm input:not([type="submit"]):not([type='checkbox']):focus{
	border-color: #000000;	
}

.leadForm input:focus-visible,
.leadForm textarea:focus-visible{
	outline: none;
}

.wpcf7-list-item {
    margin: 0;
}

.leadForm-button {
    background-color: #146A77;
    color: #ffffff;
    font-size: 19px;
    text-decoration: none;
    transition: all .2s ease 0s;
    padding: 0.8rem 2rem;
	font-weight: 700;
	display: inline-block;
}

.leadForm-button:hover{
	background-color: #000000;
    color: #ffffff;	
}

@media only screen and (max-width: 768px) {
	.leadForm-grid{
		grid-template-columns: 1fr;
	}
	.leadForm-quote{
		float: left !important;
	}	
  .leadForm-row-button{
    text-align: center;
  }  
}

@media only screen and (min-width: 768px) {
	.leadForm-button {
		/* margin-left: 70px; */
	}
}

.leadForm .cw-tooltip .tooltiptext{
	line-height: 16px;
    font-size: 0.8rem;
}

.cw-tooltip {
  position: relative;
  display: inline-block;
  text-decoration: underline;
  font-weight: 600;
}

.cw-tooltip .tooltiptext {
  font-weight: normal;
  visibility: hidden;
  width: 180px;
  background-color: #000000;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 8px 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  opacity: 0;
  transition: opacity 0.3s;
}

.cw-tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
}

.cw-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


#cf7-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

#cf7-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

#cf7-modal-ok {
  	margin-top: 20px;
  	padding: 10px 20px;
  	cursor: pointer;
	background-color: #146A77;
}


.pytanie-tag a{
	color: #000000;
    background-color: #CAE9EC;
    padding: 3px 14px;
    border-radius: 15px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;	
	margin-right: 14px;
}

.pytanie-tag a:hover{
	color: #000000;
    background-color: #E7F0F1;
}	


.tax-kategoria .page-header{
	display: none;
}

#pytania-info-bar{
    position: fixed;
    bottom: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

#pytania-info-bar.show {
    transform: translateY(0);
}	



.pytanie-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px; 
}

.pytanie-select-wrapper select.pytanie-select {
    width: 100%;
    background-color: #fff;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.pytanie-select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
	top: 27px;
    top: 57%;
    width: 24px;
    height: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url('/wp-content/uploads/2025/11/select-arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
