:root {
    --gmb-hc-green: #0CCE6B;
    --gmb-hc-orange: #FFA400;
    --gmb-hc-red: #FF4E42;
    --gmb-hc-bg: var(--color-light, #ffffff);
    --gmb-hc-card-bg: var(--color-light, #ffffff);
    --gmb-hc-border: var(--color-light-grey, #e5e7eb);
    --gmb-hc-text: var(--color-dark, #1f2937);
    --gmb-hc-text-light: var(--color-dark-grey, #6b7280);
    --gmb-hc-radius: var(--border-radius-lrg, 12px);
    --gmb-hc-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Prevent iOS auto-zoom on form inputs (triggers at font-size < 16px) */
.gmb-hc-results input,
.gmb-hc-results select,
.gmb-hc-results textarea,
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="search"],
.gform_wrapper select,
.gform_wrapper textarea {
    font-size: max(16px, 1em);
}

/* Results container */
.gmb-hc-results {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px;
    min-height: 80vh;
    background: var(--gmb-hc-bg);
    border-radius: var(--border-radius-xlrg, 24px);
    font-family: var(--bricks-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    color: var(--gmb-hc-text);
    line-height: 1.55;
    font-size: 17px;
}

/* Header */
.gmb-hc-header {
    text-align: center;
    margin-bottom: 40px;
}

.gmb-hc-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--gmb-hc-text);
    line-height: 1.25;
}

.gmb-hc-header .gmb-hc-url {
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    word-break: break-all;
}

/* Overall score */
.gmb-hc-overall {
    text-align: center;
    margin: 32px auto;
}

.gmb-hc-overall .gmb-hc-gauge-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--gmb-hc-text);
    margin-top: 14px;
}

/* SVG Gauges */
.gmb-hc-gauge {
    position: relative;
    display: inline-block;
}

.gmb-hc-gauge svg {
    transform: rotate(-90deg);
}

.gmb-hc-gauge-track {
    fill: none;
    stroke: var(--gmb-hc-border);
    stroke-width: 8;
}

.gmb-hc-gauge-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.gmb-hc-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.gmb-hc-gauge--large .gmb-hc-gauge-text {
    font-size: 36px;
}

.gmb-hc-gauge-label {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
    color: var(--gmb-hc-text-light);
    font-weight: 500;
}

/* Score cards grid */
.gmb-hc-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.gmb-hc-score-card {
    background: var(--gmb-hc-card-bg);
    border: 1px solid var(--gmb-hc-border);
    border-radius: var(--gmb-hc-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--gmb-hc-shadow);
}

.gmb-hc-gauge-text--na {
    font-size: 16px !important;
    font-weight: 600;
}

.gmb-hc-gauge--large .gmb-hc-gauge-text--na {
    font-size: 20px !important;
}

.gmb-hc-scores-note {
    text-align: center;
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin: -16px 0 16px;
    font-style: italic;
}

/* Sectioned details */
.gmb-hc-section {
    margin: 28px 0;
    padding: 28px;
    background: var(--gmb-hc-card-bg);
    border: 1px solid var(--gmb-hc-border);
    border-radius: var(--gmb-hc-radius);
    box-shadow: var(--gmb-hc-shadow);
}

.gmb-hc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gmb-hc-border);
}

.gmb-hc-section-icon {
    font-size: 26px;
    line-height: 1;
}

.gmb-hc-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--gmb-hc-text);
    letter-spacing: -0.01em;
}

.gmb-hc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Backwards-compatible class kept for any cached result HTML */
.gmb-hc-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 32px 0;
}

.gmb-hc-details-title {
    grid-column: 1 / -1;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gmb-hc-text);
}

.gmb-hc-detail-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.gmb-hc-detail-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1.4;
}

.gmb-hc-detail-text {
    flex: 1;
    min-width: 0;
}

.gmb-hc-detail-pass {
    color: var(--gmb-hc-text);
}

.gmb-hc-detail-warn {
    color: var(--gmb-hc-text);
    background: #fffbeb;
}

.gmb-hc-detail-info {
    color: var(--gmb-hc-text);
    background: color-mix(in srgb, var(--gmb-hc-text-light), transparent 92%);
}

.gmb-hc-detail-meta {
    display: block;
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CTA section */
.gmb-hc-cta {
    margin-top: 40px;
    padding: 40px 32px;
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), var(--color-light, #fff) 92%);
    border-radius: var(--gmb-hc-radius);
    text-align: center;
}

.gmb-hc-cta p {
    font-size: 20px;
    font-weight: 500;
    margin: 0 auto 20px;
    color: var(--gmb-hc-text);
    max-width: 600px;
    line-height: 1.5;
}

.gmb-hc-cta-button {
    text-decoration: none;
}

.gmb-hc-cta-button:hover {
    text-decoration: none;
}

.gmb-hc-cta p.gmb-hc-cta-rerun {
    margin: 20px auto 0 auto;
    font-size: 15px;
    text-align: center;
}

.gmb-hc-cta p.gmb-hc-cta-rerun a {
    color: var(--gmb-hc-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.gmb-hc-cta p.gmb-hc-cta-rerun a:hover {
    color: var(--gmb-hc-text);
}

/* Loading experience */
.gmb-hc-loading {
    text-align: center;
    padding: 40px 20px;
}

.gmb-hc-loading-pulse {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.gmb-hc-loading-rings {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmb-hc-loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-primary, var(--gmb-hc-green));
}

.gmb-hc-loading-ring--1 {
    width: 100%;
    height: 100%;
    animation: gmb-hc-spin 1.8s linear infinite;
}

.gmb-hc-loading-ring--2 {
    width: 80%;
    height: 80%;
    border-top-color: var(--gmb-hc-orange);
    animation: gmb-hc-spin 1.4s linear infinite reverse;
}

.gmb-hc-loading-ring--3 {
    width: 60%;
    height: 60%;
    border-top-color: var(--gmb-hc-red);
    animation: gmb-hc-spin 1s linear infinite;
}

.gmb-hc-loading-icon {
    font-size: 36px;
    z-index: 1;
    animation: gmb-hc-pulse 2s ease-in-out infinite;
}

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

@keyframes gmb-hc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.gmb-hc-loading-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--gmb-hc-text);
    line-height: 1.25;
}

.gmb-hc-loading-subtitle {
    font-size: 15px;
    color: var(--gmb-hc-text-light);
    margin: 0 auto 32px;
    max-width: 460px;
    line-height: 1.55;
}

.gmb-hc-load-steps {
    max-width: 320px;
    margin: 0 auto 32px;
    text-align: left;
}

.gmb-hc-load-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--gmb-hc-text-light);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.gmb-hc-load-step--active .gmb-hc-load-step-status {
    animation: gmb-hc-pulse 1.4s ease-in-out infinite;
}

.gmb-hc-load-step--active {
    opacity: 1;
    color: var(--gmb-hc-text);
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 92%);
}

.gmb-hc-load-step--done {
    opacity: 0.7;
    color: var(--gmb-hc-text);
}

.gmb-hc-load-step-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.gmb-hc-load-step-label {
    flex: 1;
}

.gmb-hc-load-step-status {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.gmb-hc-load-step--done .gmb-hc-load-step-status {
    color: var(--gmb-hc-green);
}

.gmb-hc-loading-tip {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 94%);
    border-radius: var(--gmb-hc-radius);
}

.gmb-hc-tip-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary, var(--gmb-hc-green));
    margin-bottom: 6px;
}

.gmb-hc-tip-text {
    font-size: 15px;
    color: var(--gmb-hc-text);
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

/* Error states */
.gmb-hc-error {
    text-align: center;
    padding: 32px;
    color: var(--gmb-hc-text);
    font-size: 16px;
}

.gmb-hc-error-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.gmb-hc-error p {
    font-size: 16px;
    margin: 0 0 20px;
    color: var(--gmb-hc-text-light);
}

.gmb-hc-retry-button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gmb-hc-border);
    color: var(--gmb-hc-text);
    border-radius: var(--border-radius-sml, 8px);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.gmb-hc-retry-button:hover {
    background: #d1d5db;
}

/* Lighthouse audit findings inside a section */
.gmb-hc-audits {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--gmb-hc-border);
}

.gmb-hc-audits-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gmb-hc-text-light);
    margin: 0 0 14px;
}

.gmb-hc-audit-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--gmb-hc-orange), transparent 92%);
    margin-bottom: 10px;
    border-left: 3px solid var(--gmb-hc-orange);
}

.gmb-hc-audit-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.gmb-hc-audit-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gmb-hc-text);
}

.gmb-hc-audit-savings {
    font-size: 13px;
    font-weight: 700;
    color: var(--gmb-hc-orange);
    white-space: nowrap;
    background: color-mix(in srgb, var(--gmb-hc-orange), transparent 86%);
    padding: 3px 10px;
    border-radius: 999px;
}

.gmb-hc-audit-desc {
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin: 8px 0 0;
    line-height: 1.55;
}

/* Sitemap breakdown */
.gmb-hc-sitemap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--gmb-hc-border);
}

.gmb-hc-sitemap-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--gmb-hc-text);
}

.gmb-hc-sitemap-sub {
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin: 0 0 16px;
}

.gmb-hc-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.gmb-hc-sitemap-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), var(--gmb-hc-card-bg) 96%);
    border: 1px solid color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 85%);
    border-radius: 10px;
    text-align: center;
}

.gmb-hc-sitemap-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary, var(--gmb-hc-green));
    line-height: 1.1;
}

.gmb-hc-sitemap-label {
    font-size: 13px;
    color: var(--gmb-hc-text);
    margin-top: 4px;
    font-weight: 500;
    line-height: 1.3;
}

.gmb-hc-sitemap-gaps {
    margin-top: 18px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--gmb-hc-orange), transparent 92%);
    border-left: 3px solid var(--gmb-hc-orange);
    border-radius: 0 10px 10px 0;
}

.gmb-hc-sitemap-gaps-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gmb-hc-orange);
    margin: 0 0 8px;
}

.gmb-hc-sitemap-gaps-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: var(--gmb-hc-text);
    font-size: 14px;
    line-height: 1.6;
}

/* Action plan */
.gmb-hc-action-plan {
    margin: 48px 0 36px;
    padding: 32px;
    background: var(--gmb-hc-card-bg);
    border: 1px solid var(--gmb-hc-border);
    border-radius: var(--gmb-hc-radius);
    box-shadow: var(--gmb-hc-shadow);
}

.gmb-hc-action-plan .gmb-hc-section-title {
    font-size: 24px;
}

.gmb-hc-action-empty {
    text-align: center;
    color: var(--gmb-hc-text-light);
    margin: 16px 0 0;
    font-size: 16px;
}

.gmb-hc-phase {
    margin-top: 28px;
}

.gmb-hc-phase:first-of-type {
    margin-top: 0;
}

.gmb-hc-phase-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gmb-hc-phase-num {
    display: inline-block;
    padding: 5px 12px;
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 86%);
    color: var(--color-primary, var(--gmb-hc-green));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gmb-hc-phase-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gmb-hc-text);
}

.gmb-hc-phase-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gmb-hc-phase-item {
    padding: 16px 18px;
    border-left: 4px solid var(--gmb-hc-border);
    margin-bottom: 10px;
    background: color-mix(in srgb, var(--gmb-hc-text-light), transparent 96%);
    border-radius: 0 10px 10px 0;
}

.gmb-hc-phase-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.gmb-hc-phase-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gmb-hc-text);
    line-height: 1.4;
}

.gmb-hc-phase-item-why {
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin: 8px 0 0;
    line-height: 1.55;
}

.gmb-hc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.gmb-hc-badge--help {
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 86%);
    color: var(--color-primary, var(--gmb-hc-green));
}

.gmb-hc-badge--manual {
    background: color-mix(in srgb, var(--gmb-hc-orange), transparent 86%);
    color: var(--gmb-hc-orange);
}

/* AI section */
.gmb-hc-section--ai {
    border: 1px solid color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 75%);
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), var(--gmb-hc-card-bg) 94%);
}

.gmb-hc-ai-intro {
    font-size: 16px;
    color: var(--gmb-hc-text-light);
    margin: 0 0 22px;
    line-height: 1.55;
}

/* Stacked vertically because the observation text often runs long;
   three columns made them visually unbalanced and hard to read. */
.gmb-hc-ai-scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gmb-hc-ai-score-item {
    padding: 18px 20px;
    background: var(--gmb-hc-card-bg);
    border: 1px solid var(--gmb-hc-border);
    border-radius: 10px;
}

.gmb-hc-ai-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gmb-hc-ai-score-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gmb-hc-text);
    line-height: 1.35;
}

.gmb-hc-ai-score-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: var(--gmb-hc-border);
    color: var(--gmb-hc-text);
    white-space: nowrap;
}

.gmb-hc-score--good {
    background: color-mix(in srgb, var(--gmb-hc-green), transparent 82%);
    color: var(--gmb-hc-green);
}

.gmb-hc-score--ok {
    background: color-mix(in srgb, var(--gmb-hc-orange), transparent 82%);
    color: var(--gmb-hc-orange);
}

.gmb-hc-score--poor {
    background: color-mix(in srgb, var(--gmb-hc-red), transparent 82%);
    color: var(--gmb-hc-red);
}

.gmb-hc-ai-score-obs {
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    margin: 10px 0 0;
    line-height: 1.55;
}

.gmb-hc-ai-block {
    margin-top: 22px;
    padding: 20px;
    background: var(--gmb-hc-card-bg);
    border: 1px solid var(--gmb-hc-border);
    border-radius: 10px;
}

.gmb-hc-ai-block-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--gmb-hc-text);
}

.gmb-hc-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.gmb-hc-ai-tag {
    display: inline-block;
    padding: 5px 12px;
    background: color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 86%);
    color: var(--color-primary, var(--gmb-hc-green));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.gmb-hc-ai-empty {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    font-style: italic;
}

.gmb-hc-ai-wwwh {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gmb-hc-ai-wwwh-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.gmb-hc-ai-wwwh-icon {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.gmb-hc-ai-wwwh-item.is-yes {
    background: color-mix(in srgb, var(--gmb-hc-green), transparent 90%);
    color: var(--gmb-hc-text);
}

.gmb-hc-ai-wwwh-item.is-yes .gmb-hc-ai-wwwh-icon {
    color: var(--gmb-hc-green);
}

.gmb-hc-ai-wwwh-item.is-no {
    background: color-mix(in srgb, var(--gmb-hc-red), transparent 92%);
    color: var(--gmb-hc-text);
}

.gmb-hc-ai-wwwh-item.is-no .gmb-hc-ai-wwwh-icon {
    color: var(--gmb-hc-red);
}

.gmb-hc-ai-recs {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    counter-reset: gmb-hc-ai-rec;
}

.gmb-hc-ai-rec {
    counter-increment: gmb-hc-ai-rec;
    padding: 18px 18px 18px 56px;
    background: color-mix(in srgb, var(--gmb-hc-text-light), transparent 96%);
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
}

.gmb-hc-ai-rec::before {
    content: counter(gmb-hc-ai-rec);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary, var(--gmb-hc-green));
    color: var(--color-light, #fff);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmb-hc-ai-rec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.gmb-hc-ai-rec-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gmb-hc-text);
    line-height: 1.4;
}

.gmb-hc-ai-rec-area {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gmb-hc-text-light);
    background: var(--gmb-hc-border);
    padding: 3px 10px;
    border-radius: 999px;
}

.gmb-hc-ai-rec-why {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--gmb-hc-text-light);
    line-height: 1.55;
}

/* AI placeholder / loading */
.gmb-hc-ai-placeholder .gmb-hc-ai-loading {
    text-align: center;
    padding: 24px 16px;
}

.gmb-hc-ai-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid color-mix(in srgb, var(--color-primary, #0CCE6B), transparent 80%);
    border-top-color: var(--color-primary, var(--gmb-hc-green));
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: gmb-hc-spin 0.9s linear infinite;
}

.gmb-hc-ai-loading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gmb-hc-text);
    margin: 0 0 4px;
}

.gmb-hc-ai-loading-sub {
    font-size: 13px;
    color: var(--gmb-hc-text-light);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gmb-hc-results {
        padding: 22px;
        font-size: 16px;
    }

    .gmb-hc-header h2 {
        font-size: 24px;
    }

    .gmb-hc-section {
        padding: 22px;
    }

    .gmb-hc-section-title {
        font-size: 20px;
    }

    .gmb-hc-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmb-hc-details,
    .gmb-hc-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gmb-hc-section {
        padding: 18px;
    }

    .gmb-hc-action-plan {
        padding: 18px;
    }

    .gmb-hc-ai-wwwh {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmb-hc-overall .gmb-hc-gauge svg {
        width: 140px;
        height: 140px;
    }

    .gmb-hc-gauge--large .gmb-hc-gauge-text {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .gmb-hc-results {
        padding: 16px;
    }

    .gmb-hc-scores {
        grid-template-columns: 1fr;
    }

    .gmb-hc-header h2 {
        font-size: 20px;
    }

    .gmb-hc-overall .gmb-hc-gauge svg {
        width: 120px;
        height: 120px;
    }

    .gmb-hc-gauge--large .gmb-hc-gauge-text {
        font-size: 24px;
    }
}

/* ── Field-updated flash ─────────────────────────────────────────── */

@keyframes gmb-hc-flash {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    30%  { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35); }
    100% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.gmb-hc-fields-flash {
    animation: gmb-hc-flash 0.8s ease-out both;
    border-radius: 6px;
}

/* ── "Almost there" step banner ──────────────────────────────────── */

.gmb-hc-step-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f7ff;
    border: 1px solid #c3deff;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #1a4fa0;
    line-height: 1.4;
}

.gmb-hc-step-banner::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #1a4fa0;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}
