:root {
    --cm-primary: var(--ast-global-color-0, #215699);
    --cm-primary-alt: var(--ast-global-color-7, #179f36);
    --cm-primary-hover: #153a69;
    --cm-text: #101828;
    --cm-muted: #475467;
    --cm-bg: #f7f8fa;
    --cm-card: #ffffff;
    --cm-border: #e4e7ec;
    --cm-shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
}

.cm-campaign {
    margin-bottom: 50px;
    color: var(--cm-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.cm-campaign * {
    box-sizing: border-box;
}

.cm-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.cm-hero,
.cm-main,
.cm-related,
.cm-form-section {
    padding: 32px 0;
}

@media (min-width: 992px) {
    .cm-hero,
    .cm-main,
    .cm-related,
    .cm-form-section {
        padding: 44px 0;
    }
}

.cm-hero-grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

.cm-hero {
    width: 100%;
    background: linear-gradient(135deg, #f5f8fc 0%, #edf3fb 55%, #e8f2ef 100%);
    border-top: 1px solid var(--cm-border);
    border-bottom: 1px solid var(--cm-border);
    box-shadow: inset 0 -1px 0 rgba(16, 24, 40, 0.04);
}

.cm-main {
    margin-top: 28px;
}

@media (min-width: 992px) {
    .cm-hero-grid {
        grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.05fr);
        gap: 42px;
    }

    .cm-main {
        margin-top: 36px;
    }
}

.cm-category {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--cm-muted);
    font-weight: 600;
}

.cm-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    color: #0b1324;
}

.cm-sub {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--cm-muted);
}

.cm-price {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--cm-primary);
}

.cm-price-old {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--cm-muted);
    text-decoration: line-through;
}

.cm-price-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.cm-price-wrap {
    margin-top: 14px;
}

.cm-price-kicker {
    margin: 0;
    color: var(--cm-text);
    font-size: 16px;
    font-weight: 700;
}

.cm-price-unit {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--cm-muted);
    font-weight: 600;
}

.cm-desc {
    margin: 12px 0 0;
    color: #344054;
    font-size: 16px;
    line-height: 1.72;
    max-width: 58ch;
}

.cm-desc p,
.cm-desc ul,
.cm-desc ol {
    margin: 0 0 10px;
}

.cm-desc li {
    margin-bottom: 6px;
}

.cm-info-box {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 12px;
    padding: 16px 18px;
}

.cm-info-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.cm-info-box ul,
.cm-info-box ol {
    margin: 0;
    padding-left: 22px;
}

.cm-info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.cm-actions {
    margin-top: 18px;
}

.cm-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--cm-primary);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cm-btn:hover {
    background: var(--cm-primary-hover);
    transform: translateY(-1px);
}

.cm-btn:visited,
.cm-btn:hover,
.cm-btn:focus,
.cm-btn:active {
    color: #fff;
    text-decoration: none;
}

.cm-gallery {
    border-radius: 16px;
}

.cm-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--cm-shadow);
    background: #d0d5dd;
    aspect-ratio: 4 / 3;
}

.cm-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.cm-gallery-thumbs {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.82;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cm-thumb.active,
.cm-thumb:hover {
    opacity: 1;
    border-color: var(--cm-primary-alt);
    transform: translateY(-1px);
}

.cm-main-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .cm-main-grid {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
        align-items: start;
    }
}

.cm-content,
.cm-box,
.cm-form-wrap,
.cm-card {
    background: var(--cm-card);
    border: 1px solid var(--cm-border);
    border-radius: 16px;
    box-shadow: var(--cm-shadow);
}

.cm-content {
    padding: 22px;
}

.cm-content > :first-child {
    margin-top: 0;
}

.cm-content > :last-child {
    margin-bottom: 0;
}

.cm-sidebar {
    position: sticky;
    top: 24px;
}

.cm-box {
    padding: 20px;
}

.cm-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
}

.cm-box p {
    margin: 0;
    color: var(--cm-muted);
    line-height: 1.65;
}

.cm-box .cm-btn {
    margin-top: 18px;
    width: 100%;
}

.cm-contact-box {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--cm-border);
}

.cm-contact-box-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
}

.cm-contact-box-text {
    margin: 0 0 16px;
    color: var(--cm-muted);
    line-height: 1.6;
}

.cm-contact-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--cm-text);
    text-decoration: none;
}

.cm-contact-phone-link:hover {
    text-decoration: underline;
}

.cm-contact-phone-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cm-contact-cta {
    margin-top: 12px !important;
}

.cm-contact-hint {
    margin-top: 12px;
    background: #fff7ed;
    border-color: #fed7aa;
}

.cm-section-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.cm-related-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cm-related {
    border-top: 1px solid var(--cm-border);
}

@media (min-width: 640px) {
    .cm-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .cm-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cm-card {
    overflow: hidden;
}

.cm-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cm-card-link:hover h4 {
    color: var(--cm-primary);
}

.cm-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cm-card h4 {
    margin: 0;
    padding: 14px 14px 16px;
    font-size: 16px;
    line-height: 1.45;
}

.cm-empty {
    color: var(--cm-muted);
}

.cm-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
}

.cm-form-section {
    background: #f3f8f4;
    border-top: 1px solid var(--cm-border);
}

.cm-form-intro {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cm-muted);
}

.cm-form-step {
    margin-bottom: 8px;
    padding-bottom: 22px;
}

.cm-form-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cm-form-step-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.cm-form-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--cm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cm-form-step-title {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--cm-text);
}

.cm-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.cm-field-label--plain {
    margin-bottom: 12px;
}

.cm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

.cm-radio-row input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--cm-primary);
}

.cm-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cm-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cm-form-grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cm-form-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cm-form input,
.cm-form textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: var(--cm-text);
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.cm-form textarea {
    min-height: 130px;
    resize: vertical;
}

.cm-quill-host {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    overflow: hidden;
}

.cm-field-group .cm-quill-host {
    margin-bottom: 0;
}

.cm-quill-host .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 9px 9px 0 0;
    padding: 8px 10px;
    background: #f9fafb;
}

.cm-quill-host .ql-container.ql-snow {
    border: none;
    font-size: 15px;
    line-height: 1.45;
    min-height: 130px;
}

.cm-quill-host .ql-editor {
    min-height: 130px;
    padding: 12px 14px;
    color: var(--cm-text);
}

.cm-quill-host .ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

/* Keep WordPress block/content margins compact inside campaign page only. */
.cm-content h1,
.cm-content h2,
.cm-content h3,
.cm-content h4,
.cm-content h5,
.cm-content h6 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.cm-content p,
.cm-content ul,
.cm-content ol,
.cm-content blockquote {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.cm-form input:focus,
.cm-form textarea:focus {
    outline: none;
    border-color: var(--cm-primary);
    box-shadow: 0 0 0 3px rgba(33, 86, 153, 0.15);
}

.cm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.cm-lightbox img {
    max-width: min(94vw, 1180px);
    max-height: 86vh;
    object-fit: contain;
}

.cm-close,
.cm-nav {
    position: absolute;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
}

.cm-close:hover,
.cm-nav:hover {
    background: rgba(23, 159, 54, 0.9);
}

.cm-close {
    top: 16px;
    right: 22px;
    font-size: 34px;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 999px;
}

.cm-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cm-prev {
    left: 16px;
}

.cm-next {
    right: 16px;
}

/* ── Inquiry product summary ─────────────────────────────────────── */
.cm-inquiry-product {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    background: var(--cm-light, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.cm-inquiry-product-info,
.cm-inquiry-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cm-inquiry-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    font-weight: 600;
}

.cm-inquiry-product-title {
    font-size: 15px;
    color: #111827;
}

.cm-inquiry-product-price strong {
    font-size: 16px;
    color: var(--cm-primary);
}

/* ── Quantity + details (aligned with form fields) ─────────────── */
.cm-form > .cm-form-extras {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 20px;
}

.cm-field-group {
    margin: 0;
}

.cm-field-group .cm-field-label {
    margin-bottom: 8px;
}

.cm-quantity-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
}

.cm-qty-btn {
    width: 44px;
    min-height: 46px;
    background: #f9fafb;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    line-height: 1;
    transition: background .15s;
    flex-shrink: 0;
}

.cm-qty-btn:hover {
    background: #f3f4f6;
}

.cm-qty-input {
    width: 72px !important;
    min-height: 46px;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--cm-text);
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    -moz-appearance: textfield;
}

.cm-qty-input::-webkit-inner-spin-button,
.cm-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.cm-quantity-control:focus-within {
    border-color: var(--cm-primary);
    box-shadow: 0 0 0 3px rgba(33, 86, 153, 0.15);
}

/* ── Form success & error states ────────────────────────────────── */
.cm-form-success {
    text-align: center;
    padding: 48px 24px;
    color: #111827;
}

.cm-form-success svg {
    width: 56px;
    height: 56px;
    color: #16a34a;
    margin-bottom: 16px;
}

.cm-form-success h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cm-form-success p {
    color: #6b7280;
    margin: 0;
}

.cm-form-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}