/* ─────────────────────────────────────────────────────────────
   xMonthly Cloud Tour — product-submit.css
   Design tokens identical to tour-builder.css:
     bg        #ffffff
     panel     #E6E7EC
     border    #D1D7E0
     text      #2F3B52
     headings  #0F5FC0
     hover     #2563EB
     muted     #6B7C93
     focus     rgba(124,196,255,.45)
───────────────────────────────────────────────────────────── */

/* ── Root reset ──────────────────────────────────────────────── */
#xmct-submit-root *,
#xmct-submit-root *::before,
#xmct-submit-root *::after,
#xmcts-editor-overlay *,
#xmcts-editor-overlay *::before,
#xmcts-editor-overlay *::after { box-sizing: border-box; }

/* ── SVG reset: defeat theme fill/stroke !important overrides ── */
/* The ID selector gives us higher specificity than the theme's   */
/* class-based rule, so our !important wins between the two.      */
#xmct-submit-root svg path,
#xmct-submit-root svg circle,
#xmct-submit-root svg rect,
#xmct-submit-root svg polyline,
#xmct-submit-root svg polygon,
#xmcts-editor-overlay svg path,
#xmcts-editor-overlay svg circle,
#xmcts-editor-overlay svg rect,
#xmcts-editor-overlay svg polyline,
#xmcts-editor-overlay svg polygon,
#xmcts-tiers-overlay svg path,
#xmcts-tiers-overlay svg circle,
#xmcts-tiers-overlay svg rect,
#xmcts-tiers-overlay svg polyline,
#xmcts-tiers-overlay svg polygon {
    fill:   none !important;
    stroke: currentColor !important;
}

#xmct-submit-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2F3B52;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero header ─────────────────────────────────────────────── */
.xmct-submit-hero {
    background: linear-gradient(140deg, #1e2d45 0%, #0e4fa8 60%, #1a6fd4 100%);
    border-radius: 16px;
    padding: 44px 44px 40px;
    margin: 36px 0 40px;
    position: relative;
    overflow: hidden;
}
.xmct-submit-hero-glow {
    position: absolute; top: 0; right: 0;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(124,196,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.xmct-submit-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
    position: relative;
}
.xmct-submit-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.82) !important;
    line-height: 1.65;
    margin: 0;
    position: relative;
}

/* ── Step indicator ──────────────────────────────────────────── */
.xmct-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #D1D7E0;
}
.xmct-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #6B7C93;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: default;
    user-select: none;
}
.xmct-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #D1D7E0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.xmct-step--active {
    color: #0F5FC0;
    border-bottom-color: #0F5FC0;
}
.xmct-step--active .xmct-step-num {
    background: #0F5FC0;
    border-color: #0F5FC0;
    color: #fff;
}
.xmct-step--done .xmct-step-num {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.xmct-step--done { color: #6B7C93; }
.xmct-step-label--mobile { display: none; }

/* ── Section layout ──────────────────────────────────────────── */
.xmct-submit-section {
    display: none;
    flex-direction: column;
    gap: 32px;
    animation: xmctFadeIn 0.22s ease both;
}
.xmct-submit-section--active { display: flex; }

.xmct-submit-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #0F5FC0;
    margin: 0 0 4px;
}
.xmct-submit-section-sub {
    font-size: 16px;
    color: #6B7C93;
    margin: 0;
}

/* ── Card wrapper ────────────────────────────────────────────── */
.xmct-submit-card {
    background: #fff;
    border: 1px solid #D1D7E0;
    border-radius: 14px;
    overflow: hidden;
}
.xmct-submit-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #D1D7E0;
    background: #E6E7EC;
}
.xmct-submit-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2F3B52;
    margin: 0;
}
.xmct-submit-card-body { padding: 24px; }

/* ── Form fields ─────────────────────────────────────────────── */
.xmct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xmct-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.xmct-label {
    font-size: 14px;
    font-weight: 600;
    color: #2F3B52;
}
.xmct-label-hint {
    font-size: 12px;
    font-weight: 400;
    color: #6B7C93;
    margin-left: 4px;
}
.xmct-label-required {
    color: #c43e1c;
    margin-left: 2px;
}

.xmct-input,
.xmct-textarea,
.xmct-select {
    border: 1.5px solid #D1D7E0 !important;
    border-radius: 8px !important;
    padding: 9px 13px;
    font-size: 14px;
    color: #2F3B52 !important;
    background-color: #fff !important;
    background-image: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
select.xmct-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    padding-right: 36px;
    cursor: pointer;
}
/* Explicit height on all form controls ensures uniform sizing across browsers */
input.xmct-input,
select.xmct-input { height: 42px; }

.xmct-input::placeholder,
.xmct-textarea::placeholder { color: #9aa5b4 !important; opacity: 1 !important; }
.xmct-input:focus,
.xmct-textarea:focus,
.xmct-select:focus {
    border-color: #0F5FC0 !important;
    box-shadow: 0 0 0 3px rgba(15,95,192,0.10);
    color: #2F3B52 !important;
}
.xmct-input.xmct-input--error,
.xmct-textarea.xmct-input--error {
    border-color: #c43e1c !important;
}
.xmct-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}
.xmct-field-hint {
    font-size: 12px;
    color: #6B7C93;
    line-height: 1.4;
}
.xmct-field-error {
    font-size: 12px;
    color: #c43e1c;
    display: none;
}
.xmct-field-error--visible { display: block; }

.xmct-char-count {
    font-size: 11px;
    color: #9aa5b4;
    text-align: right;
    transition: color 0.15s;
}
.xmct-char-count--warn { color: #c43e1c; font-weight: 600; }

/* ── Description formatting toolbar ───────────────────────────── */
.xmcts-desc-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.xmcts-desc-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid #D1D7E0;
    background: #f8f9fc;
    color: #6B7C93;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, background .15s, color .15s;
}
.xmcts-desc-tool-btn:hover {
    border-color: #0F5FC0;
    background: rgba(15,95,192,.06);
    color: #0F5FC0;
}
/* ── Logo upload ─────────────────────────────────────────────── */
.xmct-upload-zone {
    border: 2px dashed #D1D7E0;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafbfc;
    position: relative;
}
.xmct-upload-zone:hover,
.xmct-upload-zone--dragover {
    border-color: #0F5FC0;
    background: #f0f6ff;
}
.xmct-upload-zone input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.xmct-upload-icon {
    width: 40px; height: 40px;
    margin: 0 auto 10px;
    color: #6B7C93;
}
.xmct-upload-icon svg { width: 40px; height: 40px; display: block; }
.xmct-upload-label {
    font-size: 14px;
    font-weight: 600;
    color: #2F3B52;
    margin: 0 0 4px;
}
.xmct-upload-sub {
    font-size: 12px;
    color: #6B7C93;
}
.xmct-upload-preview {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f0f6ff;
    border: 1.5px solid #0F5FC0;
    border-radius: 10px;
    margin-top: 10px;
}
.xmct-upload-preview--visible { display: flex; }
.xmct-upload-preview img {
    width: 48px; height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #D1D7E0;
    padding: 4px;
}
.xmct-upload-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #2F3B52;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xmct-upload-remove {
    background: none;
    border: none;
    color: #6B7C93;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.xmct-upload-remove:hover { color: #c43e1c; }


/* ── Pricing explanation notice ──────────────────────────────── */
.xmcts-pricing-notice {
    background: #EEF4FF;
    border: 1px solid #c7d9f8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.xmcts-pricing-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F5FC0;
}
.xmcts-pricing-notice-body {
    font-size: 13px;
    color: #2F3B52;
    line-height: 1.6;
    margin: 0;
}

/* ── 80/20 split notice ──────────────────────────────────────── */
.xmcts-split-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
}
.xmcts-split-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.xmcts-split-segment {
    display: flex;
    align-items: center;
    gap: 6px;
}
.xmcts-split-seg-label {
    font-size: 12px;
    color: #6B7C93;
}
.xmcts-split-you {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}
.xmcts-split-xm {
    font-size: 14px;
    font-weight: 700;
    color: #2F3B52;
}
.xmcts-split-divider {
    width: 1px;
    height: 14px;
    background: #D1D7E0;
    flex-shrink: 0;
}
.xmcts-split-caveat {
    font-size: 11px;
    color: #9aa5b4;
    margin: 0;
    line-height: 1.5;
}


/* ── Company/default logo states ─────────────────────────────── */
.xmcts-logo-default-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #E6E7EC;
    border-radius: 8px;
}
.xmcts-logo-default-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.xmcts-logo-default-preview img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    border: 1px solid #D1D7E0;
    flex-shrink: 0;
}
.xmcts-logo-default-label {
    font-size: 13px;
    font-weight: 600;
    color: #2F3B52;
}
.xmcts-logo-default-sub {
    font-size: 11px;
    color: #6B7C93;
    margin-top: 2px;
}
.xmcts-logo-change-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: #fff;
    border: 1.5px solid #D0DEFF;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #0F5FC0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.xmcts-logo-change-btn:hover { background: #EEF4FF; }
.xmcts-svc-logo-upload-zone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: #fff;
    border: 1.5px dashed #D1D7E0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7C93;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.xmcts-svc-logo-upload-zone:hover { border-color: #0F5FC0; color: #0F5FC0; }

/* ── Media type toggle (Video / Blog Post) ────────────────── */
.xmcts-media-type-toggle {
    display: flex;
    gap: 0;
    border: 1.5px solid #D1D7E0;
    border-radius: 7px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 8px;
}
.xmcts-media-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7C93;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s;
}
.xmcts-media-btn + .xmcts-media-btn { border-left: 1.5px solid #D1D7E0; }
.xmcts-media-btn--active { background: #0F5FC0; color: #fff; }
.xmcts-media-btn:not(.xmcts-media-btn--active):hover { background: #f0f6ff; color: #0F5FC0; }


.xmcts-upload-mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border: 1.5px solid #D1D7E0;
    border-radius: 7px;
    overflow: hidden;
    width: fit-content;
}
.xmcts-upload-mode-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7C93;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.xmcts-upload-mode-btn + .xmcts-upload-mode-btn {
    border-left: 1.5px solid #D1D7E0;
}
.xmcts-upload-mode-btn--active {
    background: #0F5FC0;
    color: #fff;
}
.xmcts-upload-mode-btn:not(.xmcts-upload-mode-btn--active):hover {
    background: #f0f6ff;
    color: #0F5FC0;
}
.xmcts-url-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.xmcts-url-input-row input {
    flex: 1;
    min-width: 0;
}
.xmcts-url-apply-btn {
    flex-shrink: 0;
    padding: 0 14px;
    height: 40px;
    border-radius: 7px;
    border: 1.5px solid #0F5FC0;
    background: #0F5FC0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
}
.xmcts-url-apply-btn:hover { background: #0a4aa3; }
.xmcts-url-apply-btn:disabled { opacity: .5; cursor: default; }
.xmcts-url-error {
    font-size: 12px;
    color: #c43e1c;
    margin-top: 4px;
    display: none;
}
.xmcts-url-error--visible { display: block; }
/* ── Existing logo picker ─────────────────────────────────────── */
.xmcts-upload-existing-panel {
    padding: 4px 0;
}
.xmcts-logo-pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.xmcts-logo-pick-item {
    width: 52px;
    height: 52px;
    border: 2px solid #D1D7E0;
    border-radius: 8px;
    background: #f8f9fc;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}
.xmcts-logo-pick-item:hover {
    border-color: #0F5FC0;
    background: #EEF4FF;
}
.xmcts-logo-pick-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}


/* ── Pricing type toggle ─────────────────────────────────────── */
.xmcts-type-toggle {
    display: inline-flex;
    width: auto;
    height: 42px;
    border: 1.5px solid #D1D7E0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.xmcts-type-btn {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 0 13px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    border-right: 1.5px solid #D1D7E0;
    cursor: pointer;
    color: #6B7C93;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.xmcts-type-btn:last-child { border-right: none; }
.xmcts-type-btn:hover:not(.xmcts-type-btn--active) { background: #E6E7EC; }
.xmcts-type-btn--active { background: #0F5FC0; color: #fff !important; font-weight: 600; }

/* ── Pricing field row: 3-up flex, wraps gracefully on narrow viewports ───── */
.xmcts-pricing-row {
    display: flex !important;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.xmcts-pricing-row > .xmct-field {
    flex: 1;
    min-width: 120px;
}
.xmcts-pricing-row > .xmcts-type-field {
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

/* ── Amount input with $ prefix ───────────────────────────────── */
.xmcts-amount-wrap { position: relative; display: flex; align-items: center; }
.xmcts-amount-wrap::before {
    content: '$';
    position: absolute;
    left: 11px;
    color: #6B7C93;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.xmcts-amount-input { padding-left: 24px !important; }

/* ── Service pricing subsection ───────────────────────────────── */
.xmcts-svc-pricing {
    padding-top: 16px;
    border-top: 1px dashed #D1D7E0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.xmcts-svc-pricing-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #6B7C93;
}

/* ── Flat repeater items (services & links inside editor) ────── */
.xmcts-flat-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.xmcts-flat-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #D1D7E0;
}
.xmcts-flat-item:first-child { border-top: none; padding-top: 0; }
.xmcts-flat-item-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.xmcts-flat-item-num {
    display: inline-block;
    background: #E6E7EC;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    color: #6B7C93;
}

.xmct-svc-delete {
    background: none;
    border: 1px solid #D1D7E0;
    border-radius: 6px;
    color: #6B7C93;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.xmct-svc-delete:hover { background: #fee2e2; border-color: #fca5a5; color: #c43e1c; }

.xmct-add-svc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1.5px dashed #D1D7E0;
    border-radius: 10px;
    background: transparent;
    color: #6B7C93;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.xmct-add-svc-btn:hover {
    border-color: #0F5FC0;
    color: #0F5FC0;
    background: #f0f6ff;
}
.xmct-svc-count-note {
    font-size: 12px;
    color: #6B7C93;
    text-align: right;
    margin-top: 4px;
}

/* ── Review panel ────────────────────────────────────────────── */
.xmct-review-card {
    background: #fff;
    border: 1px solid #D1D7E0;
    border-radius: 14px;
    overflow: hidden;
}
.xmct-review-header {
    padding: 24px 28px 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.xmct-review-logo {
    width: 58px; height: 58px;
    border-radius: 13px;
    border: 1px solid #D1D7E0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: #E6E7EC;
    overflow: hidden;
}
.xmct-review-logo img {
    width: 42px; height: 42px;
    object-fit: contain;
}
.xmct-review-info { flex: 1; }
.xmct-review-name {
    font-size: 22px; font-weight: 700; color: #0F5FC0; margin-bottom: 4px;
}
.xmct-review-tagline { font-size: 15px; color: #6B7C93; margin-bottom: 12px; }
.xmct-review-desc { font-size: 14px; color: #2F3B52; line-height: 1.7; }

.xmct-review-svcs {
    padding: 18px 28px;
    border-top: 1px solid #D1D7E0;
    background: #E6E7EC;
}
.xmct-review-svcs-label {
    font-size: 12px; font-weight: 600; color: #6B7C93;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.xmct-review-svcs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.xmct-review-svc {
    border: 1px solid #D1D7E0;
    border-radius: 9px;
    padding: 14px 16px;
    background: #fff;
}
.xmct-review-svc-name { font-size: 14px; font-weight: 600; color: #2F3B52; margin-bottom: 6px; }
.xmct-review-svc-desc { font-size: 13px; color: #6B7C93; line-height: 1.6; }

.xmct-review-meta {
    padding: 16px 28px;
    border-top: 1px solid #D1D7E0;
    display: flex; flex-wrap: wrap; gap: 16px;
}
.xmct-review-meta-item { font-size: 13px; color: #6B7C93; }
.xmct-review-meta-item strong { color: #2F3B52; font-weight: 600; margin-right: 4px; }

/* ── Navigation buttons ──────────────────────────────────────── */
.xmct-submit-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    gap: 12px;
}

.xmct-btn {
    border-radius: 7px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    line-height: 1.4;
    font-family: inherit;
}
.xmct-btn--primary {
    background: #0F5FC0;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 26px;
}
.xmct-btn--primary:hover { background: #2563EB; }
.xmct-btn--primary:focus-visible { box-shadow: 0 0 0 2px rgba(124,196,255,.45); }
.xmct-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.xmct-btn--ghost {
    border: 1px solid #D1D7E0 !important;
    background: transparent;
    color: #6B7C93;
}
.xmct-btn--ghost:hover { background: #E6E7EC; color: #2F3B52; }

/* ── Success state ───────────────────────────────────────────── */
.xmct-submit-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    gap: 20px;
    animation: xmctFadeIn 0.3s ease both;
}
.xmct-submit-success--visible { display: flex; }
.xmct-success-icon {
    width: 72px; height: 72px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #16a34a;
}
.xmct-success-icon svg { width: 36px; height: 36px; }
.xmct-success-title {
    font-size: 28px; font-weight: 700; color: #2F3B52;
}
.xmct-success-sub {
    font-size: 17px; color: #6B7C93; max-width: 480px; line-height: 1.7;
}

/* ── Validation summary ──────────────────────────────────────── */
.xmct-validation-banner {
    display: none;
    background: #fff1f0;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #c43e1c;
    gap: 8px;
    align-items: center;
}
.xmct-validation-banner--visible { display: flex; }

/* ── Misc ────────────────────────────────────────────────────── */
@keyframes xmctFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .xmct-submit-hero { padding: 24px 20px; }
    .xmct-submit-hero-title { font-size: 30px; }
    .xmct-submit-hero-desc { font-size: 16px; }
    .xmct-step { flex: 1; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; }
    .xmct-step-label { font-size: 12px; white-space: normal; text-align: center; display: block !important; line-height: 1.2; }
    .xmct-step-label--desktop { display: none !important; }
    .xmct-step-label--mobile { display: block !important; }
    .xmct-field-row { grid-template-columns: 1fr; }
    .xmct-submit-nav { flex-direction: column-reverse; }
    .xmct-submit-nav .xmct-btn { width: 100%; justify-content: center; }
    .xmct-review-svcs-grid { grid-template-columns: 1fr; }
    .xmct-review-header { flex-direction: column; }
}

/* ── Company review block ────────────────────────────────────── */
.xmct-review-company {
    padding: 18px 28px;
    border-top: 1px solid #D1D7E0;
    background: #F8FAFC;
}
.xmct-review-company-row { font-size: 15px; color: #2F3B52; margin-bottom: 4px; }
.xmct-review-company-type { color: #6B7C93; font-weight: 400; }
.xmct-review-company-website { font-size: 13px; color: #0F5FC0; margin-bottom: 4px; }
.xmct-review-company-desc { font-size: 13px; color: #6B7C93; margin-bottom: 6px; line-height: 1.6; }
.xmct-review-company-contact { font-size: 13px; color: #6B7C93; }

/* ── Save / restore draft ────────────────────────────────────── */
.xmcts-draft-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #E6E7EC;
    border: 1px solid #D1D7E0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.xmcts-draft-restore { flex: 1; min-width: 220px; }

.xmcts-draft-label {
    font-size: 13px;
    font-weight: 600;
    color: #2F3B52;
    margin-bottom: 8px;
}

.xmcts-draft-restore-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.xmcts-draft-key-input {
    flex: 1;
    font-family: 'SFMono-Regular', 'Consolas', monospace !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
    max-width: 260px;
}

.xmcts-restore-btn {
    border: 1px solid #D1D7E0 !important;
    background: #fff;
    color: #0F5FC0 !important;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.xmcts-restore-btn:hover { background: #f0f6ff; }

.xmcts-draft-save { flex-shrink: 0; }

.xmcts-save-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.xmcts-draft-msg {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.xmcts-draft-key-display {
    width: 100%;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #D1D7E0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.xmcts-draft-key-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7C93;
    white-space: nowrap;
}

.xmcts-draft-key-text {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #0F5FC0;
    background: #f0f6ff;
    border: 1px solid #D0DEFF;
    border-radius: 5px;
    padding: 3px 10px;
    letter-spacing: 0.04em;
    flex: 1;
    word-break: break-all;
}

.xmcts-copy-btn {
    flex-shrink: 0;
    font-size: 13px !important;
    padding: 6px 12px !important;
}

/* ── Services step (Step 3) ──────────────────────────────────── */
/* Card appearance (border, radius, bg) comes from the reused
   xmct-submit-card / xmct-submit-card-header / xmct-submit-card-body
   classes applied alongside these in the JS. */
#xmcts-services-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.xmcts-svc-step-group--collapsed .xmct-submit-card-header {
    border-bottom-color: transparent;
}
.xmcts-svc-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: background .12s;
}
.xmcts-svc-step-header:hover { background: #dcdde4; }

.xmcts-svc-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #2F3B52;
}

.xmcts-svc-toggle-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid #c0c5d0;
    background: #fff;
    color: #2F3B52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: background .12s;
}
.xmcts-svc-toggle-btn:hover { background: #e6e7ec; }

.xmcts-svc-chevron {
    transition: transform .2s ease;
}
.xmcts-svc-step-group--collapsed .xmcts-svc-chevron {
    transform: rotate(-90deg);
}

/* 4-step indicator: shrink labels slightly on narrow screens */
@media (max-width: 520px) {
    .xmct-step { padding: 8px 4px; }
    .xmct-step-label { font-size: 11px; }
}

/* ── Product list rows ───────────────────────────────────────── */
.xmcts-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid #D1D7E0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.xmcts-product-row:last-child { margin-bottom: 0; }
.xmcts-product-row:hover { border-color: #0F5FC0; box-shadow: 0 2px 8px rgba(15,95,192,0.10); }

.xmcts-product-row-logo {
    width: 44px; height: 44px;
    border-radius: 9px;
    border: 1px solid #D1D7E0;
    background: #E6E7EC;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.xmcts-product-row-logo img { width: 36px; height: 36px; object-fit: contain; }

.xmcts-product-row-info { flex: 1; min-width: 0; }
.xmcts-product-row-name {
    font-size: 15px; font-weight: 600; color: #2F3B52;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xmcts-product-row-meta {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px;
}
.xmcts-product-row-badge {
    display: inline-flex; align-items: center;
    background: #E6E7EC; border-radius: 999px;
    padding: 2px 9px; font-size: 11px; font-weight: 600; color: #6B7C93;
}
.xmcts-product-row-badge--warn {
    background: #fff7ed; color: #c05b00;
}
.xmcts-product-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

#xmcts-add-product-btn { margin-top: 16px; }


/* ── Info icon button ────────────────────────────────────────── */
.xmcts-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #6B7C93;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.xmcts-info-btn:hover { color: #0F5FC0; background: rgba(15,95,192,0.1); }

/* ── Agent tiers modal ───────────────────────────────────────── */
#xmcts-tiers-overlay *,
#xmcts-tiers-overlay *::before,
#xmcts-tiers-overlay *::after { box-sizing: border-box; }

.xmcts-tiers-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 25, 50, 0.52);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.xmcts-tiers-overlay--open {
    display: flex;
    animation: xmctsOverlayIn 0.18s ease both;
}
.xmcts-tiers-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 800px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    animation: xmctsTiersIn 0.24s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes xmctsTiersIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.xmcts-tiers-modal-header {
    border-bottom: 1px solid #D1D7E0;
    flex-shrink: 0;
}
.xmcts-tiers-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 10px;
}
.xmcts-tiers-header-sub {
    padding: 0 24px 10px;
}
.xmcts-tiers-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #0F5FC0;
}
.xmcts-tiers-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    color: #6B7C93;
    cursor: pointer;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.xmcts-tiers-close:hover { background: #E6E7EC; color: #2F3B52; }
.xmcts-tiers-modal-body {
    overflow-y: auto;
    padding: 24px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.xmcts-tiers-intro {
    font-size: 14px;
    color: #6B7C93;
    line-height: 1.65;
    margin: 0 0 22px;
}

/* ── Tier grid ──────────────────────────────────────────────── */
.xmcts-tiers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) { .xmcts-tiers-grid { grid-template-columns: 1fr; } }

.xmcts-tier-card {
    border: 1.5px solid #D1D7E0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
}
.xmcts-tier-card:hover { border-color: #0F5FC0; box-shadow: 0 2px 10px rgba(15,95,192,0.09); }
.xmcts-tier-card[data-tier="referral"] { border-top: 3px solid #16a34a; }
.xmcts-tier-card[data-tier="services"] { border-top: 3px solid #0F5FC0; }
.xmcts-tier-card[data-tier="solution"] { border-top: 3px solid #7c3aed; }
.xmcts-tier-card[data-tier="industry"] { border-top: 3px solid #c05b00; }

.xmcts-tier-card-top { margin-bottom: 2px; }
.xmcts-tier-name {
    font-size: 15px;
    font-weight: 700;
    color: #2F3B52;
    margin-bottom: 3px;
}
.xmcts-tier-price {
    font-size: 14px;
    font-weight: 600;
    color: #6B7C93;
}
.xmcts-tier-price--free { color: #16a34a; }
.xmcts-tier-summary {
    font-size: 13px;
    color: #6B7C93;
    line-height: 1.5;
    margin: 0;
    flex-shrink: 0;
}
.xmcts-tier-includes-wrap { flex: 1; }
.xmcts-tier-includes-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa5b4;
    margin-bottom: 8px;
}
.xmcts-tier-includes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.xmcts-tier-includes li {
    font-size: 12px;
    color: #2F3B52;
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}
.xmcts-tier-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0F5FC0;
    font-weight: 700;
    font-size: 11px;
    top: 1px;
}
.xmcts-tier-learn-more {
    display: block;
    width: 100%;
    padding: 9px 16px;
    margin-top: auto;
    padding-top: 12px;
    text-align: center;
    background: #EEF4FF;
    border: 1.5px solid #D0DEFF;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #0F5FC0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.xmcts-tier-learn-more:hover { background: #dbeafe; border-color: #93c5fd; text-decoration: none; }

/* ── Tier detail view ───────────────────────────────────────── */
.xmcts-tiers-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #6B7C93;
    cursor: pointer;
    margin-bottom: 22px;
    transition: color 0.15s;
}
.xmcts-tiers-back:hover { color: #0F5FC0; }
.xmcts-tier-detail { display: flex; flex-direction: column; gap: 22px; }
.xmcts-tier-detail-header {
    padding-bottom: 16px;
    border-bottom: 2px solid #D1D7E0;
}
.xmcts-tier-detail-header[data-tier="referral"] { border-bottom-color: #16a34a; }
.xmcts-tier-detail-header[data-tier="services"] { border-bottom-color: #0F5FC0; }
.xmcts-tier-detail-header[data-tier="solution"] { border-bottom-color: #7c3aed; }
.xmcts-tier-detail-header[data-tier="industry"] { border-bottom-color: #c05b00; }
.xmcts-tier-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #2F3B52;
    margin-bottom: 5px;
}
.xmcts-tier-detail-price { font-size: 16px; font-weight: 600; color: #6B7C93; }
.xmcts-tier-detail-narrative { display: flex; flex-direction: column; gap: 14px; }
.xmcts-tier-detail-narrative p {
    font-size: 14px;
    color: #2F3B52;
    line-height: 1.75;
    margin: 0;
}
.xmcts-tier-includes--detail li { font-size: 13px; }

/* ── Product editor slide-over ───────────────────────────────── */
.xmcts-slide-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 25, 50, 0.45);
    display: none;
    justify-content: flex-end;
    align-items: stretch;
}
.xmcts-slide-overlay--open {
    display: flex;
    animation: xmctsOverlayIn 0.18s ease both;
}

.xmcts-slide-panel {
    width: 680px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -6px 0 40px rgba(0,0,0,0.18);
    animation: xmctsSlideIn 0.26s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.xmcts-slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid #D1D7E0;
    background: #fff;
    flex-shrink: 0;
    gap: 16px;
}
.xmcts-slide-header-title {
    font-size: 19px;
    font-weight: 700;
    color: #0F5FC0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xmcts-slide-header-sub {
    font-size: 13px;
    color: #6B7C93;
    margin-top: 2px;
}

.xmcts-slide-body {
    flex: 1;
    overflow-y: auto;
}

.xmcts-slide-section {
    padding: 28px;
    border-bottom: 1px solid #D1D7E0;
}
.xmcts-slide-section:last-child { border-bottom: none; }
.xmcts-slide-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #4a5568;
    padding-bottom: 10px;
    margin: 0 0 18px;
    border-bottom: 1.5px solid #D1D7E0;
}
.xmcts-slide-fields { display: flex; flex-direction: column; gap: 16px; }

@keyframes xmctsOverlayIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes xmctsSlideIn {
    from { transform: translateX(100%); } to { transform: translateX(0); }
}

@media (max-width: 600px) {
    .xmcts-slide-panel { width: 100vw; }
    .xmcts-slide-section { padding: 20px 16px; }
    .xmcts-slide-header { padding: 14px 16px; }
}

/* ── Agent opt-in section ────────────────────────────────────── */
/* ── Agent agreement section ─────────────────────────────────── */
.xmcts-agent-section {
    background: #f0f6ff;
    border: 1.5px solid #D0DEFF;
    border-radius: 12px;
    overflow: hidden;
}
.xmcts-agent-required-block {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.xmcts-agent-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.xmcts-agent-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F5FC0;
}
.xmcts-agent-required-badge {
    display: inline-block;
    background: #c43e1c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 999px;
}
.xmcts-agent-optional-badge {
    display: inline-block;
    background: #E6E7EC;
    color: #6B7C93;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 999px;
}
.xmcts-agent-section-desc {
    font-size: 13px;
    color: #2F3B52;
    line-height: 1.7;
    margin: 0;
}
.xmcts-agent-checkbox-wrap {
    background: #fff;
    border: 1.5px solid #D0DEFF;
    border-radius: 8px;
    padding: 14px 16px;
}
.xmcts-payment-block {
    padding: 20px 24px;
    border-top: 1.5px solid #D0DEFF;
    background: rgba(255,255,255,0.45);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.xmcts-payment-block-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #2F3B52;
}
.xmcts-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.xmcts-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0F5FC0;
    cursor: pointer;
}
.xmcts-checkbox-label {
    font-size: 14px;
    color: #2F3B52;
    line-height: 1.5;
    cursor: pointer;
}
.xmcts-checkbox-label strong { color: #0F5FC0; }

/* ── Schedule call button ────────────────────────────────────── */
.xmct-btn--schedule {
    background: transparent;
    border: 1.5px solid #0F5FC0 !important;
    color: #0F5FC0 !important;
    font-weight: 600;
}
.xmct-btn--schedule:hover { background: #f0f6ff; }

/* ── Submission mode selector ────────────────────────────────── */
.xmcts-mode-selector {
    background: #fff;
    border: 1px solid #D1D7E0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.xmcts-mode-selector-label {
    font-size: 12px;
    font-weight: 600;
    color: #9aa5b4;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.xmcts-mode-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 560px) { .xmcts-mode-btns { grid-template-columns: 1fr; } }
.xmcts-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 16px;
    border: 2px solid #D1D7E0;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.xmcts-mode-btn:hover { border-color: #0F5FC0; background: rgba(15,95,192,.04); }
.xmcts-mode-btn--active { border-color: #0F5FC0; background: rgba(15,95,192,.06); }
.xmcts-mode-btn-title { font-size: 14px; font-weight: 600; color: #2F3B52; }
.xmcts-mode-btn--active .xmcts-mode-btn-title { color: #0F5FC0; }
.xmcts-mode-btn-sub { font-size: 12px; color: #6B7C93; line-height: 1.4; }

/* ── ISV mode field hints ─────────────────────────────────────── */
.xmcts-isv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #0F5FC0;
    background: #e6f1fb;
    border: 1px solid #b5d4f4;
    border-radius: 5px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .03em;
}
