/* ==========================================================================
   KONTAKTNÍ FORMULÁŘE – e-shop Bambusář – styly
   --------------------------------------------------------------------------
   Nahrazuje contact_form.css a sekci „VLASTNÍ CONTACT BOX NA DETAILU PRODUKTU“
   z custom.css. Logika je v kontaktni-formulare.js.

   1. „Zavolejte mi“ box (#pk-contact-block, .pk-contact-me)
   2. Modál ze zápatí (.pk-custom-contact-form-modal, #pk-custom-contact-form)

   Formulář na stránce Kontakty má vlastní vzhled v kontakty-custom.css
   (.pk-kontakty .pk-formular) – patří k layoutu té stránky, proto zůstává tam.
   ========================================================================== */


/* ==========================================================================
   1. „ZAVOLEJTE MI“ BOX
   (převzato beze změny z custom.css)
   ========================================================================== */
/* vlastní dropdown */
.pk-contact-me .form-group {
  display: flex;
  align-items: center;
  min-width: auto;
  width: 100%;
  flex-wrap: wrap;
}

.pk-contact-me #dropdown,
.pk-contact-me #phone {
  height: 35px;
  padding: 3px 3px 3px 3px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  line-height: 1.8;
  font-size: 1.5rem;
}

.pk-contact-me #dropdown {
  position: relative;
  min-width: 105px;
  margin-right: 5px;
}

.pk-contact-me #phone {
  width: auto;
  margin-right: 5px;
}

.pk-contact-me .selected-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pk-contact-me .selected-option .national-flag {
  width: 40px;
  height: 27px;
  border: rgb(153, 146, 146) solid 1px;
}

.pk-contact-me .options {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  width: 80px;
  background: white;
  border: 1px solid #ccc;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pk-contact-me .option {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}

.pk-contact-me .option .national-flag {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  border: rgb(153, 146, 146) solid 1px;
}

.pk-contact-me .option:hover {
  background-color: #f0f0f0;
}

.pk-contact-me .selected-option .arrow {
  border-style: solid;
  color: black;
  border-width: 0 1px 1px 0;
  content: "";
  left: -15px;
  top: 50%;
  transform: translateY(10%) rotate(45deg);
  height: 5px;
  width: 5px;
  margin-right: 5px;
}

.pk-contact-me #dropdown.open .arrow {
  transform: rotate(225deg);
}
/* konec vlastního dropdownu */

#pk-contact-block .pk-contact-me {
  padding: 10px;
  width: 100%;
  margin: auto;
  background-position: center bottom;
  top: 20px;
  margin-bottom: 40px;
  position: relative;
  margin-top: auto;
  border: 2px solid var(--bambusar-theme-color);
  background-color: #ffffff26;
  box-sizing: border-box;
}

#pk-contact-block #button {
  box-sizing: border-box;
  padding: 0 0 0 0px;
  border-width: 2px;
  min-width: 150px;
  height: 35px;
}

#pk-contact-block .pk-contact-me .contact-in {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

#pk-contact-block .pk-contact-me .image {
  flex: 0 0 120px;
}

#pk-contact-block .pk-contact-me .image img {
  height: 180px;
}

#pk-contact-block .pk-contact-me .image small {
  font-size: 11px;
  display: block;
}

#pk-contact-block .pk-contact-me .image small strong {
  font-size: 14px;
}

#pk-contact-block .pk-contact-me .text {
  position: relative;
  width: 70%;
}

#pk-contact-block .pk-contact-me .text h3 {
  color: #000;
  text-align: left;
  font-size: 29px;
  line-height: 43px;
  padding: 0 0 10px;
  margin: 0px;
}

#pk-contact-block .pk-contact-me .text p {
  font-size: 15px;
  line-height: 22px;
  color: #666;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 300;
}

@media (min-width: 310px) {
  #pk-contact-block .pk-contact-me {
    padding: 5px;
    top: 20px;
    text-align: center;
  }
  #pk-contact-block .pk-contact-me .contact-in {
    height: auto;
    position: relative;
  }
  #pk-contact-block .pk-contact-me .image {
    left: -12.7px;
    flex: 0 0 110px;
  }
  #pk-contact-block .pk-contact-me .image img {
    left: 3.5px;
    top: 30px;
    height: 141.8px;
  }

  #pk-contact-block .pk-contact-me .text {
    width: 87.6%;
    margin-left: 10px;
    box-sizing: border-box;
  }
  #pk-contact-block .pk-contact-me .text p {
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  #pk-contact-block .pk-contact-me .text h3 {
    font-size: 2.5rem;
    text-align: left;
    line-height: 25px;
    margin-top: 1rem;
    padding-bottom: 0px;
  }

  #pk-contact-block .pk-contact-me .form-group {
    flex-direction: row;
  }

  .pk-contact-me .form-group {
    align-items: self-start;
    width: 100%;
  }
  .pk-contact-me #phone {
    width: 60%;
    margin-right: 0px;
    height: 35px;
    flex-grow: 2;
  }

  .pk-contact-me #dropdown {
    min-width: 60px;
  }

  .pk-contact-me .selected-option .national-flag {
    display: none;
  }

  #pk-contact-block #button {
    width: 100%;
    margin-top: 5px;
  }
}

@media (min-width: 450px) {
  .pk-contact-me .form-group {
    max-width: 450px;
  }

  .pk-contact-me .selected-option .national-flag {
    display: block;
    width: 40px;
    height: 27px;
  }

  .pk-contact-me .options {
    width: 110px;
  }

  .pk-contact-me #dropdown {
    min-width: 110px;
  }

  .pk-contact-me #phone {
    width: 40%;
  }
}

@media (min-width: 630px) {
  #pk-contact-block .pk-contact-me .contact-in {
    align-items: start;
  }

  #pk-contact-block .pk-contact-me .text {
    width: 80%;
    margin-left: 15px;
  }

  #pk-contact-block .pk-contact-me .text h3 {
    margin-top: 1.5rem;
  }

  #pk-contact-block .pk-contact-me .text p {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .pk-contact-me #phone {
    width: 20%;
    margin-right: 5px;
    flex-grow: 2;
  }

  #pk-contact-block #button {
    width: auto;
    min-width: 150px;
    margin-top: 0px;
  }
}

@media (min-width: 992px) {
  #pk-contact-block .pk-contact-me .image small {
    margin-top: 5px;
  }

  #pk-contact-block .pk-contact-me .text p {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #pk-contact-block .pk-contact-me .text h3 {
    margin-top: 1rem;
  }

  #pk-contact-block #button {
    width: 100%;
    margin-top: 5px;
  }

  .pk-contact-me #phone {
    margin-right: 0px;
  }
}

@media (min-width: 1200px) {
  #pk-contact-block {
    margin-top: 2rem;
  }

  #pk-contact-block #button {
    width: auto;
    min-width: 150px;
    margin-top: 0px;
  }

  .pk-contact-me #phone {
    width: 20%;
    margin-right: 5px;
    flex-grow: 2;
  }

  #pk-contact-block .pk-contact-me .image {
    flex: 0 0 150px;
    height: auto;
  }
  #pk-contact-block .pk-contact-me .image img {
    left: -17px;
    top: -36px;
    height: 178px;
    position: absolute;
  }
  #pk-contact-block .pk-contact-me {
    text-align: left;
  }
  #pk-contact-block .pk-contact-me .text h3 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }

  #pk-contact-block .pk-contact-me .image small {
    position: absolute;
    top: 137px;
    left: 10px;
  }

  #pk-contact-block .pk-contact-me .text p {
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .pk-contact-me {
    height: 186px;
  }
}

.pk-contact-me #phone::-webkit-input-placeholder,
.pk-contact-me #phone::-moz-placeholder,
.pk-contact-me #phone:-ms-input-placeholder,
.pk-contact-me #phone:-moz-placeholder,
.pk-contact-me #phone::placeholder {
  color: #666;
  font-size: 15px;
  font-weight: 300;
  opacity: 1;
}



/* iOS Safari při kliknutí do pole s písmem menším než 16 px stránku přiblíží
   (a po vyplnění ji nechá přiblíženou). Na dotykových zařízeních proto 16 px,
   desktop zůstává beze změny. Formulář na Kontaktech má 16 px už v kontakty-custom.css. */
@media (hover: none) and (pointer: coarse) {
  .pk-contact-me #phone,
  #pk-custom-contact-form input,
  #pk-custom-contact-form textarea {
    font-size: 16px;
  }
}

/* ==========================================================================
   2. MODÁL ZE ZÁPATÍ
   (převzato beze změny z contact_form.css)
   ========================================================================== */
/* Modální pozadí */
.pk-custom-contact-form-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.pk-custom-contact-form-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Zavírací tlačítko */
.pk-custom-contact-form-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #000000;
  font-size: 40px;
  font-weight: 800;
  cursor: pointer;
}

/* Stylování formuláře */
#pk-custom-contact-form {
  display: flex;
  flex-direction: column;
}

#pk-custom-contact-form label {
  margin-top: 10px;
  font-weight: bold;
}

#pk-custom-contact-form .required-asterisk:after {
  color: #d63500;
  content: "*";
  padding-left: 0.5ch;
}

#pk-custom-contact-form input,
#pk-custom-contact-form textarea {
  padding: 8px;
  margin-top: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
  resize: vertical;
}

#pk-custom-contact-form .btn.btn-primary {
  margin-top: 15px;
  padding: 2px 4px;
}

#pk-custom-contact-form .pk-custom-contact-form-info-label {
  margin-top: 15px;
  font-weight: 400;
}

#pk-custom-contact-form a {
  color: var(--bambusar-theme-color);
}

#pk-custom-contact-form {
  text-align: left;
}

@media (max-width: 480px) and (min-width: 410px) {
  .pk-custom-contact-form-modal-content h1 {
    margin-top: 1.2em;
  }
}