/* Doc styles */
* {
  margin: 0;
  padding: 0;
}
html {
  height: 101%;
  background: #dce6f0;
}
body {
  font-size: 68.5%;
}

#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-family: Georgia, Tahoma, sans-serif;
  font-weight: normal;
  letter-spacing: -0.03em;
  color: #444;
  font-size: 2.6em;
  margin-bottom: 8px;
}

#contact .desc p {
  font-family: Arial, Verdana, sans-serif;
  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: #232323;
  font-family: Georgia, "Times New Roman", Times, serif;
  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;
  font-family: Arial, sans-serif;
}
#contact .formblock .txtarea {
  height: 100px;
  resize: vertical;
}

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

#contact p.tick {
  font-family: Arial, Helvetica, sans-serif;
  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;
  font-family: Arial, sans-serif;
  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 */
.contact-info {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding: 20px;
  text-align: center;
}

.telefon {
  font-size: 1.3em !important;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
  color: #000 !important;
}

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

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

  /* Mobile header fixes */
  #intro h1 {
    font-size: 2.2em !important;
    line-height: 1.1 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    padding: 0 10px;
    word-break: break-word;
  }

  #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;
  }

  /* 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: 2em !important;
    line-height: 1.2 !important;
    margin-top: 35px !important;
    padding: 0 20px;
  }

  #intro h2 {
    font-size: 1.5em !important;
    padding: 0 20px;
  }

  #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: 2.2em !important;
  line-height: 1.2 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  text-align: center;
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
}

#intro h2 {
  font-size: 1.6em !important;
  line-height: 1.4 !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  text-align: center;
}

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: 2.5em !important;
    line-height: 1.15 !important;
    margin-top: 50px !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  #intro h2 {
    font-size: 1.8em !important;
    margin-top: 25px !important;
  }
}
