/* ═══════════════════════════════════════════════════════════════════════════
   HM CONTENT CARDS v1.0.0
   3 card types: Service, Team Member, Info/About
   2 colour modes: Light (white card / dark page) · Dark (dark card / light page)
   Popup enquiry modal styled to match TTM card-back form
═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables & base ────────────────────────────────────────────────────── */
.hmcc-card {
    /* Defaults — Light mode */
    --hmcc-accent:          #ffc701;
    --hmcc-font:            'Oswald', sans-serif;
    --hmcc-card-bg:         #ffffff;
    --hmcc-card-border:     #e8e8e8;
    --hmcc-title-color:     #111111;
    --hmcc-text-color:      #555555;
    --hmcc-label-color:     #888888;
    --hmcc-icon-bg:         #f5f5f5;
    --hmcc-icon-color:      #111111;
    --hmcc-divider:         #eeeeee;
    --hmcc-badge-bg:        var(--hmcc-accent);
    --hmcc-badge-text:      #111111;
    --hmcc-contact-color:   #777777;
    --hmcc-highlight-bg:    #f9f9f9;

    font-family: var(--hmcc-font);
    background:  var(--hmcc-card-bg);
    border:      2px solid var(--hmcc-card-border);
    border-radius: 12px;
    overflow:    hidden;
    position:    relative;
    width:       100%;
    box-sizing:  border-box;
    transition:  transform 0.25s ease, box-shadow 0.25s ease;
}

/* Shadow modifier */
.hmcc-card--shadow { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.hmcc-card--shadow:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.13); }

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════════════════════ */
.hmcc-card--dark {
    --hmcc-card-bg:       #1a1a1a;
    --hmcc-card-border:   #252525;
    --hmcc-title-color:   #ffffff;
    --hmcc-text-color:    #aaaaaa;
    --hmcc-label-color:   #666666;
    --hmcc-icon-bg:       #252525;
    --hmcc-icon-color:    var(--hmcc-accent);
    --hmcc-divider:       #2a2a2a;
    --hmcc-badge-bg:      #252525;
    --hmcc-badge-text:    var(--hmcc-accent);
    --hmcc-contact-color: #888888;
    --hmcc-highlight-bg:  #111111;
}
.hmcc-card--dark.hmcc-card--shadow { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.hmcc-card--dark.hmcc-card--shadow:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.6); }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED ELEMENTS
══════════════════════════════════════════════════════════════════════════ */

/* Badge */
.hmcc-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--hmcc-badge-bg); color: var(--hmcc-badge-text) !important;
    font-family: var(--hmcc-font) !important;
    font-size: 9px !important; font-weight: 700 !important;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px; white-space: nowrap; line-height: 1.4;
}

/* Title */
.hmcc-card-title {
    font-family: var(--hmcc-font) !important;
    font-size: 20px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--hmcc-title-color) !important;
    margin: 0 0 10px !important; padding: 0 !important; line-height: 1.2;
}

/* Body text */
.hmcc-card-desc {
    font-family: var(--hmcc-font);
    font-size: 14px !important; color: var(--hmcc-text-color) !important;
    line-height: 1.7; margin: 0 !important;
}

/* Button — matches TTM enquire button */
.hmcc-btn-wrap { margin-top: 18px; }

.hmcc-btn--popup {
    display: inline-flex !important;
    align-items: center; gap: 8px;
    padding: 11px 22px !important;
    background: var(--hmcc-accent) !important;
    background-color: #ffc701 !important;
    color: #111111 !important;
    font-family: var(--hmcc-font) !important;
    font-size: 12px !important; font-weight: 700 !important;
    letter-spacing: 1.5px; text-transform: uppercase;
    border-radius: 7px; border: none !important;
    cursor: pointer; text-decoration: none !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap; line-height: 1;
    box-shadow: none !important;
}
.hmcc-btn--popup:hover {
    background: #ffd740 !important; background-color: #ffd740 !important;
    color: #111 !important; transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,199,1,0.4) !important;
}
.hmcc-btn--popup svg { transition: transform 0.2s; flex-shrink: 0; stroke: currentColor; }
.hmcc-btn--popup:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE CARD
══════════════════════════════════════════════════════════════════════════ */
.hmcc-card--service {
    padding: 32px 28px 28px;
    border-left: 4px solid var(--hmcc-accent);
}

.hmcc-service-icon-wrap {
    width: 52px; height: 52px;
    background: var(--hmcc-icon-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; flex-shrink: 0;
    transition: background 0.25s;
}
.hmcc-card--service:hover .hmcc-service-icon-wrap { background: var(--hmcc-accent); }

.hmcc-service-icon-wrap i,
.hmcc-service-icon-wrap svg {
    font-size: 22px !important;
    color: var(--hmcc-icon-color) !important;
    stroke: var(--hmcc-icon-color);
    width: 22px; height: 22px;
    transition: color 0.25s;
}
.hmcc-card--service:hover .hmcc-service-icon-wrap i,
.hmcc-card--service:hover .hmcc-service-icon-wrap svg {
    color: #111 !important; stroke: #111;
}

/* ══════════════════════════════════════════════════════════════════════════
   TEAM MEMBER CARD
══════════════════════════════════════════════════════════════════════════ */
.hmcc-card--team { display: flex; flex-direction: column; }

.hmcc-team-photo {
    overflow: hidden; flex-shrink: 0;
    background: var(--hmcc-icon-bg);
    display: flex; align-items: center; justify-content: center;
}
.hmcc-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmcc-team-photo--placeholder { color: var(--hmcc-label-color); }

/* Circle — centred above content */
.hmcc-team-photo--circle {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid var(--hmcc-accent);
    margin: 28px auto 0;
}
/* Square */
.hmcc-team-photo--square { width: 100%; aspect-ratio: 1 / 1; }
/* Landscape */
.hmcc-team-photo--landscape { width: 100%; aspect-ratio: 16 / 9; }

.hmcc-team-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }

/* Centre body text when photo is circle */
.hmcc-team-photo--circle + .hmcc-team-body { text-align: center; }
.hmcc-team-photo--circle + .hmcc-team-body .hmcc-team-contact { align-items: center; }
.hmcc-team-photo--circle + .hmcc-team-body .hmcc-btn-wrap { display: flex; justify-content: center; }

.hmcc-team-name { font-size: 18px !important; margin-bottom: 4px !important; }

.hmcc-team-role {
    font-family: var(--hmcc-font) !important;
    font-size: 10px !important; font-weight: 700 !important;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--hmcc-accent) !important; margin-bottom: 12px;
}

.hmcc-team-bio { font-size: 13px !important; line-height: 1.6 !important; margin-bottom: 14px !important; }

.hmcc-team-contact {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid var(--hmcc-divider);
}

.hmcc-team-contact-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--hmcc-font) !important;
    font-size: 12px !important; color: var(--hmcc-contact-color) !important;
    text-decoration: none !important; letter-spacing: 0.3px; transition: color 0.2s;
}
.hmcc-team-contact-item:hover { color: var(--hmcc-accent) !important; }
.hmcc-team-contact-item svg { stroke: currentColor; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   INFO / ABOUT CARD
══════════════════════════════════════════════════════════════════════════ */
.hmcc-card--info { overflow: hidden; }

.hmcc-info-image { position: relative; width: 100%; overflow: hidden; background: #111; }
.hmcc-info-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform 0.4s ease;
}
.hmcc-card--info:hover .hmcc-info-image img { transform: scale(1.04); }

.hmcc-info-body { padding: 24px 26px 26px; }

.hmcc-info-badge {
    display: inline-block;
    font-family: var(--hmcc-font) !important;
    font-size: 9px !important; font-weight: 700 !important;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--hmcc-accent) !important;
    border-bottom: 2px solid var(--hmcc-accent);
    padding-bottom: 3px; margin-bottom: 10px;
}

.hmcc-info-title { font-size: 20px !important; margin-bottom: 14px !important; }

.hmcc-info-highlight {
    font-family: var(--hmcc-font) !important;
    font-size: 17px !important; font-weight: 700 !important;
    color: var(--hmcc-accent) !important;
    background: var(--hmcc-highlight-bg);
    border-left: 4px solid var(--hmcc-accent);
    padding: 12px 16px; margin-bottom: 16px;
    border-radius: 0 6px 6px 0; line-height: 1.4; letter-spacing: 0.3px;
}

.hmcc-info-content {
    font-family: var(--hmcc-font);
    font-size: 14px; color: var(--hmcc-text-color) !important; line-height: 1.75;
}
.hmcc-info-content strong { color: var(--hmcc-title-color) !important; font-weight: 700; }
.hmcc-info-content p { margin: 0 0 10px !important; }
.hmcc-info-content ul { padding-left: 0 !important; list-style: none !important; margin: 10px 0 !important; }
.hmcc-info-content ul li { padding-left: 18px !important; position: relative; margin-bottom: 6px; color: var(--hmcc-text-color) !important; }
.hmcc-info-content ul li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px; background: var(--hmcc-accent); border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════════════════
   POPUP MODAL
   Styled to match the TTM card-back enquiry form:
   dark background, yellow accent, same input styling, same button
══════════════════════════════════════════════════════════════════════════ */

/* Backdrop */
.hmcc-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.hmcc-modal[hidden] { display: none; }

.hmcc-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
    animation: hmcc-fade-in 0.2s ease;
}

/* Modal box */
.hmcc-modal__box {
    position: relative; z-index: 1;
    width: 100%; max-width: 540px;
    max-height: 90dvh;
    background: #0d0d0d;
    border-radius: 16px;
    border: 2px solid #252525;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: hmcc-slide-up 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes hmcc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hmcc-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Header — yellow, like TTM card header */
.hmcc-modal__header {
    background: #ffc701;
    padding: 18px 22px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    flex-shrink: 0;
}

.hmcc-modal__title-wrap { flex: 1; min-width: 0; }

.hmcc-modal__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 9px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-bottom: 3px;
}

.hmcc-modal__title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 20px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #111111 !important;
    margin: 0 !important; padding: 0 !important;
    line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hmcc-modal__close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(0,0,0,0.12); border: none; border-radius: 6px;
    color: rgba(0,0,0,0.5); cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.hmcc-modal__close:hover { background: rgba(0,0,0,0.22); color: #111; }
.hmcc-modal__close svg { stroke: currentColor; }

/* Body — scrollable */
.hmcc-modal__body {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 22px 0;
}

/* Section title inside modal — matches TTM add-form section h3 */
.hmcc-modal__section { margin-bottom: 4px; }

.hmcc-modal__section-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: 2px; text-transform: uppercase;
    color: #888888 !important;
    display: inline-flex; align-items: center; gap: 7px;
    margin: 0 0 16px !important; padding-bottom: 8px !important;
    border-bottom: 2px solid #ffc701 !important;
}
.hmcc-modal__section-title svg { stroke: #ffc701; flex-shrink: 0; }

/* Grid layout for fields */
.hmcc-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Field */
.hmcc-modal__field {
    display: flex; flex-direction: column; gap: 5px;
}
.hmcc-modal__field--full { grid-column: 1 / -1; }

.hmcc-modal__field label {
    font-family: 'Oswald', sans-serif !important;
    font-size: 10px !important; font-weight: 700 !important;
    letter-spacing: 1px; text-transform: uppercase;
    color: #888888 !important;
    margin: 0 !important; padding: 0 !important;
}

/* Inputs — identical to TTM card-back form */
.hmcc-modal__field input[type="text"],
.hmcc-modal__field input[type="email"],
.hmcc-modal__field input[type="tel"],
.hmcc-modal__field textarea {
    width: 100%; box-sizing: border-box;
    background: #1a1a1a !important; background-color: #1a1a1a !important;
    border: 1px solid #2e2e2e !important;
    border-radius: 7px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    padding: 11px 13px !important;
    transition: border-color 0.2s;
    box-shadow: none !important; outline: none !important;
}
.hmcc-modal__field input::placeholder,
.hmcc-modal__field textarea::placeholder {
    color: #666666 !important;
    -webkit-text-fill-color: #666666 !important;
    opacity: 1 !important;
}
.hmcc-modal__field input:focus,
.hmcc-modal__field textarea:focus {
    border-color: #ffc701 !important;
    background: #212121 !important;
}
.hmcc-modal__field input:-webkit-autofill,
.hmcc-modal__field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
.hmcc-modal__field textarea { resize: none; height: 80px; }

/* Error state */
.hmcc-modal__field input.hmcc-input-error,
.hmcc-modal__field textarea.hmcc-input-error {
    border-color: #e55 !important;
    box-shadow: 0 0 0 2px rgba(229,85,85,0.15) !important;
}

/* Actions + submit */
.hmcc-modal__actions {
    padding: 16px 22px 18px;
    flex-shrink: 0;
}

/* Submit — exact match to TTM enquire now button */
.hmcc-modal__submit {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px !important;
    background: #ffc701 !important; background-color: #ffc701 !important;
    color: #111111 !important;
    border: none !important; border-radius: 8px;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important; font-weight: 700 !important;
    letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, letter-spacing 0.2s;
    min-height: 50px;
    box-shadow: none !important;
}
.hmcc-modal__submit:hover { background: #ffd740 !important; letter-spacing: 2.5px; }
.hmcc-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Feedback bar */
.hmcc-modal__feedback {
    margin: 0 22px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px; border-radius: 6px;
    min-height: 0; transition: all 0.25s;
    flex-shrink: 0;
}
.hmcc-modal__feedback.hmcc-success {
    background: rgba(93,186,111,0.12);
    border: 1px solid rgba(93,186,111,0.35);
    color: #6fcf80 !important;
    padding: 12px 16px;
}
.hmcc-modal__feedback.hmcc-error {
    background: rgba(229,85,85,0.1);
    border: 1px solid rgba(229,85,85,0.3);
    color: #ff7070 !important;
    padding: 12px 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media ( max-width: 640px ) {
    /* Cards */
    .hmcc-card--service { padding-left: 20px; padding-right: 20px; }
    .hmcc-info-body, .hmcc-team-body { padding: 18px 18px 20px; }
    .hmcc-card--shadow:hover { transform: none; }

    /* Modal — sheet up from bottom on mobile */
    .hmcc-modal {
        align-items: flex-end;
        padding: 0;
    }
    .hmcc-modal__box {
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        max-height: 90dvh;
        animation: hmcc-sheet-up 0.32s cubic-bezier(0.34,1.2,0.64,1);
    }
    @keyframes hmcc-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .hmcc-modal__grid {
        grid-template-columns: 1fr;
    }
    .hmcc-modal__field input[type="text"],
    .hmcc-modal__field input[type="email"],
    .hmcc-modal__field input[type="tel"],
    .hmcc-modal__field textarea {
        font-size: 16px !important; /* prevents iOS zoom */
    }
    .hmcc-modal__title { font-size: 17px !important; }
}

/* Shake on validation error */
@keyframes hmcc-shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-6px); }
    40%     { transform: translateX(6px); }
    60%     { transform: translateX(-4px); }
    80%     { transform: translateX(4px); }
}
.hmcc-shake { animation: hmcc-shake 0.42s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS STEPS WIDGET
   Matches the "Four Steps. Zero Hassle." section from the JBL sell page.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared header (used by both Steps and Condition widgets) ────────────── */
.hmcc-steps-header {
    margin-bottom: 2.5rem;
}

.hmcc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.hmcc-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    flex-shrink: 0;
}

.hmcc-steps-heading {
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(1.8rem, 4vw, 2.75rem) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0 0 1rem !important;
    padding: 0 !important;
}

.hmcc-steps-sub {
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 !important;
    max-width: 640px;
}

/* Light mode header */
.hmcc-steps-widget--light .hmcc-eyebrow,
.hmcc-condition-widget--light .hmcc-eyebrow {
    color: var(--hmcc-accent) !important;
}
.hmcc-steps-widget--light .hmcc-eyebrow::before,
.hmcc-condition-widget--light .hmcc-eyebrow::before {
    background: var(--hmcc-accent);
}
.hmcc-steps-widget--light .hmcc-steps-heading,
.hmcc-condition-widget--light .hmcc-steps-heading {
    color: #111111;
}
.hmcc-steps-widget--light .hmcc-steps-sub,
.hmcc-condition-widget--light .hmcc-steps-sub {
    color: #666666;
}

/* Dark mode header */
.hmcc-steps-widget--dark .hmcc-eyebrow,
.hmcc-condition-widget--dark .hmcc-eyebrow {
    color: var(--hmcc-accent) !important;
}
.hmcc-steps-widget--dark .hmcc-eyebrow::before,
.hmcc-condition-widget--dark .hmcc-eyebrow::before {
    background: var(--hmcc-accent);
}
.hmcc-steps-widget--dark .hmcc-steps-heading,
.hmcc-condition-widget--dark .hmcc-steps-heading {
    color: #f2f0eb;
}
.hmcc-steps-widget--dark .hmcc-steps-sub,
.hmcc-condition-widget--dark .hmcc-steps-sub {
    color: #9a9793;
}

/* ── Steps Grid ──────────────────────────────────────────────────────────── */
.hmcc-steps-grid {
    display: grid;
    grid-template-columns: repeat( var(--hmcc-step-cols, 4), 1fr );
    gap: 1px;
    border-radius: 6px;
    overflow: hidden;
}

/* Light mode grid */
.hmcc-steps-widget--light .hmcc-steps-grid {
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}
/* Dark mode grid */
.hmcc-steps-widget--dark .hmcc-steps-grid {
    background: #2e3133;
    border: 1px solid #2e3133;
}

/* ── Individual step ─────────────────────────────────────────────────────── */
.hmcc-step {
    padding: 2rem 1.75rem;
    position: relative;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
}

/* Light mode step */
.hmcc-steps-widget--light .hmcc-step {
    background: #ffffff;
}
.hmcc-steps-widget--light .hmcc-step:hover {
    background: #f9f9f9;
}

/* Dark mode step */
.hmcc-steps-widget--dark .hmcc-step {
    background: #1e2022;
}
.hmcc-steps-widget--dark .hmcc-step:hover {
    background: #232527;
}

/* Optional icon */
.hmcc-step__icon {
    margin-bottom: 10px;
}
.hmcc-step__icon i,
.hmcc-step__icon svg {
    font-size: 22px !important;
    width: 22px; height: 22px;
    color: var(--hmcc-accent) !important;
    stroke: var(--hmcc-accent);
}

/* Step number — large ghost number */
.hmcc-step__num {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.hmcc-steps-widget--light .hmcc-step__num {
    color: #d8d8d8;
}
.hmcc-steps-widget--light .hmcc-step:hover .hmcc-step__num,
.hmcc-steps-widget--light .hmcc-step--active .hmcc-step__num {
    color: #c47e0a;
}
.hmcc-steps-widget--dark .hmcc-step__num {
    color: #2e3133;
}
.hmcc-steps-widget--dark .hmcc-step:hover .hmcc-step__num,
.hmcc-steps-widget--dark .hmcc-step--active .hmcc-step__num {
    color: #c47e0a;
}

/* Active/highlighted step — always shows amber number */
.hmcc-step--active .hmcc-step__num {
    color: var(--hmcc-accent) !important;
}

/* Step title */
.hmcc-step__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}
.hmcc-steps-widget--light .hmcc-step__title { color: #111111; }
.hmcc-steps-widget--dark  .hmcc-step__title { color: #f2f0eb; }

/* Step description */
.hmcc-step__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    margin: 0 !important;
}
.hmcc-steps-widget--light .hmcc-step__desc { color: #666666; }
.hmcc-steps-widget--dark  .hmcc-step__desc { color: #9a9793; }

/* Step badge — amber pill at bottom */
.hmcc-step__badge {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    background: rgba(245,166,35,0.12);
    color: var(--hmcc-accent);
    border-radius: 3px;
    align-self: flex-start;
}

/* Footer (optional CTA button) */
.hmcc-steps-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONDITION CARDS WIDGET
   Matches the "We Buy Machines In Any Condition" section.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Grid ────────────────────────────────────────────────────────────────── */
.hmcc-condition-grid {
    display: grid;
    grid-template-columns: repeat( var(--hmcc-cond-cols, 2), 1fr );
    gap: 1.25rem;
    margin-top: 0;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.hmcc-condition-card {
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.2s;
}

/* Light mode card */
.hmcc-condition-widget--light .hmcc-condition-card {
    border: 2px solid #e0e0e0;
    background: #ffffff;
}
.hmcc-condition-widget--light .hmcc-condition-card--featured {
    border-color: var(--hmcc-accent);
    background: rgba(245,166,35,0.04);
}

/* Dark mode card */
.hmcc-condition-widget--dark .hmcc-condition-card {
    border: 1px solid #2e3133;
    background: transparent;
}
.hmcc-condition-widget--dark .hmcc-condition-card--featured {
    border-color: var(--hmcc-accent);
    background: rgba(245,166,35,0.04);
}

/* Card label */
.hmcc-condition-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--hmcc-accent);
}
.hmcc-condition-widget--light .hmcc-condition-card:not(.hmcc-condition-card--featured) .hmcc-condition-label {
    color: #888888;
}
.hmcc-condition-widget--dark .hmcc-condition-card:not(.hmcc-condition-card--featured) .hmcc-condition-label {
    color: #9a9793;
}

/* Card title */
.hmcc-condition-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
.hmcc-condition-widget--light .hmcc-condition-title { color: #111111; }
.hmcc-condition-widget--dark  .hmcc-condition-title { color: #f2f0eb; }

/* List items */
.hmcc-condition-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hmcc-condition-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    padding-left: 0 !important;
    margin: 0 !important;
}
.hmcc-condition-list li::before {
    content: '→';
    color: var(--hmcc-accent);
    flex-shrink: 0;
    margin-top: 0.05rem;
    font-style: normal;
}
.hmcc-condition-widget--light .hmcc-condition-list li { color: #555555; }
.hmcc-condition-widget--dark  .hmcc-condition-list li { color: #9a9793; }

/* ── Notice block ────────────────────────────────────────────────────────── */
.hmcc-condition-notice {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--hmcc-accent);
    border-radius: 0 4px 4px 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.hmcc-condition-widget--light .hmcc-condition-notice {
    background: #f5f5f5;
    color: #555555;
}
.hmcc-condition-widget--dark .hmcc-condition-notice {
    background: #1e2022;
    color: #9a9793;
}
.hmcc-condition-notice__label {
    font-weight: 700;
    margin-right: 4px;
}
.hmcc-condition-widget--light .hmcc-condition-notice__label { color: #111111; }
.hmcc-condition-widget--dark  .hmcc-condition-notice__label { color: #f2f0eb; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Steps & Condition
═══════════════════════════════════════════════════════════════════════════ */
@media ( max-width: 900px ) {
    .hmcc-steps-grid {
        grid-template-columns: repeat( 2, 1fr ) !important;
    }
    .hmcc-condition-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media ( max-width: 600px ) {
    .hmcc-steps-grid,
    .hmcc-condition-grid {
        grid-template-columns: 1fr !important;
    }
    .hmcc-step {
        padding: 1.5rem 1.25rem;
    }
    .hmcc-condition-card {
        padding: 1.5rem 1.25rem;
    }
    .hmcc-step__num {
        font-size: 2.75rem;
    }
}

/* ── Machine fields section in modal ────────────────────────────────────── */
.hmcc-modal__section {
    padding-bottom: 4px;
}

.hmcc-modal__section + .hmcc-modal__section {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #252525;
}

.hmcc-modal__section--machine .hmcc-modal__section-title {
    color: var(--hmcc-accent, #ffc701) !important;
}

/* Select field in modal — same dark style as inputs */
.hmcc-modal__field select {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #2e2e2e !important;
    border-radius: 7px;
    padding: 11px 13px !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    transition: border-color 0.2s;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    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='%23ffc701' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    padding-right: 36px !important;
    min-height: 44px;
    cursor: pointer;
}
.hmcc-modal__field select:focus {
    border-color: #ffc701 !important;
    background-color: #212121 !important;
}
.hmcc-modal__field select option {
    background: #1a1a1a;
    color: #fff;
}
.hmcc-modal__field select.hmcc-input-error {
    border-color: #e55 !important;
}

/* Mobile: machine fields still stack to 1 col */
@media ( max-width: 640px ) {
    .hmcc-modal__section--machine .hmcc-modal__grid {
        grid-template-columns: 1fr;
    }
    .hmcc-modal__field select {
        font-size: 16px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   IMAGE UPLOAD FIELD (modal)
══════════════════════════════════════════════════════════════════════════ */

/* Hide the real file input */
.hmcc-upload-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
    pointer-events: none;
}

/* Clickable upload label — acts as the button */
.hmcc-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px dashed #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    flex-wrap: wrap;
}
.hmcc-upload-label:hover {
    border-color: #ffc701;
    background: #1f1f1f;
}

/* The "Choose Images" styled button inside the label */
.hmcc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #252525;
    border: 1px solid #383838;
    border-radius: 6px;
    color: #ffc701 !important;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.hmcc-upload-label:hover .hmcc-upload-btn {
    background: #2e2e2e;
}
.hmcc-upload-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Hint text */
.hmcc-upload-hint {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #666666;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 0;
}

/* Error text */
.hmcc-upload-error {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: #ff7070;
    margin-top: 4px;
    min-height: 0;
}

/* Thumbnail preview grid */
.hmcc-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hmcc-upload-thumb {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hmcc-upload-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #2e2e2e;
    display: block;
}

.hmcc-upload-thumb__name {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    color: #666666;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

@media ( max-width: 640px ) {
    .hmcc-upload-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .hmcc-upload-hint {
        font-size: 10px;
    }
}
