.visitor-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 24, 43, 0.62);
  backdrop-filter: blur(4px);
}

.visitor-popup-overlay.show {
  display: flex;
}

.visitor-popup {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 221, 133, 0.52);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(6, 24, 43, 0.32);
  color: #06243d;
  overflow: hidden;
}

.visitor-popup-header {
  position: relative;
  padding: 24px 56px 18px 24px;
  background: linear-gradient(135deg, #06243d, #0b2d52);
  color: #ffffff;
}

.visitor-popup-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.visitor-popup-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.visitor-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.visitor-popup-body {
  padding: 22px 24px 24px;
}

.visitor-popup-offer {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #f5f9fc;
  color: #2f4657;
  font-size: 0.96rem;
  line-height: 1.45;
}

.visitor-popup-form {
  display: grid;
  gap: 12px;
}

.visitor-popup-form label {
  font-weight: 800;
  font-size: 0.88rem;
}

.visitor-popup-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad9e3;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: #06243d;
}

.visitor-popup-form input:focus {
  outline: 3px solid rgba(31, 139, 76, 0.18);
  border-color: #1f8b4c;
}

.visitor-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.visitor-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.visitor-popup-submit {
  background: linear-gradient(135deg, #f8d76f, #f5b642);
  color: #101828;
}

.visitor-popup-quote {
  background: #1f8b4c;
  color: #ffffff;
}

.visitor-popup-note {
  margin: 12px 0 0;
  color: #5f6f7e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-disclosure {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(245, 182, 66, 0.44);
  border-radius: 8px;
  background: rgba(6, 36, 61, 0.97);
  box-shadow: 0 18px 48px rgba(6, 24, 43, 0.26);
  color: #ffffff;
}

.cookie-disclosure.show {
  display: flex;
}

.cookie-disclosure p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.5;
}

.cookie-disclosure strong {
  color: #f8d76f;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-accept {
  background: linear-gradient(135deg, #f8d76f, #f5b642);
  color: #101828;
}

.cookie-info {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cookie-details {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 24, 43, 0.62);
}

.cookie-details.show {
  display: flex;
}

.cookie-details-card {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  color: #06243d;
  box-shadow: 0 28px 80px rgba(6, 24, 43, 0.32);
}

.cookie-details-card h2 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.cookie-details-card p {
  color: #435a6b;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .visitor-popup-actions {
    grid-template-columns: 1fr;
  }

  .cookie-disclosure {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1 1 auto;
  }
}
