:root {
  --cwq-navy: #0f172a;
  --cwq-navy-soft: #1e293b;
  --cwq-gold: #d8b46a;
  --cwq-green: #25d366;
  --cwq-white: #ffffff;
  --cwq-muted: #64748b;
}

.cwq-service-notice,
.cwq-modal,
.cwq-modal * {
  box-sizing: border-box;
  font-family: "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.cwq-service-notice {
  position: fixed;
  z-index: 999998;
  bottom: 25px;
  left: 112px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: min(310px, calc(100vw - 136px));
  padding: 11px 14px;
  direction: rtl;
  border: 1px solid rgba(216, 180, 106, 0.58);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--cwq-white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.28);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.65;
  text-align: right;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cwq-service-notice strong {
  color: #f8dda5;
  font-weight: 750;
}

.cwq-service-notice__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cwq-green);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

.cwq-modal[hidden] { display: none !important; }

.cwq-modal {
  position: fixed;
  z-index: 10000000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  direction: rtl;
}

.cwq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.cwq-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(216, 180, 106, 0.42);
  border-radius: 24px;
  background: var(--cwq-white);
  color: var(--cwq-navy);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
  text-align: right;
  animation: cwq-enter 180ms ease-out both;
}

.cwq-modal__close {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f8fafc;
  color: var(--cwq-navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cwq-modal__eyebrow {
  display: inline-block;
  margin: 0 0 9px;
  color: #8a652d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cwq-modal__dialog h2 {
  margin: 0 0 10px;
  padding-left: 42px;
  color: var(--cwq-navy);
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.45;
}

.cwq-modal__dialog > p:not(.cwq-modal__notice) {
  margin: 0 0 24px;
  color: var(--cwq-muted);
  font-size: 15px;
  line-height: 1.8;
}

.cwq-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cwq-service-option {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--cwq-navy-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.cwq-service-option:hover,
.cwq-service-option:focus-visible {
  border-color: var(--cwq-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.18);
}

.cwq-service-option.is-selected {
  border-color: var(--cwq-gold);
  background: #fff9ed;
  color: #6f4c18;
  box-shadow: inset -4px 0 0 var(--cwq-gold);
}

.cwq-modal__notice {
  margin: 20px 0;
  padding: 12px 14px;
  border-right: 3px solid var(--cwq-gold);
  border-radius: 9px;
  background: #fff9ed;
  color: #65491e;
  font-size: 13px;
  line-height: 1.75;
}

.cwq-modal__continue {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--cwq-navy);
  color: var(--cwq-white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.cwq-modal__continue:not(:disabled):hover { background: #192640; transform: translateY(-1px); }

.cwq-modal__continue:focus-visible,
.cwq-modal__close:focus-visible { outline: 3px solid rgba(216, 180, 106, 0.48); outline-offset: 2px; }

.cwq-modal__continue:disabled { cursor: not-allowed; opacity: 0.42; }
body.cwq-modal-open { overflow: hidden; }

@keyframes cwq-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .cwq-service-notice {
    left: 108px;
    width: calc(100vw - 124px);
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .cwq-modal { align-items: end; padding: 10px; }
  .cwq-modal__dialog { max-height: calc(100vh - 20px); padding: 28px 18px 20px; border-radius: 22px 22px 16px 16px; }
  .cwq-modal__close { top: 14px; left: 14px; }
  .cwq-service-grid { grid-template-columns: 1fr; gap: 8px; }
  .cwq-service-option { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cwq-modal__dialog,
  .cwq-service-option,
  .cwq-modal__continue { animation: none; transition: none; }
}

