/* RESET & BASE */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

/* HEADER STRUCTURE */
.site-header {
  position: relative;
  background: #3a3a3a;
  color: #fff;
  padding: 0;
}


.header-inner {
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

img.feathered {
  display: block;
  background-color: #f9f9f9;
  mask-image: 
    linear-gradient(to top,    rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%),
    linear-gradient(to left,   rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%),
    linear-gradient(to right,  rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
}


/* LOGO LEFT */
.logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.logo img {
  max-height: 75px;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

/* NAV + SEARCH RIGHT */
.nav-search-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  position: relative;
}

/* NAVIGATION MENU */
.main-nav {
  width: 100%;
  text-align: right;
  padding-top: 0.2rem;
}

/* NAV LINKS BASE */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 1.5rem;
}



/* NAV LINK STYLING */
.main-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #ff3c3c;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.main-nav a:hover::after {
  width: 100%;
}

/* NAV TOGGLE BUTTON FOR MOBILE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  padding: 0.2rem;
}



/* MAIN CONTENT WRAPPER */
.content-wrapper {
  max-width: 990px;
  margin: auto;
  background: #fff;
  padding: 1rem 2rem 2rem 2rem; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 2rem; 
  margin-bottom: 2rem;
}


/* ARTICLE LAYOUT */
.profile-article {
  display: grid;
  grid-template-areas:
    "content sidebar";
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}



/* ARTICLE CONTENT */
.article-content {
  grid-area: content;
}

.article-content h1 {
  font-size: 2rem;
  color: #3a3a3a;
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.4rem;
  color: #cc0000;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content a {
  color: #cc0000;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}



.claimsheaven-block {
  font-size: 1.0rem;
  line-height: 1.4;
  font-family: inherit;
  color: #444;
  background-color: #fcfcfc;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.claimsheaven-block h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #333;
  font-weight: 600;
}

.claimsheaven-block p {
  margin: 0.5em 0;
}


.logo-container {
  float: right;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 8px;
  max-width: 220px;
  margin-left: 0.3rem;
  margin-bottom: 0.5rem;
}

.firm-logo {
  max-height: 100px;
  max-width: 120px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}


.infoquote {
  color: #4CAF50; 
  font-style: italic;
  padding: 3px;
  border-left: 3px solid #4CAF50;
  background-color: #f0fff0; 
}


/* SIDEBAR ADS */
.sidebar-ads {
  grid-area: sidebar;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  position: relative;
  overflow: visible;
  z-index: 0;
}

.sidebar-ads h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.sidebar-ads ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-ads li {
  margin-bottom: 0.5rem;
}

.sidebar-ads a {
  color: #cc0000;
  text-decoration: none;
}

.sidebar-ads a:hover {
  text-decoration: underline;
}



.flags {
  display: flex;
  justify-content: center;
  gap: 0.2rem; 
  padding: 0.5rem;
}

.flags a img {
  max-width: 100%;
  height: auto;
}



.add-firm-button-wrapper {
  text-align: center;
  margin-top: 0.25rem;
}

.add-firm-button {
  width: 100%; 
  background-color: #fddddd; 
  color: #cc0000; 
  border: 2px solid #cc0000; 
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.add-firm-button:hover {
  background-color: #ffe5e5;
  box-shadow: 0 0 6px rgba(204, 0, 0, 0.3);
}



.site-search {
  width: 100%;
  margin: 0 auto;
  padding-top: 0.5rem;
  padding-bottom: 0.1rem;
}

.site-search form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.site-search select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: left;
}

.site-search .input-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.site-search input[name="pc"] {
  width: 100px;
  max-width: 100px;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: left;
}

.site-search button {
  width: 100px;
  padding: 0.4rem 0.8rem;
  background-color: #cc0000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.site-search button:hover {
  background-color: #a80000;
}



/* DROPDOWN MENU */
.dropdown-wrapper {
  position: relative;
  z-index: 1000; 
}

.dropdown-toggle {
  width: 100%;
  padding: 0.5rem;
  background-color: #fff;
  border: 1px solid #ccc;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  color: #333;
  touch-action: manipulation; 
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  position: absolute;
  width: 100%;
  z-index: 1001;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}

.dropdown-wrapper.open .dropdown-list {
  display: block;
}

.dropdown-list li a {
  display: block;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  font-size: 0.9rem;
  color: #cc0000;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-list li a:hover {
  background-color: #f9f9f9;
  text-decoration: underline;
}


.vote-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
  width: 100%;
}

.vote-box .vote-banner {
  background-color: #3399cc;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.vote-box .vote-content {
  padding: 1rem;
}

.vote-box .vote-content label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.vote-box .vote-content input[type="radio"] {
  accent-color: #3399cc;
}

.vote-box .vote-content button[type="submit"] {
  display: block;
  margin-left: auto;
  margin-top: 0.75rem;
  background-color: #3399cc;
  color: #fff;
  border: none;
  padding: 0.4rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.vote-box .vote-content button[type="submit"]:hover {
  background-color: #66b2e0;
}


.law-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.law-services li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  margin: 4px 0;
  padding: 8px 12px;
  background-color: #e6f4ff;
  width: 100%;
  box-sizing: border-box;
  line-height: 1;
  position: relative;
  transition: background-color 0.2s ease;
}

.law-services li:hover {
  background-color: #cce6ff;
}

.law-services li::before {
  content: attr(data-icon);
  font-size: 1.5em;
  background-color: #3399cc;
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.law-services li:hover::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #3399cc;
}

.law-services a {
  color: #3399cc;
  font-weight: 500;
  padding-left: 8px;
  flex-grow: 1;
  text-decoration: none;
}

/* FOOTER */
.site-footer {
  background: #3a3a3a;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.footer-links {
  padding-top: 0.2rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  color: #ff3c3c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding-top: 0.2rem;
}

.search-bar {
  padding-top: 0.1rem;
  margin-bottom: 0.8rem;
}

.search-bar form {
  display: flex;
  gap: 0.5rem;
}

.search-bar input[type="search"] {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
}

.search-bar button {
  padding: 0.4rem 0.8rem;
  background-color: #cc0000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #a80000;
}





.star-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.stars {
  display: flex;
  direction: rtl;
  unicode-bidi: bidi-override;
  gap: 0.2em;
}

.stars input[type="radio"] {
  display: none;
}

.stars label {
  font-size: 2em;
  color: #ccc;
  cursor: pointer;
  margin: 0;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.stars label:hover,
.stars label:hover ~ label {
  color: #f5b301;
}

.stars input:checked ~ label {
  color: #f5b301;
}

.thank-you {
  font-size: 1.0rem;
  color: #4CAF50;
  display: none;
  text-align: center;
}

/* Hide all labels when any radio is checked */
#star1:checked ~ label,
#star2:checked ~ label,
#star3:checked ~ label,
#star4:checked ~ label,
#star5:checked ~ label {
  display: none;
}

/* Show thank-you message when any radio is checked */
#star1:checked ~ .thank-you,
#star2:checked ~ .thank-you,
#star3:checked ~ .thank-you,
#star4:checked ~ .thank-you,
#star5:checked ~ .thank-you {
  display: block;
}



.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-search-wrapper {
    width: 100%;
    align-items: stretch;
  }

  .nav-toggle {
    display: block;
    align-self: flex-end;
    margin-bottom: 0.5rem;
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 1002;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #3a3a3a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 0.4rem 0;
    border-bottom: 1px solid #555;
  }

  .site-search {
    width: 100%;
    padding-bottom: 0.2rem;
    padding-top: 1rem;
  }

  .site-search form {
    flex-direction: column;
    align-items: center;
  }

.site-search select {
  width: 100%;
  max-width: none;
  text-align: left;
  margin-bottom: 0.5rem;
}

.site-search input[type="text"] {
  width: 90%;
  max-width: 150px; 
  text-align: left;
  margin-bottom: 0.5rem;
}

.site-search button {
  width: 95%;
  margin-bottom: 0.5rem;
}

.content-wrapper {
  width: 98vw;
  max-width: 98vw;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box; 
  padding-left: 1rem;
  padding-right: 1rem;
}

  .profile-article {
    grid-template-areas:
      "content"
      "sidebar";
    grid-template-columns: 1fr;
  }

  .sidebar-ads {
    position: relative;
    overflow: visible;
    z-index: 0;
  }

  .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1001;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }


  .dropdown-wrapper.open .dropdown-list {
    display: block;
  }

  .search-bar {
    display: flex;
    justify-content: center;
  }

  .search-bar form {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 400px; 
  }

  .search-bar input[type="search"] {
    flex-grow: 1;
    width: auto;
    min-width: 0;
  }

  .search-bar button {
    flex-shrink: 0;
    width: 100px;
  }



}