/* ================================================================
   M365 License Cost Estimator — m365_estimator.css
   ================================================================ */

.m365-wrap { font-family: inherit; color: #1a2236; }

/* ── Hero ── */
.m365-hero {
  background: linear-gradient(135deg, #05386b 0%, #0369a1 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.m365-hero::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -100px; right: -80px;
  pointer-events: none;
}
.m365-hero::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -60px; left: -40px;
  pointer-events: none;
}
.m365-hero-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}
.m365-hero-icon { width: 60px; height: 60px; margin: 0 auto 20px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.3)); }
.m365-hero-icon svg { width: 100%; height: 100%; }
.m365-hero-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.m365-hero-sub {
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.65;
}
.m365-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}

/* ── Outer ── */
.m365-outer { max-width: 1060px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Controls card ── */
.m365-controls-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: -26px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  position: relative; z-index: 2;
}
.m365-controls-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.m365-ctrl-group { display: flex; flex-direction: column; gap: 8px; }
.m365-ctrl-users { flex: 1 1 260px; }
.m365-ctrl-right { display: flex; gap: 24px; flex-wrap: wrap; flex-shrink: 0; }
.m365-ctrl-toggle-group { display: flex; flex-direction: column; gap: 8px; }
.m365-ctrl-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
}
.m365-users-input-row { display: flex; align-items: center; gap: 8px; }
.m365-users-input {
  width: 90px;
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  background: #f9fafb;
  outline: none;
  text-align: center;
  transition: border-color .18s, box-shadow .18s;
}
.m365-users-input:focus {
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3,105,161,.12);
  background: #fff;
}
.m365-users-suffix { font-size: .9rem; color: #6b7280; font-weight: 600; }

/* Slider */
.m365-slider {
  width: 100%; -webkit-appearance: none;
  height: 5px; border-radius: 4px;
  background: #e5e7eb; outline: none; cursor: pointer;
}
.m365-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #0369a1;
  box-shadow: 0 2px 8px rgba(3,105,161,.35);
  cursor: pointer; transition: transform .15s;
}
.m365-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.m365-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0369a1; border: none;
  box-shadow: 0 2px 8px rgba(3,105,161,.35); cursor: pointer;
}
.m365-slider-ticks {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: #9ca3af; margin-top: 2px;
}

/* Toggle buttons */
.m365-toggle {
  display: inline-flex;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.m365-tgl {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
  display: flex; align-items: center; gap: 5px;
}
.m365-tgl--on {
  background: #fff;
  color: #0369a1;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.m365-tgl-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
}

/* ── Plan cards grid ── */
.m365-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 860px) { .m365-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .m365-plans-grid { grid-template-columns: 1fr; } }

/* Plan card */
.m365-plan-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex; flex-direction: column; gap: 12px;
}
.m365-plan-card:hover {
  border-color: var(--plan-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.m365-plan-card--selected {
  border-color: var(--plan-color);
  box-shadow: 0 0 0 3px rgba(var(--plan-color), .12), 0 4px 20px rgba(0,0,0,.08);
  background: linear-gradient(to bottom right, #fff 0%, rgba(var(--plan-color), .02) 100%);
}
.m365-plan-card--overlimit { opacity: .65; }

.m365-plan-badge {
  position: absolute;
  top: -10px; right: 14px;
  background: #f05a28;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.m365-plan-overlimit-note {
  font-size: .72rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 4px 8px;
  margin-bottom: -4px;
}

.m365-plan-header {
  display: flex; align-items: flex-start; gap: 10px;
}
.m365-plan-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.m365-plan-name { font-size: .95rem; font-weight: 700; color: #111827; line-height: 1.3; }
.m365-plan-tagline { font-size: .78rem; color: #6b7280; margin-top: 2px; }

.m365-plan-price-row { display: flex; align-items: baseline; gap: 4px; }
.m365-plan-peruser {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plan-color);
  line-height: 1;
}
.m365-plan-peruser span { font-size: .72rem; font-weight: 500; color: #9ca3af; margin-left: 2px; }

.m365-plan-totals { display: flex; flex-direction: column; gap: 4px; }
.m365-plan-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #6b7280;
}
.m365-plan-total-row strong { color: #111827; font-weight: 700; }
.m365-plan-total-annual { padding-top: 4px; border-top: 1px solid #f3f4f6; }

.m365-plan-select-btn {
  width: 100%;
  padding: 9px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  margin-top: auto;
}
.m365-plan-card--selected .m365-plan-select-btn {
  background: var(--plan-color);
  color: #fff;
  border-color: var(--plan-color);
}
.m365-plan-select-btn:hover { background: var(--plan-color); color: #fff; border-color: var(--plan-color); }

/* ── Detail panel ── */
.m365-detail-panel { margin-top: 16px; }
.m365-detail-inner {
  background: #fff;
  border: 2px solid var(--plan-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.m365-detail-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.m365-detail-plan-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.m365-detail-plan-name { font-size: 1.15rem; font-weight: 800; color: #111827; margin-bottom: 6px; }
.m365-detail-plan-desc { font-size: .88rem; color: #4b5563; line-height: 1.65; max-width: 680px; }

.m365-detail-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .84rem;
  color: #92400e;
  margin-bottom: 18px;
}

/* Numbers row */
.m365-detail-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
}
@media (max-width: 760px) { .m365-detail-numbers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .m365-detail-numbers { grid-template-columns: 1fr; } }

.m365-detail-num { display: flex; flex-direction: column; gap: 4px; }
.m365-detail-num-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.m365-detail-num-val { font-size: 1.35rem; font-weight: 800; color: #111827; line-height: 1.2; }
.m365-detail-num-sub { font-size: .72rem; color: #9ca3af; }
.m365-detail-num--annual .m365-detail-num-val { color: #0369a1; }
.m365-detail-num--saving .m365-detail-num-val { color: #15803d; }

/* Features */
.m365-detail-features { margin-bottom: 22px; }
.m365-detail-features-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #6b7280; margin-bottom: 10px;
}
.m365-detail-features-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (max-width: 560px) { .m365-detail-features-list { grid-template-columns: 1fr; } }
.m365-detail-features-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .88rem; color: #374151; line-height: 1.45;
}
.m365-feat-yes span { color: #15803d; font-weight: 700; flex-shrink: 0; }
.m365-feat-no span  { color: #9ca3af; font-weight: 700; flex-shrink: 0; }
.m365-feat-no { color: #9ca3af; }

/* Detail CTA */
.m365-detail-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m365-detail-cta-btn {
  display: inline-block;
  padding: 11px 24px;
  background: linear-gradient(135deg, #f05a28, #d44e22);
  color: #fff !important;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(240,90,40,.28);
  transition: transform .18s, box-shadow .18s;
}
.m365-detail-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(240,90,40,.4); }
.m365-detail-copy-btn {
  padding: 10px 18px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
}
.m365-detail-copy-btn:hover { background: #e5e7eb; }

/* ── Comparison table ── */
.m365-compare-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.m365-compare-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.m365-compare-wrap { overflow-x: auto; }
.m365-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .84rem;
}
.m365-compare-table th {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  vertical-align: bottom;
}
.m365-ft-label { text-align: left !important; min-width: 190px; }
.m365-th-plan {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
}
.m365-th-basic    { background: #dbeafe; color: #1d4ed8; }
.m365-th-apps     { background: #cffafe; color: #0e7490; }
.m365-th-standard { background: #dcfce7; color: #15803d; }
.m365-th-premium  { background: #ffedd5; color: #c2410c; }
.m365-th-e3       { background: #ede9fe; color: #6d28d9; }
.m365-th-e5       { background: #e0e7ff; color: #3730a3; }

.m365-compare-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  text-align: center;
}
.m365-compare-table td:first-child { text-align: left; color: #374151; }
.m365-ft-group td {
  background: #f9fafb;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280 !important;
  padding: 7px 12px;
  text-align: left !important;
}
.m365-yes { color: #15803d; font-weight: 700; font-size: .95rem; }
.m365-no  { color: #d1d5db; font-size: .9rem; }
.m365-val { color: #374151; font-size: .8rem; font-weight: 600; }

/* ── Info grid ── */
.m365-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 680px) { .m365-info-grid { grid-template-columns: 1fr; } }
.m365-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.m365-info-card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #111827; }
.m365-info-card p  { margin: 0 0 10px; font-size: .9rem; line-height: 1.7; color: #4b5563; }
.m365-info-card p:last-child { margin-bottom: 0; }
.m365-info-card strong { color: #111827; }

/* ── CTA card ── */
.m365-cta-card {
  background: linear-gradient(135deg, #05386b 0%, #0369a1 100%);
  border-radius: 14px;
  padding: 36px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.m365-cta-icon { width: 56px; height: 56px; flex-shrink: 0; }
.m365-cta-icon svg { width: 100%; height: 100%; }
.m365-cta-text { flex: 1 1 260px; }
.m365-cta-text h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}
.m365-cta-text p  { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.6; }
.m365-cta-btn {
  display: inline-block;
  padding: 13px 28px;
  background: #f05a28;
  color: #fff !important;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .18s, box-shadow .18s;
  flex-shrink: 0;
}
.m365-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.28); }

/* ── Toast ── */
.m365-toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #111827; color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
}
.m365-toast--show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .m365-hero { padding: 40px 16px 36px; }
  .m365-controls-card { padding: 18px 16px; margin-top: -18px; }
  .m365-controls-row { gap: 20px; }
  .m365-detail-inner { padding: 20px 16px; }
  .m365-compare-card, .m365-info-card, .m365-cta-card { padding: 20px 16px; }
  .m365-outer { padding: 0 12px 40px; }
  .m365-cta-icon { display: none; }
}
