/* MSCTIME setup wizard — modern chrome
 *
 * Bootstrap 3 sets html { font-size: 10px }, so rem-based type was ~10px.
 * Reset the root and use px + !important on body copy so SB-Admin cannot win.
 */
html:has(body.msctime-wizard),
html.msctime-wizard-html {
  font-size: 16px !important;
}

:root {
  --msc-navy: #0d3d5c;
  --msc-blue: #1565a0;
  --msc-teal: #05bcbf;
  --msc-teal-dark: #049a9d;
  --msc-ink: #1a2b3c;
  --msc-muted: #5a6b7a;
  --msc-border: #d9e5ee;
  --msc-bg: #f4f8fb;
  --msc-card: #ffffff;
  --msc-radius: 14px;
}

body.msctime-wizard {
  background: var(--msc-bg) !important;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--msc-ink);
  font-size: 18px !important;
  line-height: 1.55 !important;
}

body.msctime-wizard #wrapper {
  background: transparent;
}

body.msctime-wizard .navbar-default {
  background: linear-gradient(135deg, var(--msc-navy) 0%, var(--msc-blue) 100%) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(13, 61, 92, 0.2);
}

body.msctime-wizard .navbar-default .navbar-brand,
body.msctime-wizard .navbar-default .navbar-brand:hover {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px !important;
}

body.msctime-wizard .sidebar {
  display: none !important;
}

body.msctime-wizard #page-wrapper {
  margin: 0 !important;
  padding: 1.5rem 1rem 3rem !important;
  background: transparent !important;
  border: none !important;
}

body.msctime-wizard .msctime-wiz-shell {
  max-width: 640px;
  margin: 0 auto;
}

body.msctime-wizard .msctime-wiz-progress {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  list-style: none;
  padding: 0;
}

body.msctime-wizard .msctime-wiz-progress li {
  flex: 1;
  text-align: center;
  font-size: 15px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #3d4f5f;
  padding: 0.75rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--msc-border);
}

body.msctime-wizard .msctime-wiz-progress li.is-active {
  background: var(--msc-teal);
  border-color: var(--msc-teal);
  color: #fff;
}

body.msctime-wizard .msctime-wiz-progress li.is-done {
  background: #e8f8f8;
  border-color: #b7e8e9;
  color: var(--msc-teal-dark);
}

body.msctime-wizard .msctime-wiz-card {
  background: var(--msc-card);
  border: 1px solid var(--msc-border);
  border-radius: var(--msc-radius);
  box-shadow: 0 8px 28px rgba(13, 61, 92, 0.08);
  overflow: hidden;
}

body.msctime-wizard .msctime-wiz-card__head {
  padding: 1.35rem 1.5rem 1rem;
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  border-bottom: 1px solid #eef4f8;
}

body.msctime-wizard .msctime-wiz-card__head h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(26px, 4vw, 34px) !important;
  font-weight: 800;
  color: var(--msc-navy);
  line-height: 1.25;
}

body.msctime-wizard .msctime-wiz-card__head p {
  margin: 0;
  color: #3d4f5f;
  font-size: 18px !important;
  line-height: 1.55;
}

body.msctime-wizard .msctime-wiz-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  font-size: 18px !important;
}

body.msctime-wizard .msctime-wiz-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef7fb 0%, #e8f8f8 100%);
  border-left: 4px solid var(--msc-teal);
  color: var(--msc-navy);
  font-size: 17px !important;
  line-height: 1.5;
}

body.msctime-wizard .msctime-wiz-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 18px !important;
}

body.msctime-wizard label.msctime-wiz-label {
  display: block;
  font-weight: 700;
  color: var(--msc-navy);
  margin: 0 0 0.45rem;
  font-size: 17px !important;
}

body.msctime-wizard .form-control,
body.msctime-wizard select.form-control,
body.msctime-wizard input.form-control,
body.msctime-wizard textarea.form-control {
  height: 56px !important;
  border-radius: 10px;
  border-color: var(--msc-border);
  box-shadow: none;
  font-size: 18px !important;
  line-height: 1.4 !important;
}

body.msctime-wizard textarea.form-control {
  height: auto !important;
  min-height: 110px;
}

body.msctime-wizard .form-control:focus {
  border-color: var(--msc-teal);
  box-shadow: 0 0 0 3px rgba(5, 188, 191, 0.18);
}

body.msctime-wizard .input-group-addon {
  border-radius: 10px 0 0 10px;
  background: #f4f8fb;
  border-color: var(--msc-border);
  color: var(--msc-blue);
  font-size: 18px !important;
}

body.msctime-wizard .msctime-wiz-help,
body.msctime-wizard .help-block,
body.msctime-wizard .text-muted {
  margin: 0.35rem 0 1rem;
  font-size: 16px !important;
  color: #3d4f5f !important;
  line-height: 1.5 !important;
}

body.msctime-wizard .msctime-wiz-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

body.msctime-wizard .msctime-wiz-trust span {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--msc-navy);
  background: #eef4f8;
  border: 1px solid var(--msc-border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

body.msctime-wizard .btn-msctime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 1.05rem 1.35rem;
  border: none;
  border-radius: 10px;
  background: var(--msc-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 19px !important;
  text-decoration: none !important;
  transition: background 0.15s;
}

body.msctime-wizard .btn-msctime:hover,
body.msctime-wizard .btn-msctime:focus {
  background: var(--msc-teal-dark);
  color: #fff !important;
}

body.msctime-wizard .alert {
  border-radius: 10px;
  border: none;
  font-size: 17px !important;
  line-height: 1.55;
  padding: 1rem 1.15rem;
}

body.msctime-wizard .alert strong {
  font-size: 18px !important;
}

body.msctime-wizard .alert small,
body.msctime-wizard small {
  font-size: 16px !important;
  opacity: 0.95;
}

body.msctime-wizard .page-header {
  display: none !important;
}

body.msctime-wizard .msctime-wiz-page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(24px, 3.5vw, 32px) !important;
  font-weight: 800;
  color: var(--msc-navy);
  line-height: 1.25;
  border: none;
  padding: 0;
}

body.msctime-wizard .msctime-wiz-progress-wrap {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

body.msctime-wizard .msctime-wiz-toplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  padding: 10px 8px;
}

body.msctime-wizard .msctime-wiz-toplink {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  font-size: 16px !important;
  text-decoration: none !important;
}

body.msctime-wizard .msctime-wiz-toplink:hover,
body.msctime-wizard .msctime-wiz-toplink.is-current {
  color: #fff !important;
  text-decoration: underline !important;
}

body.msctime-wizard #page-wrapper > .container-fluid {
  max-width: 960px;
  margin: 0 auto;
}

body.msctime-wizard .panel,
body.msctime-wizard .panel-primary {
  background: var(--msc-card);
  border: 1px solid var(--msc-border) !important;
  border-radius: var(--msc-radius);
  box-shadow: 0 8px 28px rgba(13, 61, 92, 0.08);
  margin: 0 0 1.25rem;
  overflow: hidden;
}

body.msctime-wizard .panel-heading,
body.msctime-wizard .panel-primary > .panel-heading {
  display: block !important;
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%) !important;
  border-bottom: 1px solid #eef4f8 !important;
  color: var(--msc-navy) !important;
  font-weight: 700;
  font-size: 19px !important;
  padding: 1.1rem 1.35rem !important;
}

body.msctime-wizard .panel-body {
  padding: 1.35rem 1.45rem 1.45rem !important;
  font-size: 17px !important;
}

body.msctime-wizard .panel-footer {
  background: #f8fbfd;
  border-top: 1px solid #eef4f8;
  font-size: 17px !important;
}

body.msctime-wizard .btn-msctime-inline,
body.msctime-wizard .btn-primary,
body.msctime-wizard .btn-info {
  background: var(--msc-teal) !important;
  border-color: var(--msc-teal) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700;
  font-size: 17px !important;
}

body.msctime-wizard .btn-msctime-inline:hover,
body.msctime-wizard .btn-primary:hover,
body.msctime-wizard .btn-info:hover {
  background: var(--msc-teal-dark) !important;
  border-color: var(--msc-teal-dark) !important;
}

body.msctime-wizard .table {
  background: #fff;
  font-size: 16px !important;
}

body.msctime-wizard .table > thead > tr > th {
  background: #f4f8fb;
  color: var(--msc-navy);
  border-bottom: 2px solid var(--msc-border) !important;
  font-weight: 700;
  font-size: 16px !important;
}

body.msctime-wizard .table-bordered {
  border-radius: 10px;
  overflow: hidden;
}

body.msctime-wizard .msctime-wiz-legacy-progress {
  display: none !important;
}

body.msctime-wizard .bs-example {
  margin: 0 !important;
}

body.msctime-wizard label {
  color: var(--msc-navy);
  font-weight: 700;
  font-size: 17px !important;
}

body.msctime-wizard p,
body.msctime-wizard li,
body.msctime-wizard td,
body.msctime-wizard th {
  font-size: inherit;
}

body.msctime-wizard .msctime-wiz-foot {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 16px !important;
  color: #3d4f5f;
  line-height: 1.5;
}

body.msctime-wizard .msctime-wiz-foot a {
  color: var(--msc-blue);
  font-weight: 700;
}

/* Start page uses custom card — keep panel chrome for later steps only */
body.msctime-wizard .msctime-wiz-card .panel-heading {
  display: none !important;
}

@media (max-width: 560px) {
  body.msctime-wizard .msctime-wiz-progress {
    flex-direction: column;
  }
  body.msctime-wizard #page-wrapper {
    padding: 1rem 0.75rem 2.5rem !important;
  }
  body.msctime-wizard .navbar-header {
    flex-direction: column;
    align-items: flex-start !important;
  }
  body.msctime-wizard .msctime-wiz-progress li {
    font-size: 14px !important;
  }
}
