/**
 * Public styles for Niya Verification Plugin
 */

/* Container */
.niya-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Verification Page */
.niya-verification-page {
  background: #f9f9f9;
  min-height: 60vh;
  padding: 40px 0;
}

.niya-verification-header {
  text-align: center;
  margin-bottom: 40px;
}

.niya-company-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.niya-verification-header h1 {
  font-size: 36px;
  margin: 0;
  color: #333;
}

.niya-verification-status {
  text-align: center;
  margin: 40px 0;
}

.niya-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.niya-status-icon {
  font-size: 48px;
}

.niya-status-valid {
  background: #d4edda;
  color: #155724;
}

.niya-status-pending {
  background: #fff3cd;
  color: #856404;
}

.niya-status-suspended {
  background: #f8d7da;
  color: #721c24;
}

.niya-status-revoked {
  background: #f5c6cb;
  color: #721c24;
}

.niya-status-error {
  background: #f5c6cb;
  color: #721c24;
}

.niya-last-updated {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.niya-verification-details {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.niya-detail-section {
  margin-bottom: 30px;
}

.niya-detail-section h2 {
  color: #2271b1;
  border-bottom: 2px solid #2271b1;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.niya-details-table {
  width: 100%;
  border-collapse: collapse;
}

.niya-details-table th {
  text-align: left;
  padding: 12px;
  background: #f5f5f5;
  font-weight: 600;
  width: 30%;
}

.niya-details-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.niya-tx-hash {
  font-size: 12px;
  word-break: break-all;
  background: #f5f5f5;
  padding: 8px;
  display: block;
  border-radius: 4px;
}

.niya-verification-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* Buttons */
.niya-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2271b1;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.niya-button:hover {
  background: #135e96;
}

.niya-button-outline {
  background: transparent;
  border: none;
  color: #2271b1 !important;
}

.niya-button-outline:hover {
  background: #2271b1;
  color: white !important;
}

.niya-button-primary {
  background: #00a86b;
}

.niya-button-primary:hover {
  background: #008554;
}

.niya-button-small {
  padding: 8px 16px;
  font-size: 14px;
}

.niya-button-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Directory */
.niya-directory {
  padding: 40px 0;
}

.niya-directory-filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.niya-filter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.niya-filter-group {
  flex: 1;
  min-width: 200px;
}

.niya-search-input,
.niya-filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.niya-directory-grid {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.niya-view-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  justify-items: stretch;
}

.niya-view-list {
  grid-template-columns: 1fr;
}

.niya-company-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.niya-company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* WordPress Post Card Style */
.niya-modern-card {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.niya-modern-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #c3c4c7;
}

/* Featured Image/Logo Area */
.niya-card-top {
  position: relative;
  overflow: hidden;
  background: #f6f7f7;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niya-company-logo {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.niya-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 0; /* Ensure no border radius on images */
}

.niya-modern-card:hover .niya-company-logo img {
  transform: scale(1.05);
}

/* Ensure featured images display properly */
.niya-company-logo {
  position: relative;
  overflow: hidden;
  background: #f6f7f7; /* Light background for better contrast */
}

.niya-company-logo img {
  display: block;
  max-width: none; /* Allow images to scale properly */
  min-width: 100%;
  min-height: 100%;
  object-position: center; /* Center the image within the container */
}

/* Fallback for images that don't load */
.niya-company-logo img[src=""],
.niya-company-logo img:not([src]) {
  display: none;
}

.niya-company-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  border-radius: 8px;
}

.niya-company-svg-icon {
  width: 60px;
  height: 60px;
  color: #8c8f94;
  fill: #8c8f94;
  stroke: none;
}

/* Content Area */
.niya-card-bottom {
  padding: 20px;
  background: white;
}

/* Status Badge - WordPress style */
.niya-status-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0073aa;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.niya-status-badge-overlay.niya-status-valid {
  background: #00a32a;
}

.niya-status-badge-overlay.niya-status-pending {
  background: #dba617;
}

.niya-status-badge-overlay.niya-status-suspended {
  background: #d63638;
}

.niya-status-badge-overlay.niya-status-revoked {
  background: #8c8f94;
}

/* Company Title - WordPress post title style */
.niya-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.niya-card-title a {
  color: #1e1e1e;
  text-decoration: none;
}

.niya-card-title a:hover {
  color: #0073aa;
}

/* Company Description - WordPress excerpt style */
.niya-card-description {
  color: #646970;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Action Buttons - WordPress style */
.niya-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f1;
}

.niya-card-button {
  display: inline-block;
  padding: 6px 12px;
  background: #f6f7f7;
  color: #2c3338;
  text-decoration: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #c3c4c7;
  transition: all 0.2s ease;
}

.niya-card-button:hover {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.niya-card-button-primary {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.niya-card-button-primary:hover {
  background: #005a87;
  border-color: #005a87;
}

/* Meta information */
.niya-card-meta {
  font-size: 12px;
  color: #646970;
  margin-bottom: 12px;
}

.niya-card-meta span {
  margin-right: 16px;
}

/* Tags */
.niya-card-tags {
  margin-bottom: 12px;
}

.niya-tag {
  display: inline-block;
  padding: 2px 6px;
  background: #f0f0f1;
  color: #2c3338;
  font-size: 11px;
  border-radius: 2px;
  margin-right: 4px;
  margin-bottom: 4px;
  text-decoration: none;
}

.niya-tag:hover {
  background: #0073aa;
  color: white;
}

.niya-company-logo {
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niya-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.niya-company-content {
  padding: 20px;
}

.niya-company-content h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.niya-company-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.niya-company-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.niya-company-actions .niya-button {
  flex: 1;
  text-align: center;
}

.niya-pagination {
  text-align: center;
  margin: 40px 0;
}

.niya-pagination a,
.niya-pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  background: white;
  border: 1px solid #ddd;
  color: #2271b1;
  text-decoration: none;
  border-radius: 4px;
}

.niya-pagination .current {
  background: #0e1f43;
  color: white;
  border-color: #0e1f43;
}

/* Complaint Form */
.niya-complaint-form-wrapper {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.niya-form-group {
  margin-bottom: 20px;
}

.niya-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.niya-form-group input[type="text"],
.niya-form-group input[type="email"],
.niya-form-group textarea,
.niya-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Multiselect dropdown styling - make it look like regular select */
.niya-form-group select[multiple] {
  height: auto;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  padding: 10px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

.niya-form-group select[multiple]:focus {
  height: auto;
  max-height: 200px;
  overflow-y: auto;
}

.niya-form-group select[multiple] option {
  padding: 8px;
}

.niya-form-group select[multiple] option:checked {
  background-color: #2271b1;
  color: #fff;
}

.niya-form-group textarea {
  resize: vertical;
}

.required {
  color: #dc3232;
}

.niya-star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.niya-star-rating input {
  display: none;
}

.niya-star-rating label {
  font-size: 30px;
  cursor: pointer;
  transition: color 0.2s ease;
  color: #ddd;
}

.niya-star-rating label:hover,
.niya-star-rating label:hover ~ label,
.niya-star-rating input:checked ~ label {
  color: #ffc107;
}

.niya-form-message {
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

.niya-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.niya-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* reCAPTCHA Container - Prevent Overflow */
.niya-recaptcha-form-group {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.niya-recaptcha-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.niya-recaptcha-block,
.g-recaptcha.niya-recaptcha-block {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-block;
}

/* Force reCAPTCHA container to respect max-width */
.niya-recaptcha-wrapper > div {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Force reCAPTCHA iframe to respect container */
.niya-recaptcha-wrapper iframe {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Medium screens (1110px and below) - Prevent overflow */
@media (max-width: 1110px) {
  .niya-complaint-form-wrapper {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .niya-recaptcha-form-group {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0 0 20px 0;
  }

  .niya-recaptcha-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
  }

  .g-recaptcha.niya-recaptcha-block {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    display: block;
  }

  /* Scale down reCAPTCHA on medium screens to fit */
  .niya-recaptcha-wrapper > div {
    transform: scale(0.95);
    transform-origin: top left;
    max-width: 100% !important;
  }
}

/* Smaller medium screens (900px and below) */
@media (max-width: 900px) {
  .niya-recaptcha-wrapper > div {
    transform: scale(0.9);
    transform-origin: top left;
  }
}

/* Tablets and below (768px and below) */
@media (max-width: 768px) {
  .niya-complaint-form-wrapper {
    padding: 15px;
  }

  .niya-recaptcha-wrapper > div {
    transform: scale(0.85);
    transform-origin: top left;
  }
}

/* Mobile screens (480px and below) */
@media (max-width: 480px) {
  .niya-recaptcha-wrapper > div {
    transform: scale(0.75);
    transform-origin: top left;
  }
}

/* Hide duplicate address text BELOW the map - address above map is kept */
.niya-company-location .niya-company-address,
.niya-company-map-container + .niya-company-address {
  display: none !important;
}

/* Company Profile */
.niya-company-profile {
  padding: 40px 0;
}

.niya-profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.niya-profile-logo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.niya-profile-title h1 {
  margin: 0 0 10px 0;
}

.niya-profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.niya-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.niya-section h2,
.niya-section h3 {
  color: #2271b1;
  margin-top: 0;
  border-bottom: 2px solid #2271b1;
  padding-bottom: 10px;
}

.niya-info-table {
  width: 100%;
}

.niya-info-table th {
  text-align: left;
  padding: 10px 15px 10px 0;
  font-weight: 600;
  width: 30%;
}

.niya-info-table td {
  padding: 10px 0;
}

.niya-asset {
  text-align: center;
  margin-bottom: 20px;
}

.niya-asset img {
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.niya-copy-input {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
}

.niya-profile-footer {
  margin-top: 40px;
}

/* QR Code Shortcode */
.niya-qr-code-wrapper {
  display: inline-block;
  margin: 20px 0;
}

.niya-qr-code-wrapper.niya-align-left {
  text-align: left;
}

.niya-qr-code-wrapper.niya-align-center {
  text-align: center;
  display: block;
}

.niya-qr-code-wrapper.niya-align-right {
  text-align: right;
  display: block;
}

.niya-qr-code-image {
  display: inline-block;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.niya-qr-code-wrapper a:hover .niya-qr-code-image {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Verification Seal Shortcode */
.niya-seal-wrapper {
  display: inline-block;
  margin: 20px 0;
}

.niya-seal-wrapper.niya-align-left {
  text-align: left;
}

.niya-seal-wrapper.niya-align-center {
  text-align: center;
  display: block;
}

.niya-seal-wrapper.niya-align-right {
  text-align: right;
  display: block;
}

.niya-seal-image {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.niya-seal-wrapper a:hover .niya-seal-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.niya-seal-wrapper.niya-seal-small .niya-seal-image {
  max-width: 150px;
}

.niya-seal-wrapper.niya-seal-medium .niya-seal-image {
  max-width: 250px;
}

.niya-seal-wrapper.niya-seal-large .niya-seal-image {
  max-width: 400px;
}

/* Error messages for shortcodes */
.niya-error {
  color: #dc3232;
  padding: 10px;
  background: #f8d7da;
  border: 1px solid #dc3232;
  border-radius: 4px;
  margin: 10px 0;
}

/* Company Search Shortcode */
.niya-search-wrapper {
  margin: 30px 0;
}

.niya-search-form {
  background: transparent;
  padding: 20px;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  margin-bottom: 30px;
}

.niya-search-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.niya-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.niya-search-input:focus {
  outline: none;
  border-color: #2271b1;
}

.niya-search-button {
  padding: 12px 30px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.niya-search-button:hover {
  background: #135e96;
}

.niya-search-button .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.niya-search-filters {
  display: flex;
  gap: 15px;
}

.niya-search-results {
  margin-top: 30px;
}

.niya-search-results h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.niya-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
  justify-items: stretch;
  padding: 20px 0;
}

/* Ensure search results cards display properly */
.niya-search-results .niya-company-card {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Search results container styling */
.niya-search-results {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.niya-no-results {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
}

.niya-no-results p {
  color: #666;
  font-size: 18px;
}

.niya-company-meta {
  margin: 10px 0;
}

.niya-status-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.niya-status-label.niya-status-valid {
  background: #d4edda;
  color: #155724;
}

.niya-status-label.niya-status-pending {
  background: #fff3cd;
  color: #856404;
}

.niya-status-label.niya-status-suspended {
  background: #f8d7da;
  color: #721c24;
}

.niya-status-label.niya-status-revoked {
  background: #f5c6cb;
  color: #721c24;
}

/* Companies by Industry Shortcode */
.niya-industries-wrapper {
  margin: 40px 0;
}

.niya-industry-section {
  margin-bottom: 50px;
}

.niya-industry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #2271b1;
}

.niya-industry-header h2 {
  margin: 0;
  color: #2271b1;
  font-size: 28px;
}

.niya-view-all-link {
  color: #2271b1;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.niya-view-all-link:hover {
  color: #135e96;
}

.niya-industry-companies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  justify-items: stretch;
}

.niya-industry-company-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.niya-industry-company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.niya-company-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.niya-company-logo-small {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.niya-company-logo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.niya-company-info {
  flex: 1;
}

.niya-company-info h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
}

.niya-mini-seal {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.niya-industry-company-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.niya-company-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.niya-verify-link {
  color: #00a86b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.niya-verify-link:hover {
  color: #008554;
}

.niya-no-companies {
  color: #999;
  font-style: italic;
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 6px;
}

/* Verification Badge */
.niya-verification-badge {
  display: inline-block;
  text-align: center;
  margin: 10px 0;
}

.niya-badge-small img {
  max-width: 100px;
}

.niya-badge-medium img {
  max-width: 150px;
}

.niya-badge-large img {
  max-width: 200px;
}

/* Verification Status Styles */
.niya-status {
  display: inline-flex;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
}

.niya-status-badge {
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #212529;
}

.niya-status-text {
  display: inline-flex;
  align-items: center;
}

.niya-status-icon {
  margin-right: 5px;
  font-size: 1.2em;
}

.niya-status-small {
  font-size: 0.8em;
}

.niya-status-medium {
  font-size: 1em;
}

.niya-status-large {
  font-size: 1.2em;
}

/* Status Colors */
.niya-status-valid {
  background-color: #28a745;
  color: white;
}

.niya-status-pending {
  background-color: #6c757d;
  color: white;
}

.niya-status-suspended {
  background-color: #ffc107;
  color: #212529;
}

.niya-status-revoked {
  background-color: #dc3545;
  color: white;
}

/* Company Detail Styles */
.niya-company-detail {
  margin: 5px 0;
  line-height: 1.5;
}

.niya-detail-label {
  font-weight: 600;
  margin-right: 5px;
}

.niya-detail-card {
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #f8f9fa;
  margin-bottom: 10px;
}

.niya-detail-inline {
  display: inline-block;
  margin-right: 15px;
}

/* Container Styles */
.niya-info-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.niya-verification-details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 20px;
}

.niya-verification-details-container .niya-status {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .niya-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .niya-profile-content {
    grid-template-columns: 1fr;
  }

  .niya-filter-form {
    flex-direction: column;
  }

  .niya-filter-group {
    width: 100%;
  }

  .niya-company-actions {
    flex-direction: column;
  }

  .niya-qr-code-wrapper,
  .niya-seal-wrapper {
    text-align: center;
    display: block;
  }

  .niya-qr-code-image,
  .niya-seal-image {
    max-width: 100%;
    height: auto;
  }

  /* Search shortcode responsive */
  .niya-search-input-group {
    flex-direction: column;
  }

  .niya-search-button {
    justify-content: center;
  }

  .niya-search-filters {
    flex-direction: column;
  }

  .niya-search-results-grid {
    grid-template-columns: 1fr;
  }

  /* Industry shortcode responsive */
  .niya-industry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .niya-industry-companies {
    grid-template-columns: 1fr;
  }

  .niya-company-header {
    flex-direction: column;
  }

  .niya-company-logo-small {
    width: auto;
    height: auto;
  }

  /* Modern Card Responsive */
  .niya-modern-card {
    margin-bottom: 20px;
    max-width: 100%;
    height: 400px;
  }

  .niya-card-top {
    height: 130px;
  }

  /* .niya-company-logo {
        max-width: 80px;
        max-height: 80px;
    }
     */
  .niya-company-icon {
    width: 80px;
    height: 80px;
  }

  .niya-card-bottom {
    height: 270px;
    padding: 18px 16px 16px 16px;
  }

  .niya-status-badge-overlay {
    padding: 5px 10px;
    font-size: 10px;
  }

  .niya-card-title {
    font-size: 18px;
    margin: 18px 0 10px 0;
  }

  .niya-card-description {
    font-size: 12px;
    -webkit-line-clamp: 4;
  }

  .niya-view-grid,
  .niya-search-results-grid,
  .niya-industry-companies {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Reviews & Complaints Styling */

/* Reviews Wrapper */
.niya-reviews-wrapper {
  margin: 40px 0;
}

.niya-reviews-summary {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.niya-reviews-summary h3 {
  margin-top: 0;
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

/* Rating Overview */
.niya-rating-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.niya-average-rating {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.niya-rating-number {
  font-size: 64px;
  font-weight: bold;
  color: #2271b1;
  line-height: 1;
}

.niya-rating-stars {
  font-size: 24px;
  margin: 10px 0;
}

.niya-rating-count {
  color: #666;
  font-size: 14px;
}

/* Rating Breakdown */
.niya-rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.niya-rating-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.niya-star-label {
  font-size: 14px;
  min-width: 50px;
}

.niya-rating-bar {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.niya-rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107, #ff9800);
  transition: width 0.3s ease;
}

.niya-rating-count-small {
  min-width: 30px;
  text-align: right;
  color: #666;
  font-size: 14px;
}

/* Reviews List */
.niya-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.niya-review-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.niya-review-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.niya-review-header {
  margin-bottom: 15px;
}

.niya-reviewer-info {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.niya-reviewer-avatar {
  flex-shrink: 0;
}

.niya-avatar-initials {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2271b1, #135e96);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.niya-reviewer-details h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #fff;
}

.niya-review-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.niya-review-stars {
  font-size: 16px;
}

.niya-review-date {
  color: #999;
  font-size: 14px;
}

.niya-review-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 15px 0 10px 0;
}

.niya-review-text {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

/* Star Rating Display */
.star-full {
  color: #ffc107;
}

.star-half {
  color: #ffc107;
  opacity: 0.5;
}

.star-empty {
  color: #ddd;
}

/* No Reviews Message */
.niya-no-reviews {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  color: #666;
  font-style: italic;
}

/* Review Form Toggle */
.niya-review-form-toggle {
  margin: 30px 0;
  text-align: center;
}

/* Review Form */
.niya-review-form-wrapper {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.niya-review-form-wrapper h3 {
  margin-top: 0;
  color: #333;
}

.niya-star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.niya-star-rating-input input {
  display: none;
}

.niya-star-rating-input .star-label {
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: #ddd;
}

.niya-star-rating-input .star-label:hover,
.niya-star-rating-input .star-label:hover ~ .star-label,
.niya-star-rating-input input:checked ~ .star-label {
  color: #ffc107;
  transform: scale(1.1);
}

/* Complaints Wrapper */
.niya-complaints-wrapper {
  margin: 40px 0;
}

.niya-complaints-wrapper h3 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

.niya-complaints-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.niya-complaint-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #2271b1;
  transition: box-shadow 0.3s ease;
}

.niya-complaint-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.niya-complaint-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.niya-complaint-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #555;
}

.niya-complaint-rating {
  font-size: 16px;
}

.niya-complaint-content p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.niya-complaint-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.niya-complaint-date {
  color: #999;
  font-size: 14px;
}

.niya-no-complaints {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  color: #666;
  font-style: italic;
}

/* Responsive for Reviews & Complaints */
@media (max-width: 768px) {
  .niya-rating-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .niya-rating-bar-item {
    font-size: 14px;
  }

  .niya-reviewer-info {
    flex-direction: column;
  }

  .niya-review-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .niya-complaint-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Certification Details Styles */
.niya-certification-level {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.niya-level-certified {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.niya-level-conditional {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.niya-level-exemplar {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.niya-trust-signals {
  display: flex;
  align-items: center;
  gap: 15px;
}

.niya-trust-count {
  font-size: 18px;
  font-weight: 700;
  color: #00a86b;
  min-width: 30px;
}

.niya-trust-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.niya-trust-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a86b 0%, #28a745 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Enhanced Verification Snippets */
.niya-verification-enhanced {
  position: relative;
  overflow: hidden;
}

.niya-verification-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00a86b 0%, #28a745 50%, #00a86b 100%);
}

.verification-enhanced {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verification-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Trust Signal Animations */
@keyframes trustPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.niya-trust-count {
  animation: trustPulse 2s infinite;
}

/* Certification Level Badges */
.niya-certification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.niya-certification-badge::before {
  content: "✓";
  font-size: 16px;
  font-weight: 700;
}

/* Mobile Responsive for Certification */
@media (max-width: 768px) {
  .niya-trust-signals {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .niya-trust-bar {
    width: 100%;
  }

  .niya-certification-level {
    font-size: 12px;
    padding: 4px 8px;
  }

  .verification-enhanced {
    padding: 20px 15px;
  }
}

/* Search chips */
.niya-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.niya-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e1e5e9;
  background: #f7f9fb;
  color: #1a2b4c;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.niya-chip:hover {
  background: #eaf2fb;
  border-color: #cfe1f5;
}

.niya-chip:active {
  background: #dbe9fb;
}

.niya-chip-active {
  background: #2271b1 !important;
  border-color: #2271b1 !important;
  color: #ffffff !important;
}

.niya-chip-active:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

/* Certification Level Dynamic Tag Styles */
.niya-cert-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.niya-cert-icon {
  font-size: 16px;
  line-height: 1;
}

.niya-cert-label {
  line-height: 1.2;
}

/* Trust Signals Dynamic Tag Styles */
.niya-trust-signals-with-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.niya-trust-signals-with-label strong {
  color: #00a86b;
  font-size: 18px;
}

.niya-trust-label {
  color: #666;
  font-size: 14px;
}

.niya-trust-signals-progress {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.niya-trust-progress-bar {
  height: 24px;
  background: linear-gradient(90deg, #00a86b 0%, #28a745 100%);
  border-radius: 12px;
  transition: width 0.5s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.niya-trust-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 14px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Google Maps Enhanced Styling */
.niya-map-wrapper {
  position: relative;
}

.niya-company-map {
  cursor: default;
  transition: box-shadow 0.3s ease;
  width: 100% !important;
  max-width: 90% !important;
}

.niya-company-map:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.niya-map-type-selector {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 100%;
  max-width: 90px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 2px;
}

.niya-map-type-selector:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.niya-map-type-select {
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  outline: none;
  color: #1E1E1E;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.niya-map-type-select:focus {
  outline: none;
}

.niya-map-type-select:hover {
  color: #2271B1;
}

.niya-map-infowindow {
    max-width: 320px;
}

@media (max-width: 640px) {
    .niya-map-infowindow {
        max-width: 260px;
        padding: 16px !important;
    }
    .niya-map-infowindow h3 {
        font-size: 16px !important;
    }
    .niya-map-infowindow img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    .niya-map-infowindow .niya-map-infowindow-footer {
        font-size: 11px !important;
    }
}