/* ═══════════════════════════════════════════════════════════════════════════
   AISkill.US — Cookie Consent UI  v1.0
   File: public/assets/css/cookie-consent.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset scoping ─────────────────────────────────────────────────────────── */
#aiskill-cookie-banner *,
#aiskill-cookie-modal  * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   BANNER
   ════════════════════════════════════════════════════════════════════════════ */
#aiskill-cookie-banner {
  display: none;                    /* JS shows it */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -6px 32px rgba(0,0,0,.12);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

#aiskill-cookie-banner.acb--visible {
  transform: translateY(0);
}

.acb__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.acb__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.acb__text {
  flex: 1;
  min-width: 260px;
}

.acb__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.acb__desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

.acb__desc a {
  color: #00874a;
  text-decoration: underline;
}

.acb__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Shared button base */
.acb__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
  font-family: inherit;
}

.acb__btn--accept {
  background: #00b478;
  color: #fff;
}
.acb__btn--accept:hover { background: #00ca88; }

.acb__btn--reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.acb__btn--reject:hover { background: #e5e7eb; }

.acb__btn--customize {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}
.acb__btn--customize:hover { background: #f3f4f6; }

/* ════════════════════════════════════════════════════════════════════════════
   MODAL OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */
#aiskill-cookie-modal {
  display: none;          /* JS shows it */
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .55);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  transition: opacity .3s ease;
  overflow-y: auto;
}

/* Overlay click-target stays behind card */
#aiskill-modal-overlay {
  position: fixed !important;
  inset: 0;
  z-index: -1;
}

#aiskill-cookie-modal.acm--visible {
  opacity: 1;
}

/* ── Modal card ──────────────────────────────────────────────────────────── */
.acm__card {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  transform: scale(.96) translateY(8px);
  transition: transform .3s ease;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#aiskill-cookie-modal.acm--visible .acm__card {
  transform: scale(1) translateY(0);
}

/* ── Modal header ────────────────────────────────────────────────────────── */
.acm__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.acm__logo {
  height: 30px;
  width: auto;
}

.acm__close {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  font-family: inherit;
}
.acm__close:hover { background: #f3f4f6; border-color: #9ca3af; }

/* ── Modal body ──────────────────────────────────────────────────────────── */
.acm__body {
  padding: 24px 28px 28px;
}

.acm__title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.acm__subtitle {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
}

.acm__subtitle a { color: #00874a; }

/* ── Section heading ──────────────────────────────────────────────────────── */
.acm__section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: #111827;
  margin-bottom: 14px;
}

/* ── Category rows ───────────────────────────────────────────────────────── */
.acm__categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.acm__category {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .18s;
}

.acm__category:hover { border-color: #d1d5db; }

.acm__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  background: #fff;
  gap: 12px;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .15s;
}

.acm__category-header:hover { background: #f9fafb; }

.acm__cat-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
}

.acm__cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.acm__cat-icon--green  { background: #f0fdf9; color: #00874a; }
.acm__cat-icon--blue   { background: #eff6ff; color: #2563eb; }
.acm__cat-icon--amber  { background: #fffbeb; color: #d97706; }
.acm__cat-icon--purple { background: #faf5ff; color: #7c3aed; }

.acm__cat-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.acm__cat-expand {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
  transition: transform .22s;
}

.acm__category.is-open .acm__cat-expand {
  transform: rotate(180deg);
}

.acm__cat-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.acm__always-on {
  font-size: 11px;
  font-weight: 700;
  color: #00874a;
  background: #f0fdf9;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Toggle switch */
.acm__toggle-wrap {
  position: relative;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.acm__toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.acm__toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 25px;
  cursor: pointer;
  transition: background .28s;
}

.acm__toggle-slider::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .28s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.acm__toggle-wrap input:checked + .acm__toggle-slider {
  background: #00b478;
}

.acm__toggle-wrap input:checked + .acm__toggle-slider::before {
  transform: translateX(21px);
}

.acm__toggle-wrap input:disabled + .acm__toggle-slider {
  opacity: .6;
  cursor: not-allowed;
}

/* Category description (collapsible) */
.acm__category-desc {
  display: none;
  padding: 12px 16px 14px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.65;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.acm__category.is-open .acm__category-desc {
  display: block;
}

.acm__category-desc ul {
  margin-top: 8px;
  padding-left: 16px;
}

.acm__category-desc li {
  margin-bottom: 4px;
}

/* ── Modal footer buttons ────────────────────────────────────────────────── */
.acm__footer {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.acm__btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .18s;
  font-family: inherit;
}

.acm__btn--reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.acm__btn--reject:hover { background: #e5e7eb; }

.acm__btn--save {
  background: #00b478;
  color: #fff;
}
.acm__btn--save:hover { background: #00ca88; }


/* ── Legal strip ─────────────────────────────────────────────────────────── */
.acm__legal-strip {
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.65;
}

.acm__legal-strip a {
  color: #00874a;
  text-decoration: underline;
}
.acm__powered {
  text-align: right;
  font-size: 11px;
  color: #d1d5db;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

/* ── Schedule Meeting CTA inside cookie modal ────────────────────────────── */
.acm__schedule-cta {
  margin-top: 16px;
}

.acm__schedule-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.acm__schedule-divider::before,
.acm__schedule-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.acm__schedule-divider span {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  font-weight: 500;
}

.acm__schedule-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f0fdf9, #e6f9f3);
  border: 1.5px solid rgba(0, 180, 120, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
  font-family: inherit;
  text-align: left;
}

.acm__schedule-btn:hover {
  background: linear-gradient(135deg, #e6f9f3, #d1f5e6);
  border-color: rgba(0, 180, 120, 0.5);
  transform: translateY(-1px);
}

.acm__schedule-btn > .fa-calendar-check {
  font-size: 20px;
  color: #00874a;
  flex-shrink: 0;
}

.acm__schedule-btn-title {
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 2px;
}

.acm__schedule-btn-sub {
  font-size: 11.5px;
  color: #059669;
}

.acm__schedule-arrow {
  margin-left: auto;
  color: #00874a;
  font-size: 12px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   PREFERENCE PAGE  (/cookie/preferences)
   ════════════════════════════════════════════════════════════════════════════ */
.pref-hero {
  background: linear-gradient(135deg, #0b1220 0%, #1a2d42 100%);
  padding: 64px 0 48px;
}

.pref-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pref-hero p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  max-width: 600px;
}

.pref-layout {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.pref-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.pref-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 14px;
}

.pref-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pref-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pref-card__icon--green  { background: #f0fdf9; color: #00874a; }
.pref-card__icon--blue   { background: #eff6ff; color: #2563eb; }
.pref-card__icon--amber  { background: #fffbeb; color: #d97706; }
.pref-card__icon--purple { background: #faf5ff; color: #7c3aed; }

.pref-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.pref-card__tag {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
}

.pref-card__body {
  padding: 0 22px 18px;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.7;
  border-top: 1px solid #f3f4f6;
}

/* Pref page toggle — same markup as modal */
.pref-toggle-wrap {
  position: relative;
  width: 50px;
  height: 27px;
  flex-shrink: 0;
}

.pref-toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pref-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 27px;
  cursor: pointer;
  transition: background .28s;
}

.pref-toggle-slider::before {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .28s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.pref-toggle-wrap input:checked + .pref-toggle-slider {
  background: #00b478;
}

.pref-toggle-wrap input:checked + .pref-toggle-slider::before {
  transform: translateX(23px);
}

.pref-toggle-wrap input:disabled + .pref-toggle-slider {
  opacity: .6;
  cursor: not-allowed;
}

/* Action buttons row */
.pref-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pref-btn {
  flex: 1;
  padding: 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s, border-color .18s;
  font-family: inherit;
  min-width: 140px;
}

.pref-btn--save    { background: #00b478; color: #fff; }
.pref-btn--save:hover    { background: #00ca88; }
.pref-btn--accept  { background: #0051a2; color: #fff; }
.pref-btn--accept:hover  { background: #0063c4; }
.pref-btn--reject  { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.pref-btn--reject:hover  { background: #e5e7eb; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .acb__inner       { padding: 16px; gap: 14px; }
  .acb__actions     { width: 100%; }
  .acb__btn         { flex: 1; justify-content: center; }
  .acm__card        { border-radius: 12px; max-height: 95vh; }
  .acm__body        { padding: 20px 20px 24px; }
  .acm__header      { padding: 16px 20px; }
  .acm__footer      { flex-direction: column; }
  .acm__title       { font-size: 19px; }
  .pref-actions     { flex-direction: column; }
}