@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --brand-gradient: linear-gradient(90deg, #E3356E 0%, #ED8349 100%);
  --card-bg: ##f8f8f8;
  --border: #96969540;
  --text-main: #212121;
  --font-main: "Inter", Arial, sans-serif;
  --text-muted: #757575;
  --button-radius: 28px;
}
.red-hat-display {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: #ffffff;
  font-family: var(--font-main);
  color: var(--text-main);
}
.grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px;
  max-width: 1200px;
  margin: auto;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 0px 20px 0px;
  box-shadow: 0 8px 24px rgba(60, 60, 60, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-header {
  display: flex;
  align-items: center;
  padding: 0px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #96969540;
}
.card-bottom{
  display: flex;
  flex-direction:column;
  padding: 0 24px;
}
.procedure-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #96969540;
  padding: 2px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 1.7rem;
  color: #7b61ff;
}
.price-div{
  display: flex;
  flex-direction: column;
}
.price {
  font-size: 1.15rem;
  font-weight: 600;
  color: #22223b;
  margin-right: 6px;
}
.onwards {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}
.proc-title {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}
.proc-notes {
  font-family: "Red Hat Display", sans-serif;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.tags {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-right: 7px;
  margin-bottom: 5px;
  background: #eee;
  color: #444;
  letter-spacing: 0.01em;
}

.tag-popular {
  font-family: "Red Hat Display", sans-serif;
  font-size: 12px;
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #854D0E15;
}
.tag-expert {
  font-family: "Red Hat Display", sans-serif;
  font-size: 12px;
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #6B21A815;
}
.tag-insurance {
  font-family: "Red Hat Display", sans-serif;
  font-size: 12px;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #16653415;
}
.tag-default {
  background: #e0e0e0;
  color: #444;
}
.book-btn {
  width: 100%;
  border: none;
  border-radius: var(--button-radius);
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-gradient);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: filter 0.12s;
}
.book-btn:hover {
  filter: brightness(0.97) contrast(1.09);
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 12px;
  }
  .card {
    padding: 24px 0px 24px 0px;
  }
  .tags{
    padding-top: 10px;
  }
}



/* Search Bar CSS */

.procedure-search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100vw;
  background: linear-gradient(90deg, #016DA5 0%, #314C83 100%);
  padding: 30px 24px 22px 24px;
  flex-wrap: wrap;
}
.proc-heading{
  color: white;
  font-family: "Red Hat Display", sans-serif;
  font-size: 35px;
}
.procedure-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 1170px;
}
.procedure-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #529CC660;
  border-radius: 22px;
  padding: 0 18px;
  width: 100%;
  height: 44px;
}
.search-icon {
  color: #b0b6ba;
  font-size: 19px;
  margin-right: 8px;
}
.search-autocomplete {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  width: 100%;
  font-family: "Red Hat Display", sans-serif;
  color: #fff;
  padding: 12px 0;
}
.search-autocomplete::placeholder{
  color: #fff;
}
.autocomplete-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border-radius:18px;
  max-height: 210px;
  overflow-y: auto;
  border: none;
  }
.autocomplete-items div {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
  font-family: "Red Hat Display", sans-serif;
  color: #17181A;
  line-height: 1.3;
}

.procedure-dropdown {
  position: relative;
  width: 100%;
}
.procedure-btn-div{
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #529CC660;
  width: 100%;
  color: #fff;
  border: none;
  border-radius: 22px;
  height: 44px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px #16357708;
  cursor: pointer;
  font-family: "Red Hat Display", sans-serif;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 250px;
  box-shadow: 0 8px 22px #0002;
  border-radius: 14px;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  left: 0;
  top: 105%;
  border: 1px solid #e0e0e0;
}
.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 15px;
  font-family: "Red Hat Display", sans-serif;
  color: #17181A;
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
  transition: background 0.14s;
}
.dropdown-item:hover {
  background: #eaf3fa;
}
.search-action-btn {
  background: #fff;
  color: #2069bf;
  border: none;
  border-radius: 22px;
  height: 44px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px #16357708;
  cursor: pointer;
  font-family: "Red Hat Display", sans-serif;
  margin-left: 4px;
}


@media (min-width: 900px) {
  .procedure-bars {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive for mobile */
@media (max-width: 700px) {
  .procedure-search-wrapper {
    flex-direction: column;
    gap: 12px;
    padding: 18px 0 8px 0;
  }
  .procedure-search-bar{
    display: none;
  }
  .procedure-dropdown, .procedure-search-bar {
    width: 100%;
    min-width: 240px;
    max-width: 360px;
  }
  .procedure-bars{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
  }
  .procedure-search-wrapper{
    padding: 24px ;
  }
}



/* Modal CSS */



/* Modal Overlay and Centering */
.modal-overlay {
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,37,47,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s;
}

/* Modal Container */
.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 450px;
  width: 98vw;
  padding: 34px 26px 22px 26px;
  box-shadow: 0 6px 42px 1px #0002;
  position: relative;
  font-family: "Red Hat Display", sans-serif;
  animation: slideUpIn 0.22s;
}

/* Close Button */
.close-modal {
  position: absolute; right: 12px; top: 16px;
  font-size: 28px;
  color: #212121B3;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.close-modal:hover { color: #E3356E; }

.modal-title {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0 0 8px 0;
  font-family: "Red Hat Display", sans-serif;
}
.modal-underline {
  width: 160px; height: 3px;
  margin: 0 auto 30px auto;
  background: linear-gradient(90deg, #E4376D 0%, #ED824A 100%);
  border-radius: 3px;
}
.req { color: #E3356E; margin-left:3px; }

.modal-input, .modal-textarea, .modal-select {
  width: 100%;
  font-size: 14px;
  font-family: "Red Hat Display", sans-serif;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid #dedede;
  margin-bottom: 19px;
  margin-top: 3px;
  outline: none;
  background: #f9fafd;
  transition: border 0.12s;
}
.modal-input:focus, .modal-textarea:focus, .modal-select:focus {
  border: 1.5px solid #E4376D;
}
.modal-textarea {
  height: 74px; resize: none;
}
.modal-phone-row {
  display: flex;
  gap: 10px;
}
.modal-select {
  width: 80px;
  min-width: 75px;
  max-width: 90px;
  padding: 10px 4px;
}

/* Footer row */
.modal-footer-row {
  margin-bottom: 16px;
  font-size: 13px;
  color: #36394d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tnc-link { color: #ED8349; text-decoration: underline; cursor: pointer; }

.modal-submit-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 0;
  font-size: 16px;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 600;
  color: #fff;
  background: #F94D1D;
  margin-bottom: 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: filter 0.13s;
}
.modal-submit-btn:hover { filter: brightness(0.98); }
.modal-whatsapp-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 0;
  font-size: 16px;
  background: #25CC63;
  color: #fff;
  font-weight: 600;
  margin-top: 3px;
  cursor: pointer;
  font-family: "Red Hat Display", sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.13s;
}
.modal-whatsapp-btn:hover { filter: brightness(0.99); }

/* Animations */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUpIn { from{transform:translateY(30px);} to{transform:translateY(0);} }

@media (max-width: 520px) {
  .modal-content { padding: 16px 4vw; }
}
