/* Contact, privacy and database-backed customer reviews v33 */
.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.privacy-consent {
  margin-top: 20px;
  padding: 14px 15px;
  border: 1px solid rgba(75, 178, 216, 0.22);
  border-radius: 8px;
  background: rgba(4, 20, 35, 0.68);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.privacy-consent.has-error {
  border-color: rgba(255, 87, 105, 0.82);
  background: rgba(82, 15, 28, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 87, 105, 0.12), 0 0 25px rgba(255, 87, 105, 0.08);
  animation: consent-alert 420ms ease;
}

.privacy-consent-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdd2de;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-consent-line input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1px solid rgba(77, 216, 255, 0.58);
  border-radius: 4px;
  background: rgba(3, 12, 23, 0.85);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.privacy-consent-line input:checked {
  border-color: #52efb3;
  background-color: #52efb3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.2 6.4 11.5 13.2 4.5' fill='none' stroke='%23052319' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  box-shadow: 0 0 14px rgba(82, 239, 179, 0.32);
}

.privacy-consent-line input:focus-visible {
  outline: 2px solid #62dcff;
  outline-offset: 3px;
}

.privacy-policy-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #58ddff;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(88, 221, 255, 0.42);
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-policy-link:hover { color: #83ebff; }

.privacy-consent-error {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #ff6172;
  background: rgba(255, 61, 83, 0.1);
  color: #ff96a2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.privacy-consent-error[hidden] { display: none; }

@keyframes consent-alert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
}

.privacy-modal[hidden] { display: none; }

.privacy-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 6, 14, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.privacy-modal.open { opacity: 1; }
body.privacy-modal-open { overflow: hidden; }

.privacy-modal-dialog {
  position: relative;
  display: grid;
  width: min(960px, 94vw);
  max-height: min(86vh, 920px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(63, 211, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 67, 99, 0.94), rgba(4, 19, 34, 0.98) 42%),
    #071a2b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 70px rgba(39, 179, 226, 0.09);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.privacy-modal.open .privacy-modal-dialog { transform: translateY(0) scale(1); }

.privacy-modal-head,
.privacy-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(80, 190, 230, 0.18);
  background: rgba(3, 17, 30, 0.62);
}

.privacy-modal-head div { display: grid; gap: 5px; }
.privacy-modal-head span { color: #4eeab1; font: 700 9px Consolas, monospace; letter-spacing: 0.16em; }
.privacy-modal-head h2 { margin: 0; color: #f0fbff; font-size: 23px; }

.privacy-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(83, 205, 246, 0.28);
  border-radius: 50%;
  background: rgba(7, 35, 55, 0.72);
  color: #dff7ff;
  font-size: 22px;
  cursor: pointer;
}

.privacy-modal-close:hover { border-color: #62dcff; color: #62dcff; }

.privacy-policy-content {
  overflow: auto;
  padding: 8px clamp(24px, 4vw, 50px) 42px;
  scrollbar-color: rgba(69, 201, 241, 0.48) rgba(4, 17, 30, 0.6);
}

.privacy-policy-document { color: #abc1cf; font-size: 13px; line-height: 1.9; }
.privacy-policy-title { padding: 32px 0 20px; border-bottom: 1px solid rgba(80, 190, 230, 0.17); }
.privacy-policy-title span { color: #54eeb5; font: 700 9px Consolas, monospace; letter-spacing: 0.18em; }
.privacy-policy-title h2 { margin: 8px 0 0; color: #f3fbff; font-size: clamp(28px, 4vw, 42px); }
.privacy-policy-document h3 { margin: 34px 0 12px; color: #eaf8ff; font-size: 19px; line-height: 1.5; }
.privacy-policy-document h4 { margin: 22px 0 8px; color: #ccebf7; font-size: 14px; line-height: 1.6; }
.privacy-policy-document p { margin: 11px 0; }
.privacy-policy-document .privacy-policy-item { padding-left: 14px; border-left: 1px solid rgba(77, 206, 244, 0.24); }
.policy-loading, .policy-load-error { padding: 50px 0; text-align: center; color: #88a8bb; }
.policy-load-error { color: #ff93a0; }

.privacy-modal-foot {
  justify-content: flex-end;
  border-top: 1px solid rgba(80, 190, 230, 0.18);
  border-bottom: 0;
}

.privacy-accept-button,
.review-primary-button,
.review-secondary-button,
.review-form-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(71, 208, 249, 0.36);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(20, 133, 185, 0.76), rgba(32, 90, 187, 0.72));
  color: #effbff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-accept-button:hover,
.review-primary-button:hover,
.review-form-toggle:hover {
  border-color: #67e3ff;
  box-shadow: 0 8px 24px rgba(20, 150, 207, 0.2);
}

.reviews-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.review-form-toggle {
  min-width: 126px;
  flex-direction: column;
  background: rgba(7, 39, 62, 0.72);
}

.review-form-toggle span { font-size: 16px; line-height: 1; }
.review-form-toggle small { color: #8fb8ca; font: 700 9px Consolas, monospace; letter-spacing: 0.1em; }

.review-form-panel[hidden] { display: none; }

.review-form-panel {
  margin-bottom: 20px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(69, 201, 241, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(12, 64, 92, 0.68), rgba(5, 27, 45, 0.82)),
    rgba(5, 27, 45, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.review-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.review-form-head h4 { margin: 0 0 7px; color: #effaff; font-size: 24px; }
.review-form-head p { margin: 0; color: #7593a6; font-size: 12px; }
.review-form-head b { color: #4eeab1; font: 700 10px Consolas, monospace; letter-spacing: 0.13em; }

.review-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.review-field {
  display: grid;
  gap: 8px;
}

.review-field-wide { grid-column: 1 / -1; }
.review-field > span { color: #89a5b6; font-size: 11px; }

.review-field input,
.review-field textarea {
  width: 100%;
  border: 1px solid rgba(88, 178, 213, 0.22);
  border-radius: 6px;
  outline: 0;
  background: rgba(2, 13, 24, 0.62);
  color: #edfaff;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.review-field input { height: 46px; padding: 0 13px; }
.review-field textarea { min-height: 116px; padding: 12px 13px; resize: vertical; }
.review-field input:focus, .review-field textarea:focus { border-color: rgba(65, 220, 255, 0.7); box-shadow: 0 0 0 3px rgba(65, 220, 255, 0.07); }

.rating-selector {
  display: flex;
  width: max-content;
  gap: 5px;
}

.rating-selector button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #365466;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}

.rating-selector button.active,
.rating-selector button.preview { color: #ffd15a; }
.rating-selector button:hover { transform: translateY(-2px) scale(1.07); }

.review-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
}

.review-primary-button:disabled { cursor: wait; opacity: 0.55; }
.review-secondary-button { background: rgba(7, 26, 43, 0.72); color: #8facbd; }

.review-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #56edb5;
  font-size: 11px;
}

.review-status.error { color: #ff8795; }

.review-grid[aria-busy="true"] {
  min-height: 240px;
  opacity: 0.58;
}

.review-loading,
.review-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(80, 190, 230, 0.2);
  border-radius: 12px;
  color: #7190a2;
  font-size: 12px;
}

.review-empty.error { color: #ff8795; }

.review-card-live { animation: review-arrive 300ms ease both; }

@keyframes review-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-card footer .review-meta {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.review-card footer time {
  color: #567185;
  font-size: 9px;
  white-space: nowrap;
}

.review-like {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(69, 201, 241, 0.18);
  border-radius: 999px;
  background: rgba(5, 29, 47, 0.72);
  color: #7898aa;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.review-like span { color: inherit !important; font-size: 15px !important; line-height: 1; }
.review-like b { color: inherit !important; font: 700 10px Consolas, monospace !important; }
.review-like:hover:not(:disabled) { border-color: rgba(255, 98, 116, 0.56); color: #ff7787; transform: translateY(-1px); }
.review-like.liked { border-color: rgba(255, 98, 116, 0.36); background: rgba(122, 20, 39, 0.2); color: #ff7787; }
.review-like:disabled { cursor: default; }

@media (max-width: 900px) {
  .privacy-modal { padding: 12px; }
  .privacy-modal-dialog { width: 100%; max-height: 92vh; border-radius: 13px; }
  .privacy-modal-head, .privacy-modal-foot { padding: 14px 16px; }
  .privacy-policy-content { padding: 6px 18px 32px; }
  .reviews-actions { width: 100%; }
  .review-score { flex: 1; }
  .review-form-toggle { flex: 0 0 120px; }
}

@media (max-width: 620px) {
  .privacy-consent { padding: 13px; }
  .privacy-consent-line { align-items: flex-start; flex-wrap: wrap; }
  .privacy-consent-line input { margin-top: 1px; }
  .privacy-policy-link { margin-left: 27px; }
  .privacy-modal-head h2 { font-size: 19px; }
  .privacy-policy-document { font-size: 12px; line-height: 1.82; }
  .privacy-policy-document h3 { font-size: 16px; }
  .reviews-actions { display: grid; grid-template-columns: minmax(0, 1fr) 112px; }
  .review-score { padding: 13px 14px; }
  .review-score strong { font-size: 32px; }
  .review-form-toggle { min-width: 0; }
  .review-entry-grid { grid-template-columns: 1fr; }
  .review-field-wide { grid-column: auto; }
  .review-form-panel { padding: 22px 17px; }
  .review-form-head { flex-direction: column; gap: 8px; }
  .review-form-actions { align-items: stretch; flex-direction: column; }
  .review-form-actions button { width: 100%; }
  .review-card footer .review-meta { align-items: flex-start; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent.has-error,
  .review-card-live { animation: none; }
}
