:root {
    --primary-color: #f12f2f;
    --secondary-color: #400135;
    --headline-color: #cfc3a9;
    --background-color: #ffffff;
    --link-color: #D95FB8;
    --text-color: #212529;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
}

main {
  max-width: 1200px;
  min-height: 100vh;           
  margin: 0 auto;        
}

.smaller-width {
  max-width: 700px;
  margin: 0 auto;
}

section {
  margin: 50px 0;
}

section.dierenarts-section {
    margin: 35px 0;
}

h1 {
    color: var(--primary-color);
}

h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

h4 {
    font-size: 1rem;
}

p {
    font-size: 0.85rem;
}

a {
  color: var(--link-color);
}

button {
    background-color: var(--primary-color);
      border: none;
      float: right;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: white;
  padding: 20px 20px;
}

button:hover {
  background-color: #d42525;
}

.search_main {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background-color: white;
}

.search_main_text {
  text-align: center;
}

.search_main_searchbar {
  width: 100%;
  max-width: 600px; /* of breder, afhankelijk van je ontwerp */
  padding: 10px;
  box-sizing: border-box;
}

.searchbar_container_postalcode {
  margin: 0 auto;
    width: 100%;
  max-width: 600px; /* of breder, afhankelijk van je ontwerp */
  padding: 10px;
  margin-bottom:20px;
  box-sizing: border-box;
}


/* Container (optioneel voor layout-breedte) */
.search_main_searchbar form {
  display: flex;
  width: 100%;
  max-width: 600px;
  height: 70px;
  box-sizing: border-box;
}


/* Zoekveld */
.chip_number {
  flex: 1;
  min-width: 0; /* voorkomt overflow bij kleine schermen */
  padding: 12px 40px;
  font-size: 16px;
  border: 2px solid var(--primary-color);
  border-right: none;
  border-radius: 40px 0 0 40px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.chip_number:focus {
  border-color: var(--primary-color); /* Primary color */
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Zoekknop */
.search_button {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--primary-color); /* Match primary color */
  border-left: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 0 40px 40px 0;
  transition: background-color 0.3s;
  box-sizing: border-box;
}

.search_button:hover {
  background-color: #d42525;
}

.search_button .material-icons {
  vertical-align: middle;
  font-size: 28px;
  color: white; /* jouw kleur */
}

/* Zoek dierenarts form op postcode */
.search_main_postal_code {
  display: flex;
  width: 100%;
  max-width: 600px;
  height: 70px;
  padding: 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.search_main_postal_code .radius {
  flex: 0 0 30%;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid var(--primary-color);
  border-right: none;
  border-radius: 40px 0 0 40px;
  outline: none;
  box-sizing: border-box;
  height: 70px;
}

.search_main_postal_code .postal_code {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid var(--primary-color);
  border-left: none;
  border-right: none;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  height: 70px;
}

.search_main_postal_code .postal_code:focus,
.search_main_postal_code .radius:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Ensure button matches the height of the other fields */
.search_main_postal_code .search_button {
  height: 70px;
}

.info-page-container.center-text h1,
.info-page-container.center-text p {
  text-align: center;
}

td.vet-name-postcode {
  width: 80%;
}

td.radius-name-postcode {
  width: 20%;
}

.recommended-label {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 6px;
}

.search_results {
  position: relative;
  padding: 20px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}


.result-table th,
.result-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  word-break: break-word;
}

.result-table th {
  width: 200px;
  background-color: head;
  font-weight: 600;
}

.result-message .success h2 {
  color: var(--primary-color);
  text-align: center;
  font-size: 2.2rem;

}


.result-message.success {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.result-message.error {
  background-color: white;
  border: 1px solid #f5c2c7;
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 700px;
  text-align: center; /* <-- zorgt voor centreren van tekst */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: white;
  padding: 10px;
  margin: 10px 20px;
}

.close-button .material-icons {
  color: white;
}

.close-button:hover {
  color: #d42525;
}

.close-text {
  font-weight: 500;
}


.banner_home {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--headline-color);
  border-radius: 20px;
}

.banner_home_box {
  width: 50%;
  box-sizing: border-box;
  display: flex;
   justify-content: center; 
   max-height: 400px;
}

.image-div {
  background-image: url('../img/hond-kat-homepage-petsave_banner.png');
  background-size: contain;         /* schaalt mee */
  background-position: center;    /* centreren */
  background-repeat: no-repeat;
  width: 100%;
  height: 380px;
  border-radius: 8px;             /* optioneel */
  margin-top: 20px;
}

.banner_home_box_container {
  width: 100%;
  height: auto;
  margin-top: 30px;
  margin-left: 20px;
  display: flex;
  flex-direction:column;
}

.banner_home_box_link {
  background-color: white;
  border-radius: 50px;
  padding: 30px 25px;
   display: flex;
   flex-direction: row;
   justify-content:space-between;
   transition: background-color 0.3s ease, transform 0.2s ease;
   margin-bottom: 20px;
}

.banner_home_box a {
  text-decoration: none;
}

.banner_home_box_link p{
font-size: 1.2rem;
margin: 0;
}


.material-icons,
.material-symbols-outlined {
  font-size: 24px;
  color: var(--primary-color); /* jouw kleur */
  vertical-align: middle;
}

/* Tekst links */
.banner_home_box_link_text {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
}

/* Pijl rechts */
.banner_home_box_link_arrow .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

/* Hover-effecten */
.arrow-box-link:hover .banner_home_box_link {
  background-color: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.arrow-box-link:hover .banner_home_box_link_arrow .material-symbols-outlined {
  transform: translateX(4px);
}

.introduction_text_home {
    padding: 20px 40px;
    background-color: white;
    text-align: center;
}

.feature_container {
  display: flex;
  gap: 5px;            /* ruimte tussen de divs */
  justify-content: center;
  align-items: flex-start;
  align-items: stretch;  /* kolommen even hoog */
  margin: 0 50px;
}

.feature_box {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.info_home_container {
  display: flex;
  justify-content: center; 
  align-items: center;
  background-color: white;
}


.feature-block {
  flex: 1 1 calc(50% - 10px); /* 2 blokken met 20px gap ertussen */
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 20px;
  text-align: left;
}


.feature-block img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.feature-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* Aantal zichtbare regels */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
  line-height: 1.5;
  min-height: 4.5em;            /* Zorgt voor gelijke hoogte bij afkappen */
}

.info-page-container {
  max-width: 800px;
    margin: 0 auto;
  overflow-wrap: anywhere;
}

.info-page-container a {
  overflow-wrap: anywhere;   
}

.policy ul li {
  list-style-type: lower-alpha;
}

.policy ul {
  font-size: 1.5rem;
  line-height: 2.5rem;
}

.info-page-container p {
font-size: 1.5rem; 
}

.info-page-container h1 {
font-size: 2.5rem; 
}

.info-page-container h2 {
font-size: 2rem; 
}

.info-page-container li h3 {
font-size: 1.7rem;
margin:0;
padding: 0; 
}

.info-page-container h4 {
font-size: 1.5rem;
margin:0;
padding: 0; 
}

.info-page-container .update-date {
font-size: 0.8rem;
}

  #scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
  }

  #scrollTopBtn:hover {
    background-color: var(--primary-color);
  }

  #scrollTopBtn .material-icons {
    font-size: 24px;
    color: white;
  }

  .icon-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5em;
  }

  .icon-list .material-icons {
    color: var(--primary-color);
    font-size: 35px;
    margin-right: 0.75em;
    margin-top: 0.15em;
  }

   .icon-list li .material-icons.smaller {
    font-size: 28px;
    margin-right: 0.2em;
  }

  .icon-list li div {
    max-width: 600px;
  }

  .icon-list li strong {
    display: block;
    margin-bottom: 0.25em;
    font-size: 1.1em;
  }

  .icon-list li p {
    margin: 0;
  }

  .image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem; /* optioneel voor afgeronde hoeken */
}

/* Extra styling als je specifiek centrale uitlijning via class wilt */
.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.beeld-logo {
  width: 40%;
}

.faq {
  margin: 0.5rem auto;
  padding: 1.2rem;
}

.faq-container {
  margin-top: 40px;
  margin-bottom: 40px;
}

.faq {
  margin: 0 auto;
  padding: 0 20px;
}

.faq-question {
  width: 100%;
  background:none;
  float:none;
  border: none;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) ;
  border-radius: 20px;
  margin-bottom: 10px;
}

.faq-item button:hover {
background-color: transparent;
}

.faq-answer {
  display: none;
  margin-top: 0.5rem;
}

.faq-answer p {
  margin: 0;
  padding: 20px 20px;
  font-size: 1.3rem;
}

.faq-answer.show {
  display: block;
}

.faq-question .material-icons {
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .material-icons {
  transform: rotate(45deg);
}

.inhoudsopgave ul {
  list-style: none; 
  padding-left: 0;
  margin: 0;
  font-size: 1.5rem;
  line-height: 3rem;
}

.inhoudsopgave ul a {
text-decoration: none;
}

.dierenarts-banner {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
}

.dierenarts-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.dierenarts-logo {
  position: relative;
  z-index: 1;
  color: white;
  width: 800px;
  margin: 0 auto;
}

.dierenarts-logo-image img {
width: 200px;
height: 200px;
background-color: white;
padding: 10px;
border-radius: 10px;
}

.dierenarts-page p {
font-size: 1rem;
line-height: 1rem;
}

p.dierenarts-omschrijving {
line-height: 1.6rem;
}

.dierenarts-details-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* zorgt voor betere responsiviteit op kleine schermen */
}

.dierenarts-details,
.dierenarts-openingstijden {
    flex: 1 1 50%;
    box-sizing: border-box; /* voorkomt overflow door padding/margin */
}

.dierenarts-details-bg {
  background-color: var(--headline-color);
  border-radius: 20px;
  padding: 20px;
  width: 90%;
}

.dierenarts-details-bg a {
color: var(--text-color);
}

td.vet-name-postcode {
  width: 80%;
}

td.radius-name-postcode {
  width: 20%;
}

.zoek-dierenarts-home {
  font-size: 1rem;
  font-weight: 600;
}

.zoek-dierenarts-home-center {
  text-align: center;
}

/* Mobile style */
@media (max-width: 600px) {
    main {
    width: 100%;
  }

  .feature_container {
    flex-direction: column;
    gap: 10px;
    margin: 0 10px;
    width: 100%;
  }

  .feature-block {
    flex: 1 1 100%;
  }

.banner_home_box {
    width: 100%;
  }

  .banner_home_box_container {
    margin-right: 20px;
  }


.introduction_text_home {
    padding: 20px;
    max-width: 100%;
  }

  .search_main_searchbar {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

    .search_main_postal_code {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 100%;
  }


  .search_main_searchbar form {
    width: 100%;
    max-width: 100%;
  }

    .search_main_text {
    padding: 0 20px;
    box-sizing: border-box;
  }

  .banner_home{
    margin: 20px 10px;
  }

  .info-page-container {
padding: 0 20px; 
}

  .centered {
  display: block;
  margin-left: 0 20px;
}

.result-table {
font-size: 0.75rem;
}

.result-table th, .result-table td {
  width: 50%;
}

.info-page-container h1 {
font-size: 1.5rem;
}

  .dierenarts-details-container {
    flex-direction: column;
  }

  .dierenarts-details,
  .dierenarts-openingstijden {
    flex-basis: 100%;
  }

  .dierenarts-details-bg {
width: 100%;
}

td.vet-name-postcode {
  width: 70%;
}

td.radius-name-postcode {
  width: 30%;
}

}

/* tablet style */
@media (min-width: 601px) and (max-width: 1024px) {
  main {
    width: 100%;
  }

    .feature_container {
    flex-wrap: wrap;
    margin: 0 20px;
  }
  .feature-block {
    flex: 1 1 calc(50% - 10px);
  }

    .banner_home{
    margin: 20px 10px;
  }


}