/* Doc styles */
* {
  margin: 0;
  padding: 0;
}
html {
  height: 101%;
  background: #dce6f0;
}
body {
  font-size: 68.5%;
  font-family: 'Lato', sans-serif !important;
}

/* Global font family */
* {
  font-family: 'Lato', sans-serif !important;
}

/* Font Awesome fallback - zapewnia wyświetlanie ikon */
.fas, .far, .fab, .fa {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Zapewnienie że ikony będą widoczne */
i.fas, i.far, i.fab, i.fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

#contact {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
  background: inherit;
  border: none;
}

#contact .desc {
}
#contact .desc h2 {
  font-weight: normal;
  letter-spacing: -0.03em;
  color: #444;
  font-size: 2.6em;
  margin-bottom: 8px;
}

#contact .desc p {
  font-size: 1.4em;
  color: #333;
  line-height: 1.4em;
  margin-bottom: 15px;
}

#contact .formblock {
  width: 100%;
  margin-bottom: 15px;
}
#contact .formblock label {
  font-size: 1.2em;
  display: block;
  font-style: italic;
  font-weight: normal;
  color: #5f6d7a;
}

#contact .formblock .txt,
#contact .formblock .txtarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px;
  box-sizing: border-box;
  font-size: 1em !important;
  border: 1px solid #ddd;
  border-radius: 5px;
}
#contact .formblock .txtarea {
  height: 100px;
  resize: vertical;
}

#contact .formblock .error {
  font-weight: bold;
  font-size: 1.3em;
  font-style: normal;
  color: #9d3131;
}
#contact .info {
  font-weight: bold;
  font-size: 1.4em;
  color: #59913d;
  margin-bottom: 10px;
}

#contact p.tick {
  font-style: italic;
  font-size: 1.3em;
  color: #3e669c;
}

/* Submit button */
#contact button[type="submit"],
#contact .subbutton,
#contact input[type="submit"],
#contact button[name="submit"] {
  width: 100%;
  max-width: 300px;
  padding: 18px 20px;
  font-size: 1em !important;
  margin: 20px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  cursor: pointer;
  background-color: #000 !important;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  line-height: 1;
}

#contact button[type="submit"]:hover,
#contact .subbutton:hover,
#contact input[type="submit"]:hover,
#contact button[name="submit"]:hover {
  background-color: #333 !important;
}

/* Phone link styles */
a[href^="tel:"] {
  color: inherit !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border-radius: 3px;
  padding: 2px 4px;
}

a[href^="tel:"]:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Global font size improvements */
body,
html {
  font-size: 16px;
}

h1 {
  font-size: 2.2em !important;
}

h2 {
  font-size: 1.8em !important;
}

h3 {
  font-size: 1.5em !important;
}

p {
  font-size: 1.1em !important;
  line-height: 1.6 !important;
}

/* Contact section mobile responsiveness */
#contact {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
}

.kwadrat {
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 0;
}

/* Google Maps responsiveness */
.kwadrat iframe {
  width: 100% !important;
  height: 300px !important;
  max-width: 100%;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* Contact info styling - Modern & Readable */
.contact-info {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding: 30px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(5px);
}

.contact-info h2 {
  font-size: 2.4em !important;
  margin-bottom: 20px;
  color: #1a1a1a !important;
  font-weight: 700;
}

.contact-info p {
  font-size: 1.25em !important;
  margin-bottom: 10px;
  color: #333 !important;
  line-height: 1.6;
}

.contact-info strong {
  color: #000 !important;
  font-weight: 700;
}

.telefon {
  font-size: 1.5em !important;
  font-weight: bold;
  margin: 20px auto;
  text-align: center;
  color: #000 !important;
  background: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telefon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.telefon a {
  color: #000 !important;
  text-decoration: none;
}

/* Mobile phone link styles */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  /* Mobile header fixes */
  #intro h1 {
    font-size: 1.6em !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    padding: 0 10px;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 0, 0, 0.6);
  }

  #intro h2 {
    font-size: 1.4em !important;
    line-height: 1.3 !important;
    margin-top: 15px !important;
    padding: 0 10px;
  }

  #intro .content {
    padding: 20px 15px !important;
  }
  
  #intro .subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
  }
  
  #intro .bookingbtn {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
  }

  /* All sections full width on mobile */
  section {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 15px !important;
  }

  /* Mobile contact section - full width */
  #contact {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 10px !important; /* Reduced padding */
    background: transparent;
    border: none;
  }

  .kwadrat {
    width: 100%;
    padding: 0;
    text-align: center;
    gap: 15px; /* Reduced gap */
  }

  .contact-info {
    width: 100%;
    max-width: none;
    margin-bottom: 15px; /* Reduced margin */
    padding: 15px 10px; /* Reduced padding */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .contact-info h2 {
    font-size: 1.6em !important; /* Smaller on mobile */
    margin-bottom: 10px;
    color: #000 !important;
  }

  .contact-info p {
    font-size: 1.1em !important; /* Smaller on mobile */
    margin-bottom: 8px;
    color: #000 !important;
  }

  .contact-info strong {
    color: #000 !important;
  }

  .telefon {
    font-size: 1.3em !important;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #000 !important;
  }

  .telefon a {
    color: #000 !important;
  }

  .map-container {
    width: 100%;
    margin: 15px 0 5px 0; /* Reduced margins */
    padding: 0 10px;
  }

  .map-container iframe {
    width: 100% !important;
    height: 250px !important;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .contact-form-container {
    width: 100% !important;
    margin-top: 10px; /* Reduced top margin */
    padding: 0 10px;
  }

  /* Contact form mobile styles */
  #contact .formblock {
    width: 100%;
    margin-bottom: 12px; /* Reduced margin */
  }

  #contact .formblock .txt,
  #contact .formblock .txtarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.9em !important; /* Even smaller font on mobile */
    padding: 12px;
    box-sizing: border-box;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  #contact .formblock .txtarea {
    height: 80px; /* Smaller height on mobile */
    resize: vertical;
  }

  #contact button[type="submit"],
  #contact .subbutton {
    width: 100%;
    max-width: 100%;
    padding: 20px; /* Larger padding for better touch target */
    font-size: 1.1em !important;
    margin-top: 15px;
    border-radius: 25px; /* Even more rounded on mobile */
    background-color: #000 !important;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  #contact button[type="submit"]:hover,
  #contact .subbutton:hover {
    background-color: #333 !important;
  }

  a[href^="tel:"] {
    display: inline-block;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  a[href^="tel:"]:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  #intro h1 {
    font-size: 1.6em !important;
    line-height: 1.2 !important;
    margin-top: 35px !important;
    padding: 0 20px;
    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 0, 0, 0.5);
  }

  #intro h2 {
    font-size: 1.5em !important;
    padding: 0 20px;
  }
  
  #intro .subtitle {
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.7);
  }
  
  #intro .bookingbtn {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 0, 0, 0.6);
  }

  #contact {
    width: 95% !important;
    margin: 20px auto !important;
    padding: 40px 30px;
  }

  .kwadrat {
    max-width: 800px;
    gap: 30px;
  }

  .map-container iframe {
    width: 100% !important;
    height: 350px !important;
  }

  body {
    font-size: 17px;
  }
}

/* Contact section structure */
.contact-info {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info h2 {
  font-size: 2.2em !important;
  margin-bottom: 20px;
  color: #000 !important;
}

.contact-info p {
  font-size: 1.2em !important;
  margin-bottom: 8px;
  color: #000 !important;
}

.contact-info strong {
  color: #000 !important;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 10px auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-form-container {
  width: 100% !important;
  max-width: 800px;
  margin: 15px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.map-container iframe {
  width: 100% !important;
  height: 300px !important;
  max-width: 100%;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

/* Main header fix for overlapping text */
#intro h1 {
  font-size: 1.6em !important;
  line-height: 1.3 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  text-align: center;
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
  font-weight: 400 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.4);
}

#intro h2 {
  font-size: 1.6em !important;
  line-height: 1.4 !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  text-align: center;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

#intro .subtitle {
  font-weight: 600 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

#intro .bookingbtn {
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 2.2em !important;
  line-height: 1.3 !important;
}

h2 {
  font-size: 1.8em !important;
  line-height: 1.4 !important;
}

h3 {
  font-size: 1.5em !important;
  line-height: 1.4 !important;
}

p {
  font-size: 1.1em !important;
  line-height: 1.6 !important;
}

/* Large screens adjustments */
@media (min-width: 1025px) {
  #intro h1 {
    font-size: 1.6em !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin-top: 50px !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.5);
  }

  #intro h2 {
    font-size: 1.8em !important;
    margin-top: 25px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
  }

  /* Modern Contact Layout for Desktop */
  .kwadrat {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px !important;
  }

  .contact-info {
    flex: 1;
    min-width: 300px;
    margin: 0;
    height: 100%;
  }

  .map-container {
    flex: 1;
    min-width: 300px;
    margin: 0;
    height: 100%;
  }

  .contact-form-container {
    width: 100% !important;
    max-width: 800px;
    margin-top: 20px;
  }
  
  /* Better spacing for sections */
  section.main {
    padding: 80px 0;
  }
}
