/**
 * custom-cushions.css
 * Styles for the Custom Cushions page template.
 * – All sizes in px
 * – No font-family declarations (inherits from theme)
 * Brand: Primary #c82231 | Secondary #000000
 * Design: Modern Editorial — crisp light sections, deep dark sections
 *         Light bg → light text accents | Dark bg → dark text accents
 */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
    /* Brand */
    --cc-primary:          #c82231;
    --cc-primary-dark:     #a01a26;
    --cc-primary-mid:      #e03347;
    --cc-primary-glow:     rgba(200, 34, 49, 0.18);
    --cc-primary-subtle:   rgba(200, 34, 49, 0.07);

    /* Neutrals — Light palette */
    --cc-white:            #ffffff;
    --cc-off-white:        #fafafa;
    --cc-light-100:        #f4f4f5;
    --cc-light-200:        #e8e8ea;
    --cc-light-300:        #d1d1d6;
    --cc-light-500:        #a0a0aa;
    --cc-light-700:        #58585e;
    --cc-light-900:        #1c1c22;

    /* Neutrals — Dark palette */
    --cc-dark-50:          #1a1a1f;
    --cc-dark-100:         #141418;
    --cc-dark-200:         #111115;
    --cc-dark-300:         #0d0d10;
    --cc-dark-border:      rgba(255,255,255,0.07);
    --cc-dark-border-mid:  rgba(255,255,255,0.12);
    --cc-dark-border-hi:   rgba(255,255,255,0.18);
    --cc-dark-text-lo:     rgba(255,255,255,0.28);
    --cc-dark-text-mid:    rgba(255,255,255,0.52);
    --cc-dark-text-hi:     rgba(255,255,255,0.78);
    --cc-dark-text-max:    rgba(255,255,255,0.96);

    /* Layout */
    --cc-container:        1200px;
    --cc-radius-sm:        4px;
    --cc-radius:           8px;
    --cc-radius-lg:        14px;
    --cc-radius-xl:        20px;

    /* Motion */
    --cc-ease:             cubic-bezier(0.22, 1, 0.36, 1);
    --cc-transition:       0.22s var(--cc-ease);
    --cc-transition-slow:  0.4s var(--cc-ease);

    /* Shadows */
    --cc-shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
    --cc-shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
    --cc-shadow-md:  0 6px 28px rgba(0,0,0,0.10);
    --cc-shadow-lg:  0 16px 56px rgba(0,0,0,0.14);
    --cc-shadow-red: 0 8px 32px rgba(200,34,49,0.32);
}

/* ─── Base Reset ─────────────────────────────────────────── */
.cc-page *,
.cc-page *::before,
.cc-page *::after { box-sizing: border-box; }

.cc-page {
    color: var(--cc-light-900);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Container ─────────────────────────────────────────── */
.cc-container {
    width: 100%;
    max-width: var(--cc-container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── Shared Typography ─────────────────────────────────── */
.cc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cc-primary);
    margin-bottom: 18px;
}

/* Thin line before eyebrow */
.cc-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--cc-primary);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Light-section eyebrow — keep red, works on white */
/* Dark-section eyebrow — keep red, works on dark */

.cc-section-heading {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--cc-light-900);
    margin: 0 0 20px;
}

/* LIGHT bg: dark text → high contrast ✓ */
.cc-section-heading--on-light { color: var(--cc-light-900); }

/* DARK bg: near-white text → high contrast ✓ */
.cc-section-heading--light,
.cc-section-heading--on-dark  { color: var(--cc-dark-text-max); }

.cc-section-sub {
    font-size: 17px;
    color: var(--cc-light-700);       /* on light bg: mid-grey on white ✓ */
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* DARK bg: soft white on dark ✓ */
.cc-section-sub--light,
.cc-section-sub--on-dark { color: var(--cc-dark-text-mid); }

.cc-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.cc-body-text {
    font-size: 17px;
    color: var(--cc-light-700);
    line-height: 1.78;
}

/* ─── Buttons ───────────────────────────────────────────── */
.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 38px;
    border-radius: var(--cc-radius);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        background   var(--cc-transition),
        color        var(--cc-transition),
        border-color var(--cc-transition),
        box-shadow   var(--cc-transition),
        transform    0.15s var(--cc-ease);
    position: relative;
    overflow: hidden;
}

.cc-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.15s;
}

.cc-btn:hover { transform: translateY(-2px); }
.cc-btn:hover::after { opacity: 1; }
.cc-btn:active { transform: translateY(0); }

/* Primary — Red fill, white text: works on both light & dark ✓ */
.cc-btn--primary {
    background: var(--cc-primary);
    color: #fff;
    border-color: var(--cc-primary);
}
.cc-btn--primary:hover {
    background: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
    box-shadow: var(--cc-shadow-red);
}

/* Outline on DARK bg: red border, red text → on dark ✓ */
.cc-btn--outline {
    background: transparent;
    color: var(--cc-primary);
    border-color: var(--cc-primary);
}
.cc-btn--outline:hover {
    background: var(--cc-primary);
    color: #fff;
    box-shadow: var(--cc-shadow-red);
}

/* Ghost on LIGHT bg: dark border, dark text → on white ✓ */
.cc-btn--ghost {
    background: transparent;
    color: var(--cc-light-900);
    border-color: var(--cc-light-300);
}
.cc-btn--ghost:hover {
    background: var(--cc-light-100);
    border-color: var(--cc-light-500);
}

/* ══════════════════════════════════════════════════════════
   SECTION 1 – HERO  (DARK bg)
   Rule: dark text accents stay very close to black/dark-bg
══════════════════════════════════════════════════════════ */
.cc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cc-dark-200) center/cover no-repeat;
    overflow: hidden;
}

/* Gradient overlay: deep dark left, red tint right */
.cc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(10,10,14,0.94) 0%,
            rgba(10,10,14,0.70) 55%,
            rgba(180,24,38,0.18) 100%
        );
    z-index: 1;
}

/* Decorative vertical red rule */
.cc-hero::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(200,34,49,0.25) 30%,
        rgba(200,34,49,0.25) 70%,
        transparent 100%
    );
    z-index: 1;
    display: none; /* decorative only, enable if desired */
}

.cc-hero__overlay { display: none; }

.cc-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 140px;
}

/* Eyebrow label on dark — red on dark ✓ */
.cc-hero .cc-eyebrow { color: var(--cc-primary-mid); }
.cc-hero .cc-eyebrow::before { background: var(--cc-primary-mid); }

.cc-hero__heading {
    font-size: 78px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.5px;
    color: var(--cc-dark-text-max) !important;  /* near-white on dark ✓ */
    margin: 0 0 26px;
    max-width: 700px;
}

/* Red accent word inside heading */
.cc-hero__heading em {
    font-style: normal;
    color: var(--cc-primary);
}

.cc-hero__sub {
    font-size: 18px;
    line-height: 1.72;
    color: rgba(255,255,255,0.82);  /* bright white on dark ✓ */
    max-width: 500px;
    margin-bottom: 44px;
}

/* Scroll indicator */
.cc-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cc-hero__scroll-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cc-dark-text-lo);   /* very dim white on dark ✓ */
}

.cc-hero__scroll span {
    display: block;
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    position: relative;
}

.cc-hero__scroll span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--cc-primary);
    border-radius: 2px;
    animation: cc-scroll-dot 2s infinite var(--cc-ease);
}

@keyframes cc-scroll-dot {
    0%, 100% { opacity: 1; top: 6px; }
    50%       { opacity: 0.2; top: 20px; }
}

/* ══════════════════════════════════════════════════════════
   SECTION 2 – INTRO  (LIGHT bg)
   Rule: light bg → dark text, mid-grey subtitles
══════════════════════════════════════════════════════════ */
.cc-intro {
    padding: 104px 0;
    background: var(--cc-white);
    border-top: 1px solid var(--cc-light-200);
}

.cc-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}

.cc-intro__text .cc-section-heading {
    text-align: left;
    color: var(--cc-light-900);     /* dark on white ✓ */
}

.cc-intro__text .cc-body-text {
    color: var(--cc-light-700);     /* mid-grey on white ✓ */
}

/* Stats grid */
.cc-intro__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cc-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 26px;
    background: var(--cc-light-100);         /* light grey on white ✓ */
    border-radius: var(--cc-radius-lg);
    border: 1px solid var(--cc-light-200);
    position: relative;
    overflow: hidden;
    transition: border-color var(--cc-transition), box-shadow var(--cc-transition);
}

.cc-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--cc-primary);
    border-radius: var(--cc-radius-sm) var(--cc-radius-sm) 0 0;
}

.cc-stat:hover {
    border-color: var(--cc-light-300);
    box-shadow: var(--cc-shadow-sm);
}

.cc-stat__value {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--cc-primary);        /* red on light grey ✓ */
    line-height: 1;
}

.cc-stat__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cc-light-500);      /* mid-grey on light grey ✓ */
}

/* ══════════════════════════════════════════════════════════
   SECTION 3 – FABRIC & COLOUR  (DARK bg)
   Rule: dark bg → near-white headings, mid-white body
══════════════════════════════════════════════════════════ */
.cc-fabric {
    padding: 104px 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200,34,49,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 60% at 85% 20%, rgba(200,34,49,0.07) 0%, transparent 50%),
        linear-gradient(170deg, #0f0f14 0%, #13101a 40%, #0c0c10 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture on dark */
.cc-fabric::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cc-fabric .cc-section-heading { color: #ffffff; }              /* full white on dark ✓ */
.cc-fabric .cc-section-sub     { color: rgba(255,255,255,0.78); }  /* bright white on dark ✓ */

.cc-fabric__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
}

.cc-fabric__card {
    background: var(--cc-dark-50);              /* slightly lighter dark ✓ */
    padding: 36px 28px;
    border-radius: var(--cc-radius-lg);
    border: 1px solid var(--cc-dark-border-mid);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--cc-transition),
        border-color var(--cc-transition),
        box-shadow var(--cc-transition);
}

.cc-fabric__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--cc-primary);
    opacity: 0;
    transition: opacity var(--cc-transition);
}

.cc-fabric__card:hover {
    transform: translateY(-5px);
    border-color: var(--cc-dark-border-hi);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.cc-fabric__card:hover::before { opacity: 1; }

.cc-fabric__number {
    font-size: 52px;
    font-weight: 800;
    color: rgba(255,255,255,0.05);   /* very dim white on dark — decorative ✓ */
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -2px;
    user-select: none;
}

.cc-fabric__card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;                              /* full white on dark card ✓ */
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.cc-fabric__card p {
    font-size: 15px;
    color: rgba(255,255,255,0.72);               /* bright white body on dark ✓ */
    margin: 0 0 20px;
    line-height: 1.65;
}

.cc-fabric__card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cc-fabric__card ul li {
    font-size: 14px;
    color: rgba(255,255,255,0.68);               /* visible white list items ✓ */
    padding-left: 20px;
    position: relative;
}

.cc-fabric__card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cc-primary);
}

/* Info note at bottom of fabric section */
.cc-fabric__note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cc-dark-border-mid);
    border-left: 3px solid rgba(200,34,49,0.5);
    border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
    padding: 18px 22px;
    color: var(--cc-dark-text-lo);   /* dim white on dark ✓ */
    font-size: 14px;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.cc-fabric__note svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }
.cc-fabric__note p  { margin: 0; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   SECTION 4 – MEASUREMENT DIAGRAM  (LIGHT bg)
   Rule: light bg → dark text, light-grey panels
══════════════════════════════════════════════════════════ */
.cc-measure {
    padding: 104px 0;
    background: var(--cc-off-white);
    border-top: 1px solid var(--cc-light-200);
    border-bottom: 1px solid var(--cc-light-200);
}

.cc-measure .cc-section-heading { color: var(--cc-light-900); }  /* dark on light ✓ */
.cc-measure .cc-section-sub     { color: var(--cc-light-700); }  /* mid-grey on light ✓ */

.cc-measure__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
    margin-bottom: 52px;
}

.cc-measure__diagram {
    background: var(--cc-white);
    border: 1px solid var(--cc-light-200);
    border-radius: var(--cc-radius-xl);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--cc-shadow-sm);
}

.cc-cushion-svg,
.cc-measure__svg-img {
    width: 100%;
    height: auto;
    max-height: 480px;
}

/* Panel: dark on light — use dark panel for contrast ✓ */
.cc-measure__panel {
    background: var(--cc-light-900);            /* dark on light bg ✓ */
    border-radius: var(--cc-radius-xl);
    padding: 36px 32px;
    box-shadow: var(--cc-shadow-lg);
}

.cc-measure__panel h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cc-dark-text-max);             /* near-white inside dark panel ✓ */
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.cc-measure__panel-note {
    font-size: 13px;
    color: var(--cc-dark-text-lo);              /* dim white inside dark panel ✓ */
    margin: 0 0 28px;
}

.cc-measure__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.cc-mfield { display: flex; flex-direction: column; gap: 7px; }

.cc-mfield label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cc-dark-text-lo);              /* dim white label inside dark panel ✓ */
}

.cc-mfield input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--cc-radius);
    font-size: 18px;
    font-weight: 600;
    color: var(--cc-dark-text-max);             /* near-white input text inside dark panel ✓ */
    background: rgba(255,255,255,0.05);
    transition: border-color var(--cc-transition), background var(--cc-transition), box-shadow var(--cc-transition);
    -moz-appearance: textfield;
}

.cc-mfield input::-webkit-outer-spin-button,
.cc-mfield input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cc-mfield input::placeholder { color: rgba(255,255,255,0.18); font-size: 15px; }

.cc-mfield input:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
}

.cc-mfield input:focus {
    outline: none;
    border-color: var(--cc-primary);
    background: rgba(200,34,49,0.08);
    box-shadow: 0 0 0 3px rgba(200,34,49,0.15);
}

.cc-mfield input.cc-input--error {
    border-color: #e05555;
    background: rgba(224,85,85,0.08);
    box-shadow: 0 0 0 3px rgba(224,85,85,0.15);
}

/* Badges */
.cc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0;
}

/* A badge: white on dark panel — white bg, dark text ✓ */
.cc-badge--a { background: var(--cc-dark-text-max); color: var(--cc-light-900); }

/* B badge: mid-white bg on dark — mid-opacity ✓ */
.cc-badge--b { background: rgba(255,255,255,0.18); color: var(--cc-dark-text-hi); }

/* C badge: red on dark ✓ */
.cc-badge--c { background: var(--cc-primary); color: var(--cc-white); }

/* Validation error */
.cc-measure-error {
    display: block;
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(224,85,85,0.10);
    border-left: 3px solid #e05555;
    border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
    color: #ff9090;
    font-size: 13px;
    line-height: 1.5;
}

/* Legend — on light bg */
.cc-measure__legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 36px;
    border-top: 1px solid var(--cc-light-200);
}

.cc-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--cc-light-700);                 /* mid-grey on white ✓ */
    line-height: 1.55;
}

.cc-legend-item strong {
    color: var(--cc-light-900);                 /* dark on white ✓ */
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.cc-legend-item .cc-badge { margin-top: 1px; }

/* ══════════════════════════════════════════════════════════
   SECTION 5 – QUOTE FORM  (DARK bg — Gradient)
   Rule: dark bg → full white text, bright labels
══════════════════════════════════════════════════════════ */
.cc-quote {
    padding: 108px 0;
    /* Rich dark gradient — top-left dark → bottom-right deep red tint */
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%,   rgba(200,34,49,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 0%   100%, rgba(200,34,49,0.14) 0%, transparent 55%),
        linear-gradient(160deg, #0a0a0e 0%, #110d0f 50%, #0d0d12 100%);
    position: relative;
    overflow: hidden;
}

/* No pseudo-element blobs needed — gradient does the work */
.cc-quote::before { display: none; }
.cc-quote::after  { display: none; }

/* Heading: full white — maximum contrast on dark ✓ */
.cc-quote .cc-section-heading {
    color: #ffffff;
}

/* Subtitle: bright white, NOT grey ✓ */
.cc-quote .cc-section-sub {
    color: rgba(255,255,255,0.80);
}

/* Form card: glass-style gradient, no flat grey box */
.cc-quote__form-wrap {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(145deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.03) 50%,
        rgba(200,34,49,0.04)  100%
    );
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--cc-radius-xl);
    padding: 52px 56px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Form sections */
.cc-form-grid { display: block; }

.cc-form-section {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--cc-dark-border);
}

.cc-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Section title: red on dark ✓ */
.cc-form-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cc-primary) !important;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(200,34,49,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(200,34,49,0.18);
}

/* Labels — bright white on dark ✓ (NOT dim/grey) */
.cc-quote .wpcf7-form label,
.cc-quote label,
.form-label {
    display: block;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.88) !important;
    margin-bottom: 8px !important;
}

.cc-quote label .required { color: var(--cc-primary); }
.cc-quote label .optional {
    color: rgba(255,255,255,0.2);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

/* Inputs — white text on dark-bg input ✓ */
.cc-quote .wpcf7-form input[type="text"],
.cc-quote .wpcf7-form input[type="email"],
.cc-quote .wpcf7-form input[type="tel"],
.cc-quote .wpcf7-form input[type="number"],
.cc-quote .wpcf7-form select,
.cc-quote .wpcf7-form textarea,
.cc-quote input[type="text"],
.cc-quote input[type="email"],
.cc-quote input[type="tel"],
.cc-quote input[type="number"],
.cc-quote select,
.cc-quote textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--cc-dark-border-mid);
    border-radius: var(--cc-radius);
    padding: 14px 18px;
    font-size: 15px;
    color: rgba(255,255,255,0.95);              /* full white text on dark input ✓ */
    transition:
        border-color var(--cc-transition),
        background   var(--cc-transition),
        box-shadow   var(--cc-transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cc-quote .wpcf7-form input::placeholder,
.cc-quote input::placeholder {
    color: rgba(255,255,255,0.18);
}

.cc-quote .wpcf7-form input:hover,
.cc-quote .wpcf7-form select:hover,
.cc-quote .wpcf7-form textarea:hover,
.cc-quote input:hover,
.cc-quote select:hover,
.cc-quote textarea:hover {
    border-color: var(--cc-dark-border-hi);
    background: rgba(255,255,255,0.06);
}

.cc-quote .wpcf7-form input:focus,
.cc-quote .wpcf7-form select:focus,
.cc-quote .wpcf7-form textarea:focus,
.cc-quote input:focus,
.cc-quote select:focus,
.cc-quote textarea:focus {
    outline: none;
    border-color: var(--cc-primary);
    background: rgba(200,34,49,0.05);
    box-shadow: 0 0 0 3px rgba(200,34,49,0.14);
}

/* Select arrow */
.cc-quote .wpcf7-form select,
.cc-quote select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.cc-quote .wpcf7-form select option,
.cc-quote select option {
    background: #1a1a1f;
    color: var(--cc-dark-text-hi);
}

/* Textarea */
.cc-quote .wpcf7-form textarea,
.cc-quote textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

/* File upload */
.cc-quote .wpcf7-form input[type="file"],
.cc-quote input[type="file"] {
    background: transparent;
    border: 1.5px dashed rgba(255,255,255,0.10);
    border-radius: var(--cc-radius);
    padding: 22px 18px;
    color: var(--cc-dark-text-lo);              /* dim white on dark ✓ */
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--cc-transition), background var(--cc-transition);
}

.cc-quote .wpcf7-form input[type="file"]:hover,
.cc-quote input[type="file"]:hover {
    border-color: rgba(200,34,49,0.45);
    background: rgba(200,34,49,0.04);
    color: var(--cc-dark-text-mid);
}

/* Submit button */
.cc-quote .wpcf7-form input[type="submit"],
.cc-quote .wpcf7-form button[type="submit"] {
    background: var(--cc-primary);
    color: var(--cc-white);                      /* white on red ✓ */
    border: none;
    border-radius: var(--cc-radius);
    padding: 16px 56px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background  var(--cc-transition),
        box-shadow  var(--cc-transition),
        transform   0.15s var(--cc-ease);
    width: auto;
}

.cc-quote .wpcf7-form input[type="submit"]:hover,
.cc-quote .wpcf7-form button[type="submit"]:hover {
    background: var(--cc-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-red);
}

/* Privacy note — dim white on dark ✓ */
.cc-privacy-note {
    font-size: 13px;
    color: var(--cc-dark-text-lo);
    margin-bottom: 20px;
    line-height: 1.65;
}

.cc-privacy-note a {
    color: var(--cc-dark-text-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--cc-transition);
}

.cc-privacy-note a:hover { color: var(--cc-dark-text-hi); }

/* CF7 validation */
.cc-quote .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff7272;
    margin-top: 6px;
    display: block;
    padding-left: 2px;
}

.cc-quote .wpcf7-response-output {
    padding: 16px 20px;
    border-radius: var(--cc-radius);
    font-size: 14px;
    margin-top: 16px !important;
    border: none !important;
}

.cc-quote .wpcf7-mail-sent-ok {
    background: rgba(39,174,96,0.10);
    border-left: 3px solid #27ae60 !important;
    color: #6fcf97;
}

.cc-quote .wpcf7-validation-errors,
.cc-quote .wpcf7-mail-sent-ng {
    background: rgba(200,34,49,0.10);
    border-left: 3px solid var(--cc-primary) !important;
    color: #ff8a8a;
}

/* Placeholder box (no CF7 ID set) */
.cc-quote__placeholder {
    text-align: center;
    padding: 56px;
    color: var(--cc-dark-text-lo);
    border: 1.5px dashed rgba(255,255,255,0.08);
    border-radius: var(--cc-radius-lg);
}

.cc-quote__placeholder code {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    background: rgba(255,255,255,0.04);
    padding: 12px 20px;
    border-radius: var(--cc-radius);
    color: var(--cc-dark-text-mid);
}

/* Bootstrap gutter override inside dark form */
.cc-quote .row { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════════════════ */
.cc-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--cc-ease), transform 0.6s var(--cc-ease);
}

.cc-animate.is-visible { opacity: 1; transform: none; }
.cc-animate.is-visible select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--cc-radius);
    font-size: 18px;
    font-weight: 600;
    color: var(--cc-dark-text-max);
    background: rgba(255, 255, 255, 5%);
    transition: border-color var(--cc-transition), background var(--cc-transition), box-shadow var(--cc-transition);
    margin-bottom: 15px;
}
.cc-animate.is-visible select option {
        color: var(--cc-dark-text-max);
    background: rgba(255, 255, 255, 5%);
}
#cov-type {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #1f2029;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
}

#cov-type option {
    background-color: #1f2029;
    color: #fff;
}
.cc-animate--delay-1 { transition-delay: 0.08s; }
.cc-animate--delay-2 { transition-delay: 0.18s; }
.cc-animate--delay-3 { transition-delay: 0.28s; }

/* Button states */
@keyframes cc-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(3px); }
}

.cc-btn--shake   { animation: cc-shake 0.4s var(--cc-ease); }
.cc-btn--applied {
    background:   #1c8a3e !important;
    border-color: #1c8a3e !important;
    color:        #fff    !important;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cc-intro__inner        { grid-template-columns: 1fr; gap: 52px; }
    .cc-fabric__grid        { grid-template-columns: 1fr 1fr; }
    .cc-measure__layout     { grid-template-columns: 1fr; }
    .cc-measure__legend     { grid-template-columns: 1fr 1fr; }
    .cc-quote__form-wrap    { padding: 44px 36px; }
}

@media (max-width: 768px) {
    .cc-hero__heading       { font-size: 42px; letter-spacing: -0.5px; }
    .cc-section-heading     { font-size: 32px; }
    .cc-fabric__grid        { grid-template-columns: 1fr; }
    .cc-measure__legend     { grid-template-columns: 1fr; }
    .cc-quote__form-wrap    { padding: 32px 24px; }
    .cc-intro__stats        { grid-template-columns: 1fr 1fr; }
    .cc-form-section        { margin-bottom: 32px; padding-bottom: 32px; }
    .cc-hero__inner         { padding-top: 110px; padding-bottom: 110px; }
}

@media (max-width: 480px) {
    .cc-container           { padding: 0 18px; }
    .cc-intro__stats        { grid-template-columns: 1fr; }
    .cc-hero                { min-height: 90vh; }
    .cc-hero__heading       { font-size: 34px; }
    .cc-quote__form-wrap    { padding: 28px 18px; }
    .cc-stat__value         { font-size: 36px; }
}

/* Colors */
.cc-fabric {
  background: #fff;
  border-radius: 20px;
  padding: 48px 48px 52px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
 
/* ── Heading row ───────────────────────────────────────────── */
.cc-fabric__colours-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ede8e1;
}
.cc-fabric__colours-heading h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #1a1614;
  line-height: 1.2;
}
.cc-fabric__count {
  font-size: 13px;
  font-weight: 500;
  color: #9b8e83;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
 
/* ── Swatch grid ───────────────────────────────────────────── */
.cc-colour__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px 16px;
}
 
/* ── Individual swatch ─────────────────────────────────────── */
.cc-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
 
.cc-swatch__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.cc-swatch:hover .cc-swatch__img-wrap {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08);
  outline-color: #1a1614;
}
.cc-swatch.is-selected .cc-swatch__img-wrap {
  outline-color: #c8601a;
  outline-width: 3px;
}
.cc-swatch.is-selected .cc-swatch__label {
  color: #c8601a;
  font-weight: 600;
}
.cc-swatch__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.cc-swatch:hover .cc-swatch__img-wrap img { transform: scale(1.06); }
 
/* Label — 14px, allows wrapping */
.cc-swatch__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a3f38;
  text-align: center;
  line-height: 18px;
  max-width: 100%;
  word-break: break-word;
  transition: color 0.2s ease;
}
 
/* ── DEMO: coloured blocks stand-in for real images ─────────── */
.demo { background: var(--c);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0,rgba(255,255,255,0.06) 1px,transparent 1px,transparent 8px),
    repeating-linear-gradient(-45deg,rgba(255,255,255,0.06) 0,rgba(255,255,255,0.06) 1px,transparent 1px,transparent 8px);
}
 
@media (max-width: 600px) {
  .cc-fabric { padding: 28px 20px 32px; }
  .cc-colour__swatches { grid-template-columns: repeat(auto-fill, minmax(75px,1fr)); gap: 16px 12px; }
  .cc-swatch__label { font-size: 12px; line-height: 16px; }
}

/* ── Colour Apply Button ─────────────────────────────── */
.cc-colour__apply-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ede8e1;
}

.cc-colour__selected-preview {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #4a3f38;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-colour__selected-preview strong {
  color: #1a1614;
  font-weight: 600;
}

/* ============================================================
   CUSHION TYPES & SIZES  —  .cc-dims  (v2)
   Drop-in replacement for custom-cushions-dims.css
   ============================================================ */

/* ── Fonts (add to <head> instead if you prefer) ────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Section ────────────────────────────────────────────────── */
.cc-dims {
    padding: 100px 0;
    background: #f7f4ef;
}

/* ── Section heading override ───────────────────────────────── */
.cc-dims .cc-section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 46px;
    font-weight: 700;
    color: #1a1614;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.cc-dims .cc-section-sub {
    font-size: 18px;
    color: #7a6d62;
    line-height: 1.75;
}

/* ── Stacked grid ───────────────────────────────────────────── */
.cc-dims__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 56px;
}

/* ── Card ───────────────────────────────────────────────────── */
.cc-dims__card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.32s ease, transform 0.32s ease;
    position: relative;
}

/* Left accent stripe — the signature visual element */
.cc-dims__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--cc-accent);
    z-index: 3;
    pointer-events: none;
}

.cc-dims__card:hover {
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}

/* ── Per-type accent variables (apply via modifier class) ───── */
.cc-dims__card--seat  {
    --cc-accent:      #c8601a;
    --cc-accent-bg:   #fef3e8;
    --cc-accent-text: #7c3200;
}
.cc-dims__card--sun   {
    --cc-accent:      #1a7a8a;
    --cc-accent-bg:   #e4f3f6;
    --cc-accent-text: #0d4a55;
}
.cc-dims__card--sofa  {
    --cc-accent:      #5b3ea6;
    --cc-accent-bg:   #f0ecfc;
    --cc-accent-text: #2e1870;
}

/* ── Image / placeholder column ─────────────────────────────── */
.cc-dims__img-wrap {
    position: relative;
    background: #edeae4;
    border-right: 1px solid #e8e2d9;
    overflow: hidden;
    min-height: 240px;
}

/* Fabric-weave CSS pattern shown when no image is present */
.cc-dims__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
             45deg,
            rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0.04) 1px,
            transparent 1px, transparent 10px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0.04) 1px,
            transparent 1px, transparent 10px
        );
    z-index: 0;
}

/* Large ordinal watermark */
.cc-dims__ordinal {
    position: absolute;
    bottom: -14px;
    right: 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.07);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.cc-dims__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.cc-dims__card:hover .cc-dims__img-wrap img {
    transform: scale(1.05);
}

/* ── Right column ───────────────────────────────────────────── */
.cc-dims__card-right {
    display: flex;
    flex-direction: column;
}

/* ── Card body ──────────────────────────────────────────────── */
.cc-dims__card-body {
    padding: 28px 28px 20px;
    flex: 1;
}

/* Eyebrow row: type label + badge */
.cc-dims__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cc-dims__type-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--cc-accent);
}

.cc-dims__badge {
    font-size: 14px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--cc-accent-bg);
    color: var(--cc-accent-text);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cc-dims__card h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1614;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cc-dims__card-body > p {
    font-size: 16px;
    color: #7a6d62;
    line-height: 1.72;
    margin: 0;
}

/* ── Table wrap ─────────────────────────────────────────────── */
.cc-dims__table-wrap {
    margin-top: auto;
    border-top: 1px solid #ede8e1;
}

.cc-dims__table {
    width: 100%;
    border-collapse: collapse;
}

.cc-dims__table thead tr {
    background: var(--cc-accent-bg);
}

.cc-dims__table th {
    padding: 10px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--cc-accent-text);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-bottom: 1px solid #ede8e1;
}

.cc-dims__table td {
    padding: 11px 20px;
    font-size: 14px;
    color: #4a3f38;
    border-bottom: 1px solid #f5f0ea;
    font-variant-numeric: tabular-nums;
}

.cc-dims__table tbody tr:last-child td {
    border-bottom: none;
}

/* Size label cell: bold + accent colour */
.cc-dims__table td:first-child {
    font-weight: 600;
    color: var(--cc-accent);
}

/* ── Footer note ────────────────────────────────────────────── */
.cc-dims__note {
    font-size: 16px;
    color: #9b8e83;
    font-style: italic;
    line-height: 1.6;
    padding: 10px 20px 12px;
    margin: 0;
    border-top: 1px solid #ede8e1;
    background: #faf8f5;
}

/* ── Responsive: tablet ─────────────────────────────────────── */
@media (max-width: 860px) {
    .cc-dims__card {
        grid-template-columns: 200px 1fr;
    }
}

/* ── Responsive: mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
    .cc-dims {
        padding: 64px 0;
    }

    .cc-dims__grid {
        gap: 16px;
        margin-top: 40px;
    }

    .cc-dims__card {
        grid-template-columns: 1fr;
    }

    .cc-dims__img-wrap {
        min-height: 170px;
        border-right: none;
        border-bottom: 1px solid #e8e2d9;
    }

    .cc-dims__ordinal {
        font-size: 5.5rem;
    }

    .cc-dims__card-body {
        padding: 20px 18px 14px;
    }

    .cc-dims__table th,
    .cc-dims__table td {
        padding: 9px 14px;
    }

    .cc-dims__note {
        padding: 9px 14px;
    }
}