/*
 * Cell C brand styles for the customer insurance wizard (OM-1085).
 * Colours, type and header/footer follow the 2024 Cell C brand guidelines
 * and the CustomerPortal look in the CellCAdmin (Laravel) application.
 * All selectors are prefixed with "cc-" so they do not clash with the
 * legacy cellc.co.za styles still loaded for the wizard content.
 */

@font-face {
    font-family: 'Cell C Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cellc/CellCSans-Regular.otf') format('opentype'),
         url('../fonts/cellc/CellCSans-Regular_otf.woff2') format('woff2');
}

@font-face {
    font-family: 'Cell C Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cellc/CellCSans-Medium.otf') format('opentype'),
         url('../fonts/cellc/CellCSans-Medium_otf.woff2') format('woff2');
}

@font-face {
    font-family: 'Cell C Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cellc/CellCSans-Bold.otf') format('opentype'),
         url('../fonts/cellc/CellCSans-Bold_otf.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cellc/Poppins-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cellc/Poppins-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/cellc/Poppins-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/cellc/Poppins-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/cellc/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cellc/Inter-Regular.woff2') format('woff2');
}

:root {
    --cc-orange: #ea5b0c;
    --cc-orange-dark: #c94c08;
    --cc-black: #000000;
    --cc-ink: #0f0f0f;
    --cc-grey-900: #292929;
    --cc-grey-600: #6b6b6b;
    --cc-grey-500: #737373;
    --cc-grey-400: #a3a3a3;
    --cc-grey-100: #edeeef;
    --cc-white: #ffffff;
    --cc-off-white: #fafafa;
    --cc-font: 'Cell C Sans', Arial, Helvetica, sans-serif;
    --cc-font-poppins: 'Poppins', Arial, Helvetica, sans-serif;
    --cc-font-inter: 'Inter', Arial, Helvetica, sans-serif;
    --cc-gutter: clamp(16px, 5vw, 80px);
}

/* Keep fields that the browser scrolls to (e.g. validation errors) clear of the sticky header. */
html {
    scroll-padding-top: 130px;
}

/* Stop the elastic page bounce on trackpads, which made reaching the bottom of the
   footer feel jumpy. Phones keep pull-to-refresh. */
@media (min-width: 1024px) {
    html,
    body.cc-body {
        overscroll-behavior-y: none;
    }
}

body.cc-body {
    margin: 0;
    padding: 0 !important;
    background: var(--cc-black);
    font-family: var(--cc-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header and footer copy cellc.co.za, which uses the browser's default smoothing.
   "antialiased" draws Cell C Sans thinner on macOS, so the menu looked lighter than the live site. */
body.cc-body .cc-header,
body.cc-body .cc-footer {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

.cc-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cc-header *,
.cc-footer * {
    box-sizing: border-box;
}

.cc-header a,
.cc-footer a {
    text-decoration: none;
}

.cc-header ul,
.cc-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------------- Header */
/* Values measured from the live www.cellc.co.za global header at 1440px. */

.cc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--cc-font);
    transition: transform 0.3s ease-in-out;
}

.cc-header.is-hidden {
    transform: translateY(-100%);
}

.cc-topbar {
    height: 40px;
    padding: 0 6%;
    background: var(--cc-grey-900);
}

.cc-topbar__tabs {
    display: flex;
    gap: 5px;
    height: 40px;
}

.cc-topbar__tabs a {
    display: inline-block;
    height: 40px;
    padding: 12px 20px;
    font-family: var(--cc-font-poppins);
    font-size: 12px;
    font-weight: 700;
    line-height: 14.4px;
    color: var(--cc-grey-600);
    border-radius: 10px 10px 0 0;
    transition: color 0.2s ease;
}

.cc-topbar__tabs a:hover,
.cc-topbar__tabs a:focus {
    color: var(--cc-white);
}

.cc-topbar__tabs a.is-active {
    color: var(--cc-white);
    background: var(--cc-ink);
}

/* Logo left, menu exactly centred, actions right. */
.cc-navbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 88px;
    padding: 0 6%;
    background: var(--cc-ink);
}

.cc-navbar__logo {
    display: inline-flex;
    justify-self: start;
}

.cc-navbar__logo img {
    display: block;
    width: 130px;
    height: 52px;
    object-fit: contain;
}

.cc-navbar__actions {
    display: flex;
    align-items: center;
    justify-self: end;
}

.cc-login-btn {
    display: inline-flex;
    align-items: center;
    height: 50px;
    margin-right: 10px;
    padding: 14px 24px;
    font-family: var(--cc-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: var(--cc-black);
    background: var(--cc-orange);
    border-radius: 40px;
    transition: background-color 0.2s ease;
}

.cc-login-btn:hover,
.cc-login-btn:focus {
    color: var(--cc-black);
    background: #ff6a1a;
}

.cc-icon-link {
    display: inline-flex;
    padding: 0 10px;
    color: var(--cc-white);
    transition: color 0.2s ease;
}

.cc-icon-link:hover,
.cc-icon-link:focus {
    color: var(--cc-orange);
}

.cc-navbar__toggle {
    display: none;
}

.cc-nav__list {
    display: flex;
    gap: 32px;
    height: 88px;
}

.cc-nav__item {
    display: flex;
}

.cc-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 35px 0;
    font-family: var(--cc-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: var(--cc-white);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Orange 4px bar under the open menu, as on cellc.co.za. */
.cc-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.cc-nav__arrow {
    transition: transform 0.2s ease;
}

.cc-nav__item:hover .cc-nav__link,
.cc-nav__link:focus-visible,
.cc-nav__link[aria-expanded="true"] {
    color: var(--cc-orange);
}

.cc-nav__item:hover .cc-nav__link::after,
.cc-nav__link[aria-expanded="true"]::after {
    background: var(--cc-orange);
}

.cc-nav__item:hover .cc-nav__arrow,
.cc-nav__link[aria-expanded="true"] .cc-nav__arrow {
    transform: rotate(180deg);
}

.cc-nav__link:focus {
    outline: none;
}

.cc-nav__link:focus-visible {
    outline: 2px solid var(--cc-orange);
    outline-offset: 2px;
}

/* Mega menu (desktop) */

.cc-subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cc-white);
    border-bottom: 1.5px solid #0c0d0d;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.cc-nav__item:hover > .cc-subnav,
.cc-nav__link[aria-expanded="true"] + .cc-subnav {
    display: flex;
}

.cc-subnav__content {
    display: flex;
    padding-left: 6%;
}

.cc-subnav__column {
    flex: 0 0 18.8vw;
    max-width: 271px;
    padding: 32px 32px 32px 0;
}

.cc-subnav__column li + li {
    margin-top: 4px;
}

.cc-subnav--wide .cc-subnav__column {
    flex: 1 1 0;
    max-width: none;
}

.cc-subnav__column h2 {
    margin: 0 0 16px;
    padding: 0 0 0 16px;
    font-family: var(--cc-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #0c0d0d;
}

.cc-subnav__column ul + h2 {
    margin-top: 56px;
}

.cc-subnav__column a {
    display: block;
    padding: 12px 24px 12px 16px;
    font-family: var(--cc-font-poppins);
    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
    color: var(--cc-grey-500);
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-subnav__column a:hover,
.cc-subnav__column a:focus {
    color: var(--cc-white);
    background: var(--cc-black);
}

/* Shop menu promotion: the same banner and button as cellc.co.za. */
.cc-subnav__promo {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: flex-start;
    padding: 192px 32px 32px;
    background-color: #f4f4f6;
    background-position: 50% 50%;
    background-size: cover;
}

.cc-subnav__promo-btn {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 12px 24px;
    font-family: var(--cc-font-poppins);
    font-size: 16px;
    font-weight: 500;
    color: #fdfdfd;
    background: var(--cc-ink);
    border: 2px solid var(--cc-ink);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-subnav__promo-btn:hover,
.cc-subnav__promo-btn:focus {
    color: var(--cc-ink);
    background: var(--cc-white);
}

.cc-subnav__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 12px 6%;
    background: var(--cc-black);
    color: var(--cc-white);
}

.cc-subnav__footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
}

.cc-subnav__footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cc-font-poppins);
    font-size: 18px;
    font-weight: 600;
    line-height: 21px;
    color: #fafaf9;
    border-bottom: 1px solid #fafaf9;
}

.cc-subnav__footer-links a:hover,
.cc-subnav__footer-links a:focus {
    color: rgba(250, 250, 249, 0.6);
    border-bottom-color: rgba(250, 250, 249, 0.6);
}

.cc-subnav__footer-cta {
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--cc-font-poppins);
    font-size: 16px;
}

.cc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 51px;
    padding: 12px 28px;
    font-family: var(--cc-font-poppins);
    font-size: 18px;
    font-weight: 700;
    color: var(--cc-white);
    border: 1px solid #fafaf9;
    border-radius: 50px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-btn-outline:hover,
.cc-btn-outline:focus {
    color: var(--cc-ink);
    background: #fafaf9;
}

/* Header: tablet and phone (hamburger menu with accordions). */

@media (max-width: 1023px) {
    .cc-topbar {
        padding: 0 16px;
    }

    .cc-navbar {
        display: flex;
        justify-content: space-between;
        height: 64px;
        padding: 0 16px;
    }

    .cc-navbar__logo img {
        width: auto;
        height: 36px;
    }

    .cc-login-btn {
        height: 40px;
        padding: 8px 18px;
        font-size: 15px;
    }

    .cc-icon-link {
        display: none;
    }

    .cc-navbar__toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        margin: 0 -10px 0 4px;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .cc-navbar__toggle-bar {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--cc-white);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .cc-navbar__toggle[aria-expanded="true"] .cc-navbar__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .cc-navbar__toggle[aria-expanded="true"] .cc-navbar__toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .cc-navbar__toggle[aria-expanded="true"] .cc-navbar__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .cc-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 104px);
        max-height: calc(100dvh - 104px);
        overflow-y: auto;
        background: var(--cc-ink);
        border-top: 1px solid var(--cc-grey-900);
    }

    .cc-nav.is-open {
        display: block;
    }

    .cc-nav__list {
        display: block;
        height: auto;
    }

    .cc-nav__item {
        display: block;
        border-bottom: 1px solid var(--cc-grey-900);
    }

    .cc-nav__link {
        justify-content: space-between;
        width: 100%;
        padding: 18px 16px;
        font-size: 18px;
    }

    .cc-nav__link::after {
        display: none;
    }

    .cc-nav__item:hover .cc-nav__link {
        color: var(--cc-white);
    }

    .cc-nav__item:hover .cc-nav__arrow {
        transform: none;
    }

    .cc-nav__link[aria-expanded="true"],
    .cc-nav__item:hover .cc-nav__link[aria-expanded="true"] {
        color: var(--cc-orange);
    }

    .cc-nav__item:hover .cc-nav__link[aria-expanded="true"] .cc-nav__arrow {
        transform: rotate(180deg);
    }

    /* On touch screens the accordion is driven by the button, not hover. */
    .cc-nav__item:hover > .cc-subnav {
        display: none;
    }

    .cc-subnav,
    .cc-nav__link[aria-expanded="true"] + .cc-subnav {
        position: static;
        border-radius: 0;
        border-bottom: 0;
    }

    .cc-nav__link[aria-expanded="true"] + .cc-subnav {
        display: flex;
    }

    .cc-subnav__content {
        flex-direction: column;
        padding: 8px 16px 16px;
    }

    .cc-subnav__column,
    .cc-subnav--wide .cc-subnav__column {
        flex: 0 0 auto;
        max-width: none;
        padding: 16px 0 0;
    }

    .cc-subnav__column h2 {
        font-size: 18px;
    }

    .cc-subnav__column ul + h2 {
        margin-top: 24px;
    }

    .cc-subnav__column a {
        font-size: 16px;
    }

    .cc-subnav__promo {
        min-height: 260px;
        margin-top: 16px;
        padding-top: 150px;
        border-radius: 12px;
    }

    .cc-subnav__footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

@media (max-width: 479px) {
    .cc-topbar__tabs a {
        padding: 12px 14px;
    }

    .cc-login-btn {
        padding: 8px 14px;
        margin-right: 4px;
    }
}

/* ---------------------------------------------------------- Page content */

.cc-main {
    background: var(--cc-white);
    color: var(--cc-ink);
    font-family: var(--cc-font);
    font-size: 16px;
    line-height: 1.5;
}

.cc-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--cc-gutter) 64px;
    text-align: left;
}

.cc-main h1,
.cc-main h2,
.cc-main h3,
.cc-main h4,
.cc-main h5,
.cc-main label,
.cc-main p,
.cc-main li,
.cc-main td,
.cc-main th,
.cc-main input,
.cc-main select,
.cc-main textarea,
.cc-main button {
    font-family: var(--cc-font);
}

.cc-main h1,
.cc-main h2,
.cc-main h3 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--cc-orange);
}

.cc-main h4,
.cc-main h5 {
    font-weight: 500;
    line-height: 1.25;
    color: var(--cc-ink);
}

.cc-main a {
    color: var(--cc-orange);
}

.cc-main a:hover,
.cc-main a:focus {
    color: var(--cc-orange-dark);
}

/* Brand rule: sentence case, no shouting. Legacy styles force uppercase. */
.cc-main label,
.cc-main form .form-change,
.cc-main .heading-med-allcaps {
    font-family: var(--cc-font);
    text-transform: none;
}

.cc-main form .form-change {
    font-weight: 400;
}

.cc-main label.full-width {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
    color: var(--cc-ink);
}

.cc-main label.full-width i {
    font-style: normal;
}

/* The views put a <br> after the question label; the label margin already spaces it. */
.cc-main label.full-width + br {
    display: none;
}

/* Button row: drop the grey Bootstrap 2 "form-actions" panel. */
.cc-main .wizard-buttons.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    background: none;
    border-top: 0;
}

/* Bootstrap's clearfix pseudo-elements would become empty flex items and offset the buttons. */
.cc-main .wizard-buttons.form-actions::before,
.cc-main .wizard-buttons.form-actions::after {
    display: none;
}

.cc-main .wizard-buttons .ecommerce-lrg-btn {
    margin: 0;
}

/* Step 1: insurance type radio list (span#VASGroup_id) shown as selectable cards. */
.cc-main #VASGroup_id {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 4px 0 24px;
}

.cc-main #VASGroup_id input[type="radio"] {
    position: absolute;
    width: 1px !important;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.cc-main #VASGroup_id label {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    margin: 0;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--cc-ink);
    background: var(--cc-white);
    border: 2px solid #d6d6d6;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-main #VASGroup_id label::before {
    content: "";
    flex: 0 0 22px;
    height: 22px;
    background: var(--cc-white);
    border: 2px solid var(--cc-grey-500);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--cc-white);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cc-main #VASGroup_id label:hover {
    border-color: var(--cc-ink);
}

.cc-main #VASGroup_id input[type="radio"]:checked + label {
    background: #fff4ee;
    border-color: var(--cc-orange);
    box-shadow: 0 4px 14px rgba(234, 91, 12, 0.15);
}

.cc-main #VASGroup_id input[type="radio"]:checked + label::before {
    background: var(--cc-orange);
    border-color: var(--cc-orange);
}

.cc-main #VASGroup_id input[type="radio"]:focus-visible + label {
    outline: 3px solid rgba(234, 91, 12, 0.4);
    outline-offset: 2px;
}

/*
 * Form fields. The legacy Bootstrap 2/3 and cellc.co.za styles each size fields
 * differently, so the key box properties use !important to give every step the
 * same modern field. Widths are left to the legacy/view styles (e.g. the small OTP box).
 */
.cc-main input,
.cc-main select,
.cc-main textarea {
    box-sizing: border-box;
}

.cc-main input:not([type]),
.cc-main input[type="text"],
.cc-main input[type="email"],
.cc-main input[type="tel"],
.cc-main input[type="number"],
.cc-main input[type="password"],
.cc-main input[type="search"],
.cc-main input[type="date"],
.cc-main input[type="url"],
.cc-main select,
.cc-main textarea,
.cc-main .chzn-container-single .chzn-single,
.cc-main .chosen-container-single .chosen-single {
    height: 52px !important;
    padding: 12px 16px !important;
    margin-bottom: 4px;
    font-family: var(--cc-font) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    color: var(--cc-ink) !important;
    background-color: var(--cc-white) !important;
    border: 1.5px solid #c9c9c9 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    float: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Single fields read best at a comfortable width, not the full page. */
.cc-main input:not([type]),
.cc-main input[type="text"],
.cc-main input[type="email"],
.cc-main input[type="tel"],
.cc-main input[type="number"],
.cc-main input[type="password"],
.cc-main select,
.cc-main .chzn-container,
.cc-main .chosen-container {
    max-width: 560px;
}

/* Step headings ("Your details.", "Details of the device to insure.", ...): brand headline. */
.cc-main .heading-med-allcaps {
    margin: 0 0 12px;
    font-family: var(--cc-font) !important;
    font-size: clamp(28px, 4vw, 40px) !important;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    color: var(--cc-orange);
}

.cc-main .heading-med-allcaps b {
    font-weight: 700;
}

/* All steps: field labels above the fields, fields at a comfortable width. */
.cc-main form .inline-formgroup {
    margin-bottom: 20px;
}

.cc-main form .inline-formgroup > label {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 0 0 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    color: var(--cc-ink);
}

.cc-main form .inline-formgroup > input.form-change,
.cc-main form .inline-formgroup > input.text_field {
    display: block !important;
    width: 100% !important;
    max-width: 560px;
    float: none !important;
}

/* ID type on the details form: compact chips instead of a long radio list. */
.cc-main #Customer_id_type_id {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 560px;
}

.cc-main #Customer_id_type_id input[type="radio"] {
    position: absolute;
    width: 1px !important;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.cc-main #Customer_id_type_id label {
    display: inline-flex !important;
    align-items: center;
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cc-ink);
    background: var(--cc-white);
    border: 1.5px solid #c9c9c9;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cc-main #Customer_id_type_id label:hover {
    border-color: var(--cc-ink);
}

.cc-main #Customer_id_type_id input[type="radio"]:checked + label {
    color: var(--cc-white);
    background: var(--cc-ink);
    border-color: var(--cc-ink);
}

.cc-main #Customer_id_type_id input[type="radio"]:focus-visible + label {
    outline: 3px solid rgba(234, 91, 12, 0.4);
    outline-offset: 2px;
}

.cc-main .id_type_label + br {
    display: none;
}

/* Step 6 declarations: each one a tappable card; highlighted when ticked. */
.cc-main .cc-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 860px;
    margin: 0 0 12px;
    padding: 16px 18px;
    background: var(--cc-white);
    border: 1.5px solid #d6d6d6;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cc-main .cc-check:hover {
    border-color: var(--cc-ink);
}

.cc-main .cc-check:has(input[type="checkbox"]:checked) {
    background: #fff4ee;
    border-color: var(--cc-orange);
}

.cc-main .cc-check:has(input[type="checkbox"]:focus-visible) {
    outline: 3px solid rgba(234, 91, 12, 0.35);
    outline-offset: 2px;
}

.cc-main .cc-check input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px;
    margin: 1px 0 0 !important;
    accent-color: var(--cc-orange);
    cursor: pointer;
}

.cc-main .cc-check label {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cc-ink);
    cursor: pointer;
}

/* The whole card is clickable: the label stretches over it. */
.cc-main .cc-check label::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.cc-main .cc-check label a {
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-decoration: underline;
}

/* Step 3: content sections (your details, the legal stuff, about the cover, agent). */
.cc-main .cc-section {
    margin: 0 0 32px;
}

.cc-main .cc-section__title {
    margin: 0 0 14px;
    font-family: var(--cc-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cc-ink);
}

.cc-main .cc-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 860px;
    margin: 0;
    overflow: hidden;
    background: #e6e6e6;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
}

.cc-main .cc-details > div {
    padding: 14px 18px;
    background: #fafafa;
}

.cc-main .cc-details dt {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--cc-grey-600);
}

.cc-main .cc-details dd {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--cc-ink);
    word-break: break-word;
}

.cc-main .cc-details > div:last-child:nth-child(odd),
.cc-main .cc-details > .cc-details__wide {
    grid-column: 1 / -1;
}

.cc-main .cc-details--device > div:last-child:nth-child(odd) {
    grid-column: auto;
}

.cc-main .cc-details + .cc-details {
    margin-top: 12px;
}

/* Notice box (orange); success and error variants further down. */
.cc-main .cc-notice {
    display: block;
    max-width: 860px;
    margin: 8px 0 20px;
    padding: 14px 18px;
    font-family: var(--cc-font);
    font-size: 17px;
    line-height: 1.5;
    color: var(--cc-ink);
    background: #fff4ee;
    border-left: 4px solid var(--cc-orange);
    border-radius: 0 12px 12px 0;
}

.cc-main .cc-details--stacked {
    grid-template-columns: 1fr;
}

.cc-main .cc-details--stacked > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
}

.cc-main .cc-details--stacked dt {
    margin: 2px 0 0;
}

.cc-main .cc-details--stacked dd {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.cc-main .cc-section__note,
.cc-main .cc-section__hint {
    max-width: 860px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cc-ink);
}

.cc-main .cc-section__hint {
    margin: 0 0 16px;
    color: var(--cc-grey-600);
}

/* The "About the cover" text comes from a CMS template: give it the same reading size. */
.cc-main .cellcnumber-content p,
.cc-main .cellcnumber-content li {
    font-size: 16px;
    line-height: 1.6;
}

.cc-main .cellcnumber-content ul {
    margin: 8px 0 16px;
    padding-left: 22px;
}

.cc-main .cc-agent {
    max-width: 860px;
    margin: 32px 0 8px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
}

.cc-main .cc-agent .cc-section__hint:last-child {
    margin: 4px 0 0;
}

.cc-main .cc-agent__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.cc-main .cc-agent .inline-formgroup {
    margin-bottom: 12px;
}

.cc-main .cc-agent .chzn-container,
.cc-main .cc-agent select {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 767px) {
    .cc-main .cc-details,
    .cc-main .cc-details--stacked,
    .cc-main .cc-details--stacked > div,
    .cc-main .cc-agent__fields {
        grid-template-columns: 1fr;
    }

    .cc-main .cc-details--stacked > div {
        gap: 2px;
    }

    .cc-main .cc-agent {
        padding: 18px;
    }
}

/* Step 6: summary of cover table. */
.cc-main table.cc-summary-table {
    width: 100%;
    max-width: 860px;
    margin: 8px 0 28px;
    border: 1px solid #e6e6e6;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--cc-white);
}

.cc-main table.cc-summary-table th,
.cc-main table.cc-summary-table td {
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid #ececec;
}

.cc-main table.cc-summary-table th {
    width: 38%;
    font-weight: 500;
    color: var(--cc-grey-600);
    background: #fafafa;
}

.cc-main table.cc-summary-table td {
    font-weight: 500;
    color: var(--cc-ink);
}

.cc-main table.cc-summary-table tr:last-child th,
.cc-main table.cc-summary-table tr:last-child td {
    border-bottom: 0;
}

.cc-main table.cc-summary-table tr:nth-child(even) td {
    background: #fdfdfd;
}

/* Step 6: the declarations and buttons share one wrapper; it must stack, not form a button row. */
.cc-main .wizard-buttons.form-actions.cc-step6-confirm {
    display: block;
}

/* Step 6: Submit on the left, Cancel and Go back on the right (desktop); one per row on phones. */
.cc-main .cc-step6-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 860px;
    margin-top: 28px;
}

.cc-main .cc-step6-actions .ecommerce-lrg-btn {
    margin: 0;
}

.cc-main .cc-step6-actions .accept {
    min-width: 240px;
}

.cc-main .cc-step6-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Wide buttons with long text (e.g. "I did not get the SMS – resend it") must not squash. */
.cc-main .wizard-buttons .ecommerce-lrg-btn,
.cc-main .cc-step6-actions .ecommerce-lrg-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cc-main table.cc-summary-table th,
    .cc-main table.cc-summary-table td {
        display: block;
        width: auto;
        padding: 10px 16px;
    }

    .cc-main table.cc-summary-table th {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .cc-main .cc-step6-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-main .cc-step6-actions .accept {
        min-width: 0;
        width: 100%;
    }

    .cc-main .cc-step6-actions__secondary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cc-main .wizard-buttons .ecommerce-lrg-btn,
    .cc-main .cc-step6-actions .ecommerce-lrg-btn {
        white-space: normal;
    }
}

/* Letter pages (welcome, cancellation letter): readable, brand typography.
   Also applies to the CMS template content shown on these pages. */
.cc-main .cc-letter {
    max-width: 760px;
    padding-top: 8px;
}

.cc-main .cc-letter__title,
.cc-main .cc-letter h1 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.15;
}

.cc-main .cc-letter h2,
.cc-main .cc-letter h3 {
    margin: 28px 0 10px;
    font-size: 22px;
    line-height: 1.25;
    color: var(--cc-ink);
}

.cc-main .cc-letter p,
.cc-main .cc-letter li,
.cc-main .cc-letter td {
    font-size: 17px;
    line-height: 1.65;
    color: var(--cc-ink);
}

.cc-main .cc-letter p {
    margin: 0 0 16px;
}

.cc-main .cc-letter strong,
.cc-main .cc-letter b {
    font-weight: 700;
}

.cc-main .cc-letter ol,
.cc-main .cc-letter ul {
    margin: 0 0 20px;
    padding-left: 24px;
}

.cc-main .cc-letter .cc-letter__documents {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
    counter-reset: cc-doc;
}

.cc-main .cc-letter .cc-letter__documents li {
    counter-increment: cc-doc;
}

.cc-main .cc-letter .cc-letter__documents a {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    padding: 14px 18px;
    font-weight: 500;
    color: var(--cc-ink);
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cc-main .cc-letter .cc-letter__documents a::before {
    content: counter(cc-doc);
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cc-white);
    background: var(--cc-orange);
    border-radius: 50%;
}

.cc-main .cc-letter .cc-letter__documents a::after {
    content: "\2197";
    margin-left: auto;
    color: var(--cc-orange);
}

.cc-main .cc-letter .cc-letter__documents a:hover,
.cc-main .cc-letter .cc-letter__documents a:focus {
    background: #fff4ee;
    border-color: var(--cc-orange);
}

.cc-main .cc-letter__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 520px;
    margin: 0 0 20px;
    padding: 16px 18px;
    font-size: 17px;
    line-height: 1.5;
    background: #fafafa;
    border-left: 4px solid var(--cc-orange);
    border-radius: 0 12px 12px 0;
}

.cc-main .cc-letter__signoff {
    margin-top: 24px;
}

/* Result pages (cancel done, step 2 failed, thank you): icon next to the headline. */
.cc-main .cc-result {
    max-width: none;
    margin: 16px 0;
}

.cc-main .cc-result > .cc-notice,
.cc-main .cc-result > p {
    max-width: 860px;
}

.cc-main .cc-result__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.cc-main .cc-result__header .cc-result__title {
    margin: 0;
}

.cc-main .cc-result__icon {
    display: inline-flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--cc-white);
    background: var(--cc-orange);
    border-radius: 50%;
}

.cc-main .cc-result--error .cc-result__icon {
    background: #d93025;
}

.cc-main .cc-result__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.cc-main .cc-result--error .cc-result__title {
    color: var(--cc-ink);
}

.cc-main .cc-result p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.6;
}

.cc-main .cc-result__lead {
    font-weight: 500;
}

/* Readable text and larger, easier fields on tablet and desktop (all steps).
   Phones keep the slightly smaller sizes set above. */
@media (min-width: 768px) {
    .cc-main {
        font-size: 17px;
    }

    .cc-main p,
    .cc-main li,
    .cc-main dd,
    .cc-main td {
        font-size: 17px;
        line-height: 1.6;
    }

    .cc-main label,
    .cc-main form .inline-formgroup > label,
    .cc-main label.full-width {
        font-size: 17px;
    }

    .cc-main label.full-width {
        font-size: 19px;
    }

    .cc-main input:not([type]),
    .cc-main input[type="text"],
    .cc-main input[type="email"],
    .cc-main input[type="tel"],
    .cc-main input[type="number"],
    .cc-main input[type="password"],
    .cc-main input[type="search"],
    .cc-main input[type="date"],
    .cc-main input[type="url"],
    .cc-main select,
    .cc-main .chzn-container-single .chzn-single,
    .cc-main .chosen-container-single .chosen-single {
        height: 56px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 17px !important;
    }

    .cc-main .chzn-container .chzn-results li,
    .cc-main .chosen-container .chosen-results li {
        font-size: 17px;
    }

    .cc-main input#otp {
        font-size: 26px !important;
    }

    .cc-main #Customer_id_type_id {
        gap: 10px;
        max-width: 640px;
    }

    .cc-main #Customer_id_type_id label {
        min-height: 48px;
        padding: 10px 22px;
        font-size: 17px;
    }

    .cc-main #VASGroup_id label {
        min-height: 64px;
        font-size: 18px;
    }

    .cc-body .cc-main .ecommerce-lrg-btn,
    .cc-body .cc-main .btn-primary,
    .cc-body .cc-main .btn-success,
    .cc-body .cc-main #printQuote {
        min-height: 52px;
        font-size: 17px;
    }

    .cc-body .cc-main #printQuote {
        height: 52px;
    }
}

/* Result pages (thank you, declined): body text under the headline. */
.cc-main .cc-result__title + p,
.cc-main .cc-result__title ~ div p {
    max-width: 760px;
}

/* Notices: success and error variants. */
.cc-main .cc-notice--success {
    font-weight: 500;
}

.cc-main .cc-notice--error {
    font-size: 18px;
    font-weight: 700;
    color: #a31d14;
    background: #fdecea;
    border-left-color: #d93025;
}

/* Result page body text (step 4, thank you, declined): wider than the old half column. */
.cc-main .cc-result-body {
    max-width: 860px;
}

.cc-main .cc-lead,
.cc-main .cc-thankyou > p:first-child {
    font-size: 19px;
    line-height: 1.6;
}

/* Thank-you CMS content (when shown as written): the contact lines become one card. */
.cc-main .cc-thankyou > div:not(.cc-contact-card) {
    max-width: 640px;
    padding: 2px 22px;
    font-size: 17px;
    line-height: 1.6;
    background: #fafafa;
    border-left: 4px solid var(--cc-orange);
}

.cc-main .cc-thankyou > p + div:not(.cc-contact-card) {
    margin-top: 20px;
    padding-top: 18px;
    font-weight: 500;
    border-top-right-radius: 12px;
}

.cc-main .cc-thankyou > div:not(.cc-contact-card):last-of-type {
    padding-bottom: 14px;
    border-bottom-right-radius: 12px;
}

.cc-main .cc-thankyou > div span[style*="pre"] {
    display: inline-block;
    width: 8px;
}

/* Contact card ("Questions?") on result pages. */
.cc-main .cc-contact-card {
    max-width: 640px;
    margin: 24px 0 8px;
    padding: 22px 24px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
}

.cc-main .cc-contact-card__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--cc-ink);
}

.cc-main .cc-contact-card__intro {
    margin: 0 0 14px;
    color: var(--cc-grey-600);
}

.cc-main .cc-contact-card__rows {
    display: grid;
    gap: 10px;
}

.cc-main a.cc-contact-card__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--cc-ink);
    background: var(--cc-white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.cc-main a.cc-contact-card__row:hover,
.cc-main a.cc-contact-card__row:focus {
    color: var(--cc-ink);
    border-color: var(--cc-orange);
}

.cc-main .cc-contact-card__row span {
    flex: 0 0 52px;
    font-size: 15px;
    color: var(--cc-grey-600);
}

.cc-main .cc-contact-card__row strong {
    font-size: 19px;
    font-weight: 700;
    color: var(--cc-orange-dark);
    word-break: break-word;
}

/* Wider contact card (thank-you page): call and email side by side, opening hours below. */
.cc-main .cc-contact-card.cc-contact-card--wide {
    max-width: 860px;
}

@media (min-width: 768px) {
    .cc-main .cc-contact-card--wide .cc-contact-card__rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cc-main .cc-hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
}

.cc-main .cc-hours > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 18px;
    background: var(--cc-white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.cc-main .cc-hours dt {
    flex: 0 0 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--cc-grey-600);
}

.cc-main .cc-hours dd {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--cc-ink);
}

@media (max-width: 599px) {
    .cc-main .cc-hours {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599px) {
    .cc-main .cc-result__header {
        align-items: flex-start;
        gap: 14px;
    }

    .cc-main .cc-result__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .cc-main .cc-contact-card {
        padding: 18px;
    }

    .cc-main a.cc-contact-card__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .cc-main .cc-contact-card__row span {
        flex: 0 0 auto;
    }

    .cc-main .cc-contact-card__row strong {
        font-size: 16px;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

/* Page headings on steps that had none (step 1, cancel, OTP, request a quote). */
.cc-main .cc-page-title {
    margin: 0 0 10px;
    font-family: var(--cc-font);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cc-orange);
}

.cc-main .cc-page-lead {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--cc-grey-600);
}

/* Request a quote: Print quotation only shows once a quote has loaded (cellc_requestQuote.php adds .is-available). */
.cc-main #printQuote:not(.is-available) {
    display: none !important;
}

/* Request a quote: Print quotation sits after Apply and Summary of cover, in the same row. */
.cc-main #cellcnumber-content .wizard-buttons #printQuote {
    order: 3;
}

/* Reference number (declined / thank you): stands out so customers can note it. */
.cc-main p.cc-reference {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 20px;
    padding: 14px 22px;
    background: #fff4ee;
    border: 1.5px solid var(--cc-orange);
    border-radius: 12px;
}

.cc-main .cc-reference span {
    font-size: 15px;
    font-weight: 500;
    color: var(--cc-grey-600);
}

.cc-main .cc-reference strong {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--cc-ink);
}

/* Request a quote: the four cover cards (colours kept from production).
   Even grid with inner padding; 4 per row on desktop, 2 on tablet, 1 on phones. */
.cc-main #span12 {
    width: 100% !important;
    max-width: 1100px;
    margin-left: 0 !important;
}

.cc-main #showInsuranceCover {
    display: block !important;
}

.cc-main #showInsuranceCover[style*="none"] {
    display: none !important;
}

.cc-main .cover-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.cc-main .cover-wrapper > br {
    display: none;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] {
    box-sizing: border-box;
    width: auto !important;
    min-height: 0;
    margin: 0;
    padding: 16px 16px 18px;
    border-radius: 16px;
}

/* The script shows a card by setting display:inline; lay visible cards out as columns. */
.cc-main .cover-wrapper > [class^="sideBySide3Blocks"]:not([style*="none"]) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] img {
    align-self: center;
    width: 120px;
    height: 120px;
    margin: 4px 0 8px;
    object-fit: contain;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] span {
    display: block;
    flex: 1 1 auto;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] p {
    margin: 6px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] p[id^="InsuranceAmount"] {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.cc-main .cover-wrapper > [class^="sideBySide3Blocks"] p[id^="total"] {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 84px !important;
    height: 84px !important;
    padding: 0 !important;
    margin: 10px auto !important;
    font-size: 15px;
}

.cc-main .cover-wrapper .term_condition_links {
    box-sizing: border-box;
    width: auto;
    margin: 14px 4px 0;
    padding: 10px 12px;
    text-align: center;
    border-radius: 999px;
}

.cc-main .cover-wrapper .term_condition_links a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--cc-orange-dark);
}

@media (max-width: 1099px) {
    .cc-main .cover-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .cc-main .cover-wrapper {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cc-main .cover-wrapper > [class^="sideBySide3Blocks"] {
        padding: 14px 16px 16px;
    }

    .cc-main .cover-wrapper > [class^="sideBySide3Blocks"] img {
        width: 88px;
        height: 88px;
    }

    .cc-main .cover-wrapper > [class^="sideBySide3Blocks"] p[id^="InsuranceAmount"] {
        font-size: 26px;
    }
}

/* Start page: server messages (e.g. "not able to update"), left aligned with the icon on the same line. */
.cc-main .cc-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 860px;
    margin: 8px 0 24px;
    padding: 14px 18px;
    border-left: 4px solid #d93025;
    border-radius: 0 12px 12px 0;
    background: #fdf2f2;
    text-align: left;
    font-family: var(--cc-font-poppins);
}

.cc-main .cc-alert__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: #d93025;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.cc-main .cc-alert__body {
    min-width: 0;
}

.cc-main .cc-alert__title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #7a1a12;
}

.cc-main .cc-alert__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #7a1a12;
}

.cc-main .cc-alert__title + .cc-alert__text {
    margin-top: 2px;
}

.cc-main .cc-alert__text a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.cc-main .cc-alert--success {
    border-left-color: #1e8e3e;
    background: #f0f9f3;
}

.cc-main .cc-alert--success .cc-alert__icon {
    background: #1e8e3e;
}

.cc-main .cc-alert--success .cc-alert__title,
.cc-main .cc-alert--success .cc-alert__text {
    color: #14532d;
}

/* Start page: number-format error, one small line under the number field. */
.cc-main .cc-field-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    font-family: var(--cc-font-poppins);
    font-size: 15px;
    line-height: 1.4;
    color: #b42318;
}

.cc-main .cc-field-error__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d93025;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.cc-main input.is-invalid {
    border-color: #d93025 !important;
}

/* Step 3: "Additional cover at an extra premium" (Excess buy-down, SIM card insurance) as option cards.
   CSS only: the page script relies on the existing HTML (input + label pairs inside span#premium_band). */
.cc-main .vasCategorySet:not(.hide) {
    display: block;
    margin: 24px 0 8px;
}

.cc-main .vasCategorySet .vasCategory {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

/* The category checkbox is set by the script when an option is picked; it stays in the form but is not shown. */
.cc-main .vasCategorySet .vasCategory input.vasCategoryIds {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.cc-main .vasCategorySet .vasCategory label {
    margin: 0;
    padding: 0;
    font-family: var(--cc-font-poppins);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e1e1e;
    cursor: default;
}

.cc-main .vasCategorySet .vasCategory a.deselect {
    font-family: var(--cc-font-poppins);
    font-size: 15px;
    font-weight: 500;
    color: var(--cc-orange-dark);
    text-decoration: underline;
}

.cc-main .vasCategorySet span[id^="premium_band"] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 860px;
    font-size: 0; /* hides the &nbsp; spacers between options */
}

.cc-main .vasCategorySet span[id^="premium_band"] > input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.cc-main .vasCategorySet span[id^="premium_band"] > label {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 16px 18px 16px 58px;
    border: 1.5px solid #d4d4d4;
    border-radius: 12px;
    background: #fff;
    font-family: var(--cc-font-poppins);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: #1e1e1e;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* The tick box drawn inside each card. */
.cc-main .vasCategorySet span[id^="premium_band"] > label::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border: 2px solid #a3a3a3;
    border-radius: 6px;
    background: #fff no-repeat center / 16px 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cc-main .vasCategorySet span[id^="premium_band"] > input[type="radio"] + label::before {
    border-radius: 50%;
}

.cc-main .vasCategorySet span[id^="premium_band"] > label:hover {
    border-color: var(--cc-orange);
}

.cc-main .vasCategorySet span[id^="premium_band"] > input:checked + label {
    border-color: var(--cc-orange);
    background: #fff4ee;
    box-shadow: 0 0 0 1px var(--cc-orange);
}

.cc-main .vasCategorySet span[id^="premium_band"] > input:checked + label::before {
    border-color: var(--cc-orange);
    background-color: var(--cc-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cc-main .vasCategorySet span[id^="premium_band"] > input:focus-visible + label {
    outline: 3px solid rgba(234, 91, 12, 0.35);
    outline-offset: 2px;
}

/* Info icon (tooltip) sits inside the right side of the card before it. */
.cc-main .vasCategorySet span[id^="premium_band"] > .infoIcon {
    position: relative;
    z-index: 1;
    flex: 0 0 28px;
    align-self: center;
    width: 28px;
    height: 28px;
    margin-left: -56px;
    margin-right: 16px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #525252;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    cursor: help;
}

.cc-main .vasCategorySet span[id^="premium_band"] > label:has(+ .infoIcon) {
    padding-right: 56px;
}

@media (min-width: 768px) {
    .cc-main .vasCategorySet span[id^="premium_band"] > label {
        min-height: 72px;
        font-size: 18px;
    }
}

/* Step 3: total monthly premium as a summary panel. The script fills "label.premium span" and toggles .empty.
   Selector beats ".cc-main form .inline-formgroup > label" and the view's inline style. */
.cc-main form .inline-formgroup > label.premium {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 860px;
    margin: 24px 0 8px;
    padding: 20px 24px;
    border: 1.5px solid #f3c7ad;
    border-left: 6px solid var(--cc-orange);
    border-radius: 14px;
    background: #fff4ee;
    font-family: var(--cc-font-poppins);
    font-size: 17px;
    font-weight: 500 !important;
    line-height: 1.4;
    color: #1e1e1e;
    cursor: default;
}

.cc-main form .inline-formgroup > label.premium span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--cc-font-poppins);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cc-orange-dark);
    white-space: nowrap;
}

.cc-main form .inline-formgroup > label.premium span::after {
    content: "per month";
    font-size: 15px;
    font-weight: 500;
    color: #525252;
}

.cc-main form .inline-formgroup > label.premium.empty {
    border-left-color: #d4d4d4;
    border-color: #e5e5e5;
    background: #fafafa;
}

.cc-main form .inline-formgroup > label.premium.empty span {
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: #737373;
    white-space: normal;
}

.cc-main form .inline-formgroup > label.premium.empty span::after {
    content: none;
}

@media (max-width: 600px) {
    .cc-main form .inline-formgroup > label.premium {
        padding: 18px 16px;
    }

    .cc-main form .inline-formgroup > label.premium span {
        font-size: 30px;
    }
}

/* ---------- Claim wizard (customerClaimWizard/cellc_*.php) ---------- */

.cc-main .required {
    color: #d93025;
}

/* Validation summary, same look as the start page alerts. */
.cc-main .cc-error-summary {
    max-width: 860px;
    margin: 8px 0 24px;
    padding: 14px 18px;
    border-left: 4px solid #d93025;
    border-radius: 0 12px 12px 0;
    background: #fdf2f2;
    font-family: var(--cc-font-poppins);
    color: #7a1a12;
}

.cc-main .cc-error-summary p {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.cc-main .cc-error-summary ul {
    margin: 0 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
}

.cc-main .cc-error-summary li {
    color: #7a1a12;
}

/* Claim type radio list (span#Repair_repair_type_id) as cards, like step 1 of the insurance wizard. */
.cc-main #Repair_repair_type_id {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 4px 0 8px;
}

.cc-main #Repair_repair_type_id input[type="radio"] {
    position: absolute;
    width: 1px !important;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.cc-main #Repair_repair_type_id label {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    margin: 0;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--cc-ink);
    background: var(--cc-white);
    border: 2px solid #d6d6d6;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-main #Repair_repair_type_id label::before {
    content: "";
    flex: 0 0 22px;
    height: 22px;
    background: var(--cc-white);
    border: 2px solid var(--cc-grey-500);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--cc-white);
}

.cc-main #Repair_repair_type_id label:hover {
    border-color: var(--cc-ink);
}

.cc-main #Repair_repair_type_id input[type="radio"]:checked + label {
    background: #fff4ee;
    border-color: var(--cc-orange);
    box-shadow: 0 4px 14px rgba(234, 91, 12, 0.15);
}

.cc-main #Repair_repair_type_id input[type="radio"]:checked + label::before {
    background: var(--cc-orange);
    border-color: var(--cc-orange);
}

.cc-main #Repair_repair_type_id input[type="radio"]:focus-visible + label {
    outline: 3px solid rgba(234, 91, 12, 0.4);
    outline-offset: 2px;
}

/* A section after a form (e.g. "Choose the number" under the Next buttons) needs space above it. */
.cc-main form + .cc-section,
.cc-main .form-actions + .cc-section {
    margin-top: 40px;
}

/* Several numbers found: choose one. */
.cc-main .cc-claim-accounts {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cc-main .cc-claim-accounts a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 2px solid #d6d6d6;
    border-radius: 12px;
    font-family: var(--cc-font-poppins);
    font-size: 18px;
    font-weight: 600;
    color: var(--cc-ink);
    text-decoration: none;
}

.cc-main .cc-claim-accounts a:hover,
.cc-main .cc-claim-accounts a:focus {
    border-color: var(--cc-orange);
    color: var(--cc-orange-dark);
}

.cc-main .cc-claim-track-link {
    margin: 28px 0 0;
    font-family: var(--cc-font-poppins);
    font-size: 16px;
    color: #525252;
}

.cc-main .cc-claim-track-link a {
    font-weight: 600;
    color: var(--cc-orange-dark);
}

/* Upload documents: one card per document, with its upload status. */
.cc-main .cc-docs {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.cc-main .cc-doc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 18px 20px;
    border: 1.5px solid #d4d4d4;
    border-radius: 14px;
    background: #fff;
    font-family: var(--cc-font-poppins);
}

.cc-main .cc-doc.is-done {
    border-color: #b7dfc4;
    background: #f0f9f3;
}

.cc-main .cc-doc.is-error {
    border-color: #f1b5b5;
    background: #fdf2f2;
}

.cc-main .cc-doc__text {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 4px;
}

.cc-main .cc-doc .cc-doc__title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--cc-ink);
}

.cc-main .cc-doc__hint {
    font-size: 15px;
    line-height: 1.45;
    color: #525252;
}

.cc-main .cc-doc__status > span {
    display: none;
    font-size: 15px;
    font-weight: 600;
}

.cc-main .cc-doc .cc-doc__status-todo {
    display: inline;
    color: #737373;
}

.cc-main .cc-doc.is-done .cc-doc__status-todo,
.cc-main .cc-doc.is-busy .cc-doc__status-todo,
.cc-main .cc-doc.is-error .cc-doc__status-todo {
    display: none;
}

/* The page script shows #<type>_uploaded with an inline style; the card class does the same. */
.cc-main .cc-doc.is-done .cc-doc__status-done,
.cc-main .cc-doc__status-done[style*="inline"],
.cc-main .cc-doc__status-done[style*="block"] {
    display: inline;
    color: #1e8e3e;
}

.cc-main .cc-doc.is-busy .cc-doc__status-busy {
    display: inline;
    color: var(--cc-orange-dark);
}

.cc-main .cc-doc.is-error .cc-doc__status-error {
    display: inline;
    color: #b42318;
}

/* File input: the real input covers the styled button, so it stays clickable and keyboard friendly. */
.cc-main .cc-doc__button {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.cc-main .cc-doc__button-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid var(--cc-orange);
    border-radius: 999px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--cc-orange-dark);
}

.cc-main .cc-doc__button input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    cursor: pointer;
}

.cc-main .cc-doc__button:hover .cc-doc__button-label {
    background: #fff4ee;
}

.cc-main .cc-doc__button:focus-within .cc-doc__button-label {
    outline: 3px solid rgba(234, 91, 12, 0.4);
    outline-offset: 2px;
}

/* Space between a details box and the field below it. */
.cc-main .cc-section .cc-details + input[type="hidden"],
.cc-main .cc-section .cc-details {
    margin-bottom: 24px;
}

.cc-main .cc-claim-content {
    font-size: 17px;
    line-height: 1.6;
}

.cc-main .cc-claim-history td,
.cc-main .cc-claim-history th {
    text-align: left;
}

@media (max-width: 600px) {
    .cc-main .cc-doc__button,
    .cc-main .cc-doc__button-label {
        width: 100%;
    }
}

/* Request a quote: message in the cover area while the quote loads. */
.cc-main .cc-quote-status {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #f3c7ad;
    border-radius: 12px;
    background: #fff7f2;
    font-family: var(--cc-font-poppins);
    text-align: left;
}

.cc-main .cc-quote-status[hidden] {
    display: none !important;
}

.cc-main .cc-quote-status__spinner {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 4px solid #f3c7ad;
    border-top-color: var(--cc-orange);
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
}

.cc-main .cc-quote-status__title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
}

.cc-main .cc-quote-status__text {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #525252;
}

.cc-main .cc-quote-status.is-error {
    border-color: #f1b5b5;
    background: #fdf2f2;
}

.cc-main .cc-quote-status.is-error .cc-quote-status__spinner {
    display: none;
}

.cc-main .cc-quote-status.is-error .cc-quote-status__title {
    color: #b42318;
}

@media (max-width: 600px) {
    .cc-main .cc-quote-status {
        margin: 16px 0;
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-main .cc-quote-status__spinner {
        animation-duration: 2s;
    }
}

/* Request a quote: labels above the fields, like the other steps. */
.cc-main #cellcnumber-content .inline-formgroup {
    display: block;
    margin-bottom: 20px;
}

.cc-main #cellcnumber-content .inline-formgroup > label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    color: var(--cc-ink);
}

.cc-main #cellcnumber-content .chzn-container,
.cc-main #cellcnumber-content select {
    display: block;
    width: 100% !important;
    max-width: 560px !important;
}

/* "Print quotation" on Request a quote: outline button instead of a grey box. */
.cc-main #printQuote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    height: 48px;
    min-height: 48px;
    padding: 0 28px !important;
    font-family: var(--cc-font) !important;
    font-size: 16px;
    font-weight: 500;
    color: var(--cc-ink) !important;
    background: var(--cc-white) !important;
    border: 2px solid var(--cc-ink) !important;
    border-radius: 50px;
    cursor: pointer;
}

.cc-main #printQuote:hover,
.cc-main #printQuote:focus {
    color: var(--cc-white) !important;
    background: var(--cc-ink) !important;
}

/* One-time PIN box: short, large, spaced digits. */
.cc-main input#otp {
    width: 200px !important;
    max-width: 100% !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3em;
    text-align: center;
}

.cc-main textarea {
    height: auto !important;
    min-height: 120px;
    resize: vertical;
}

.cc-main select {
    padding-right: 44px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f0f0f' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
    cursor: pointer;
}

.cc-main select[multiple] {
    height: auto !important;
    background-image: none !important;
}

/* Chosen dropdown plugin (step 3 and request a quote): same look as the other fields,
   a centred chevron, a compact search box and list text at the field size. */
.cc-main .chzn-container-single .chzn-single,
.cc-main .chosen-container-single .chosen-single {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 48px !important;
    background-image: none !important;
    text-decoration: none;
    cursor: pointer;
}

.cc-main .chzn-container-single .chzn-single span,
.cc-main .chosen-container-single .chosen-single span {
    display: block;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 24px;
}

.cc-main .chzn-container-single .chzn-default,
.cc-main .chosen-container-single .chosen-default {
    color: #8a8a8a !important;
}

.cc-main .chzn-container-single .chzn-single div,
.cc-main .chosen-container-single .chosen-single div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: auto;
    transform: none;
    background: none;
    border: 0;
}

.cc-main .chzn-container-single .chzn-single div b,
.cc-main .chosen-container-single .chosen-single div b {
    display: block;
    width: 12px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f0f0f' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat center / 12px 8px !important;
    transition: transform 0.2s ease;
}

.cc-main .chzn-container-active.chzn-with-drop .chzn-single div b,
.cc-main .chzn-container-active .chzn-single-with-drop div b,
.cc-main .chosen-container-active.chosen-with-drop .chosen-single div b {
    transform: rotate(180deg);
}

/* Open list */
.cc-main .chzn-container .chzn-drop,
.cc-main .chosen-container .chosen-drop {
    margin-top: 4px;
    box-sizing: border-box;
    background: var(--cc-white);
    border: 1.5px solid #c9c9c9;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.cc-main .chzn-container .chzn-search,
.cc-main .chosen-container .chosen-search {
    position: relative;
    padding: 10px 10px 6px;
}

.cc-main .chzn-container .chzn-search input[type="text"],
.cc-main .chosen-container .chosen-search input[type="text"] {
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 10px 40px 10px 14px !important;
    font-size: 16px !important;
    border: 1.5px solid #c9c9c9 !important;
    border-radius: 8px !important;
    background: var(--cc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23737373' stroke-width='2.2'/%3E%3Cpath d='M16.5 16.5L21 21' stroke='%23737373' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px !important;
}

.cc-main .chzn-container .chzn-search input[type="text"]:focus,
.cc-main .chosen-container .chosen-search input[type="text"]:focus {
    border-color: var(--cc-orange) !important;
    box-shadow: 0 0 0 3px rgba(234, 91, 12, 0.15) !important;
}

.cc-main .chzn-container .chzn-results,
.cc-main .chosen-container .chosen-results {
    max-height: 264px;
    margin: 0;
    padding: 4px 6px 8px;
}

.cc-main .chzn-container .chzn-results li,
.cc-main .chosen-container .chosen-results li {
    padding: 10px 12px;
    font-family: var(--cc-font);
    font-size: 16px;
    line-height: 22px;
    color: var(--cc-ink);
    border-radius: 6px;
}

.cc-main .chzn-container .chzn-results .result-selected,
.cc-main .chosen-container .chosen-results .result-selected {
    font-weight: 500;
}

.cc-main .chzn-container .chzn-results .highlighted,
.cc-main .chosen-container .chosen-results li.highlighted {
    color: var(--cc-white);
    background: var(--cc-orange);
}

.cc-main .chzn-container .chzn-results .no-results,
.cc-main .chosen-container .chosen-results .no-results {
    color: var(--cc-grey-600);
    background: none;
}

.cc-main input::placeholder,
.cc-main textarea::placeholder {
    font-family: var(--cc-font);
    font-weight: 400;
    text-transform: none;
    color: #8a8a8a;
    opacity: 1;
}

.cc-main input:hover,
.cc-main select:hover,
.cc-main textarea:hover {
    border-color: var(--cc-grey-500) !important;
}

.cc-main input:focus,
.cc-main select:focus,
.cc-main textarea:focus,
.cc-main .chzn-container-active .chzn-single,
.cc-main .chosen-container-active .chosen-single {
    border-color: var(--cc-orange) !important;
    box-shadow: 0 0 0 4px rgba(234, 91, 12, 0.15) !important;
    outline: none;
}

.cc-main input[readonly],
.cc-main input[disabled],
.cc-main select[disabled],
.cc-main textarea[readonly],
.cc-main textarea[disabled] {
    color: var(--cc-grey-600) !important;
    background-color: #f4f4f4 !important;
    border-color: #e1e1e1 !important;
    cursor: not-allowed;
}

/* Yii validation errors. */
.cc-main input.error,
.cc-main select.error,
.cc-main textarea.error,
.cc-main .error input,
.cc-main .error select,
.cc-main .error textarea {
    border-color: #d93025 !important;
}

.cc-main .errorMessage,
.cc-main .help-inline.error {
    margin-top: 4px;
    font-size: 14px;
    color: #d93025;
}

.cc-main input[type="radio"],
.cc-main input[type="checkbox"] {
    width: auto !important;
    height: auto;
    accent-color: var(--cc-orange);
}

/* The legacy styles force fixed widths (540px fields, 330px quote cards and dropdowns,
   220-270px floated labels); keep everything on screen on phones. */
@media (max-width: 640px) {
    .cc-main [class*="sideBySide3Blocks"],
    .cc-main .chzn-drop,
    .cc-main .chosen-drop,
    .cc-main form .inline-formgroup > label {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    .cc-main input,
    .cc-main select,
    .cc-main textarea,
    .cc-main .chzn-container,
    .cc-main .chosen-container {
        max-width: 100% !important;
    }
}

/* Wizard buttons */
.cc-main .ecommerce-lrg-btn,
.cc-main .btn-primary,
.cc-main .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    font-family: var(--cc-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    text-shadow: none;
    color: var(--cc-white);
    background: var(--cc-orange);
    background-image: none;
    border: 2px solid var(--cc-orange);
    border-radius: 50px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-main .ecommerce-lrg-btn:hover,
.cc-main .ecommerce-lrg-btn:focus,
.cc-main .btn-primary:hover,
.cc-main .btn-primary:focus,
.cc-main .btn-success:hover,
.cc-main .btn-success:focus {
    color: var(--cc-white);
    background: var(--cc-orange-dark);
    border-color: var(--cc-orange-dark);
}

/* Pressed: the button sinks a little so the click is felt straight away. */
.cc-main .ecommerce-lrg-btn:active,
.cc-main .btn-primary:active,
.cc-main .btn-success:active {
    transform: scale(0.97);
    background: var(--cc-orange-dark);
    border-color: var(--cc-orange-dark);
}

.cc-main .ecommerce-lrg-btn:focus-visible,
.cc-main .btn-primary:focus-visible,
.cc-main .btn-success:focus-visible {
    outline: 3px solid rgba(234, 91, 12, 0.4);
    outline-offset: 2px;
}

/* Processing: set by cellc-brand.js after the form is submitted. */
.cc-main .ecommerce-lrg-btn.is-loading,
.cc-main .btn-primary.is-loading,
.cc-main .btn-success.is-loading {
    gap: 10px;
    pointer-events: none;
    cursor: progress;
    transform: none;
    background: var(--cc-orange-dark);
    border-color: var(--cc-orange-dark);
}

.cc-main .is-loading::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--cc-white);
    border-radius: 50%;
    animation: cc-spin 0.7s linear infinite;
}

@keyframes cc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Secondary button ("Cancel", "Resend OTP", "Back"): outline.
   Padding is repeated here because some views set "a.ecommerce-lrg-btn.alt { padding: 5px }". */
.cc-main .ecommerce-lrg-btn.alt,
.cc-main .ecommerce-lrg-btn.back {
    padding: 12px 32px;
    color: var(--cc-ink);
    background: var(--cc-white);
    border-color: var(--cc-ink);
}

.cc-main .ecommerce-lrg-btn.alt:hover,
.cc-main .ecommerce-lrg-btn.alt:focus,
.cc-main .ecommerce-lrg-btn.back:hover,
.cc-main .ecommerce-lrg-btn.back:focus {
    color: var(--cc-white);
    background: var(--cc-ink);
    border-color: var(--cc-ink);
}

/* Tertiary ("Resend OTP"): looks like a link. */
.cc-main .ecommerce-lrg-btn.alt.no-border {
    padding-left: 8px;
    padding-right: 8px;
    color: var(--cc-orange);
    background: none;
    border-color: transparent;
    text-decoration: underline;
}

.cc-main .ecommerce-lrg-btn.alt.no-border:hover,
.cc-main .ecommerce-lrg-btn.alt.no-border:focus {
    color: var(--cc-orange-dark);
    background: none;
}

.cc-main .ecommerce-lrg-btn.alt.is-loading,
.cc-main .ecommerce-lrg-btn.back.is-loading {
    color: var(--cc-white);
    background: var(--cc-ink);
}

/* Step 2 "checking your device" holding page. */
.cc-pending {
    max-width: 560px;
    margin: 48px auto;
    text-align: center;
}

.cc-main .cc-pending__title {
    margin: 16px 0 8px;
    font-size: 32px;
}

.cc-pending__spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(234, 91, 12, 0.2);
    border-top-color: var(--cc-orange);
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
}

/* Skip link: hidden until focused with the keyboard. */
.cc-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 20px;
    font-family: var(--cc-font);
    font-weight: 500;
    color: var(--cc-white);
    background: var(--cc-orange-dark);
    border-radius: 0 0 10px 10px;
    text-decoration: none;
}

.cc-skip-link:focus {
    top: 0;
    color: var(--cc-white);
}

/* Intro page (apply or cancel): centred, wide buttons that stack on phones. */
.cc-intro {
    max-width: 720px;
    margin: 24px auto 16px;
    text-align: center;
}

.cc-main .cc-intro__title {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
}

.cc-main .cc-intro__lead {
    margin: 0 auto 8px;
    max-width: 560px;
    font-size: 18px;
    color: var(--cc-grey-600);
}

.cc-main .cc-intro .wizard-buttons.form-actions {
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.cc-main .cc-intro .ecommerce-lrg-btn {
    flex: 0 1 300px;
    min-width: 260px;
    min-height: 56px;
    padding: 14px 32px;
    font-size: 18px;
    white-space: nowrap;
}

@media (max-width: 599px) {
    .cc-main .cc-intro .wizard-buttons.form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-main .cc-intro .ecommerce-lrg-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
}

.cc-main .ecommerce-lrg-btn.decline {
    color: var(--cc-ink);
    background: var(--cc-white);
    border-color: var(--cc-ink);
}

.cc-main .ecommerce-lrg-btn.decline:hover,
.cc-main .ecommerce-lrg-btn.decline:focus {
    color: var(--cc-white);
    background: var(--cc-ink);
}

@media (max-width: 767px) {
    .cc-main__inner {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .cc-main .ecommerce-lrg-btn,
    .cc-main #printQuote {
        width: 100%;
    }

    .cc-main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .cc-main img {
        max-width: 100%;
        height: auto;
    }
}

/* ---------------------------------------------------------------- Footer */
/* Values measured from the live www.cellc.co.za footer at 1440px. */

.cc-footer {
    float: none;
    width: auto;
    margin: 0;
    padding: 24px 0 0;
    border: 0;
    background: var(--cc-ink);
    color: var(--cc-white);
    font-family: var(--cc-font-poppins);
    font-size: 16px;
    line-height: 22.4px;
}

.cc-footer h3 {
    margin: 0;
}

.cc-footer__help {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 24px;
    padding: 102px 40px 101px;
    color: #fdfdfd;
    background: #1e1e1e;
    border-radius: 40px;
}

.cc-footer__help-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 15px;
}

.cc-footer__help-icon {
    flex: 0 0 auto;
    width: auto;
    max-width: 63px;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

.cc-footer__help h3 {
    margin-bottom: 8px;
    font-family: var(--cc-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    color: #fdfdfd;
}

.cc-footer__help p {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 22px;
    color: #fdfdfd;
}

.cc-footer__help .cc-tel {
    color: inherit;
    white-space: nowrap;
}

.cc-footer__help-link {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
    color: #f05a1e;
}

.cc-footer__help-link:hover,
.cc-footer__help-link:focus {
    color: #f05a1e;
    text-decoration: underline;
}

.cc-footer__zone {
    padding: 64px 6%;
}

.cc-footer__main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 0;
}

.cc-footer__brand {
    padding-top: 24px;
}

.cc-footer__brand img {
    display: block;
    width: auto;
    height: 51px;
}

.cc-footer__brand p {
    margin: 32px 0 0;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--cc-white);
}

.cc-footer__menu h3 {
    margin: 20px 15px 24px 0;
    padding-bottom: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: var(--cc-white);
    border-bottom: 1px solid var(--cc-grey-500);
}

.cc-footer__menu li {
    padding-bottom: 24px;
}

.cc-footer__menu a {
    display: block;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--cc-white);
}

.cc-footer__menu a:hover,
.cc-footer__menu a:focus {
    color: var(--cc-orange);
}

.cc-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 50px 15px 0;
}

.cc-footer__legal-rows {
    display: flex;
    flex-direction: column;
    gap: 37px;
}

.cc-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
    line-height: 16px;
}

.cc-footer__legal li + li {
    margin-left: 24px;
}

.cc-footer__legal a {
    display: inline-block;
    padding-right: 24px;
    font-family: var(--cc-font-inter);
    font-size: 13px;
    line-height: 16px;
    color: var(--cc-off-white);
    border-right: 1px solid var(--cc-grey-500);
}

.cc-footer__legal li:last-child a {
    border-right: 0;
}

.cc-footer__legal a:hover,
.cc-footer__legal a:focus {
    text-decoration: underline;
}

.cc-footer__social {
    display: flex;
    gap: 34px;
}

/* Same sprite and size as the cellc.co.za footer; the view sets each icon's background-position. */
.cc-footer__social a {
    display: block;
    width: 35px;
    height: 40px;
    background: url("../images/cellc/social-icons.png") no-repeat;
    transition: opacity 0.2s ease;
}

.cc-footer__social a:hover,
.cc-footer__social a:focus {
    opacity: 0.75;
}

.cc-footer__rule {
    height: 0;
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--cc-grey-500);
    opacity: 0.5;
}

.cc-footer__copyright {
    margin: 0;
    padding: 0 15px;
    font-family: var(--cc-font-inter);
    font-size: 13px;
    font-weight: 300;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--cc-white);
}

@media (max-width: 1199px) {
    .cc-footer__main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }

    .cc-footer__brand {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .cc-footer__brand p {
        max-width: 420px;
    }
}

@media (max-width: 1023px) {
    .cc-footer__help {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 40px;
        margin: 0 16px;
        padding: 40px 24px;
        border-radius: 24px;
    }

    .cc-footer__zone {
        padding: 48px 16px;
    }
}

@media (max-width: 599px) {
    .cc-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .cc-footer__menu h3 {
        margin-right: 0;
    }

    .cc-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0 0;
    }

    .cc-footer__legal-rows {
        gap: 16px;
    }

    .cc-footer__legal li + li {
        margin-left: 0;
    }

    .cc-footer__legal {
        gap: 12px 24px;
    }

    .cc-footer__legal a {
        padding-right: 0;
        border-right: 0;
    }

    .cc-footer__social {
        gap: 24px;
    }

    .cc-footer__copyright {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-header,
    .cc-header * {
        transition: none !important;
    }
}
