/**
 * Brand Scoring Admin — Frontend CSS
 *
 * Styles for the NEW comparison page features ONLY. The existing classes
 * (.brand-card, .brand-logo, .brand-price, .brand-tagline, .brand-description)
 * are left alone — they're styled by the theme's form.css and continue to work.
 *
 * What's new:
 *   .brand-card.recommended       — gold-treated recommended card
 *   .recommended-ribbon           — gold top ribbon "Our recommended match"
 *   .match-score                  — score block on recommended card
 *   .match-reasons                — "Why we matched you" reasons block
 *   .credentials-line             — ★ rating · years · suburb under brand name
 *   .gmb-link                     — "Read all reviews on Google →" link
 *   .best-for-block               — "Best for" labelled block
 *   .ticks-list                   — 4 ticks (3 strengths + response_time)
 *   .testimonial-block            — testimonial quote box
 *   .included-toggle / .included-list — "See what's included" expander
 *   .context-chips                — chips above results showing what user picked
 *   .results-disclosure           — ACCC compliance disclosure
 *
 * Brand tokens (per the mockup):
 *   --shq-navy: #08123D / #061533
 *   --shq-teal: #4FB3A9 / #2F8B82 / #E8F4F2
 *   --shq-gold: #D4A547 / #FBF4E1
 *
 * @package Brand_Scoring_Admin
 */

/* ============================================================================
   COLOUR TOKENS — scoped to results section so we don't leak globally
   ============================================================================ */
.results-section,
.results-grid {
    --shq-navy: #08123D;
    --shq-navy-deep: #061533;
    --shq-teal: #4FB3A9;
    --shq-teal-dark: #2F8B82;
    --shq-teal-tint: #E8F4F2;
    --shq-gold: #D4A547;
    --shq-gold-tint: #FBF4E1;
    --shq-cream: #FAF7F2;
    --shq-text: #1F2937;
    --shq-text-muted: #6B7280;
    --shq-border: #E5E7EB;
}

/* ============================================================================
   USER CONTEXT CHIPS (above the cards)
   ============================================================================ */
.context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 20px auto 30px;
    max-width: 1200px;
    padding: 0 24px;
}

.context-chips-label {
    font-size: 16px;
    margin-right: 4px;
    font-weight: 600;
    font-family: 'Spartan';
    font-weight: bold;
}

.context-chip {
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 16px;
    color: #08123D;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.context-chip::before {
    content: "●";
    color: #4FB3A9;
    font-size: 8px;
}

.context-chip-edit {
    background: transparent;
    border: none;
    color: #2F8B82;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 8px;
}

/* ============================================================================
   CARD — RECOMMENDED VARIANT
   Modifier on existing .brand-card class. We don't redefine .brand-card itself
   so theme styles continue to apply.
   ============================================================================ */
.brand-card.recommended {
    border: 2px solid #D4A547 !important;
    box-shadow: 0 12px 32px rgba(212, 165, 71, 0.15);
    transform: translateY(-12px);
    position: relative;
}

.brand-card.recommended:hover {
    transform: translateY(-14px);
    box-shadow: 0 16px 40px rgba(212, 165, 71, 0.2);
}

/* Recommended ribbon at top of card */
.recommended-ribbon {
    background: linear-gradient(135deg, #D4A547 0%, #C19337 100%);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: -40px -30px 20px;
    border-radius: 8px 8px 0 0;
}

.recommended-ribbon-star {
    color: #fff;
    font-size: 14px;
}

/* Match score block (recommended card only) */
.match-score {
    background: #FBF4E1;
    border-left: 3px solid #D4A547;
    padding: 14px 16px;
    margin: 0 0 20px;
    border-radius: 0 8px 8px 0;
}

.match-score-label {
    font-size: 11px;
    font-weight: 600;
    color: #D4A547;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-score-value {
    font-size: 28px;
    color: #08123D;
    font-weight: 700;
    line-height: 1;
    
}

.match-score-out-of {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

/* "Why we matched you" reasons (recommended card only) */
.match-reasons {
    background: #FAF7F2;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.match-reasons-label {
    font-size: 11px;
    font-weight: 600;
    color: #08123D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.match-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-reasons li {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
    
}

.match-reasons li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================================
   CARD BLOCKS — credentials, best-for, ticks, testimonial, inclusions
   ============================================================================ */

.credentials-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.credentials-rating {
    color: #D4A547;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.credentials-rating-num {
    color: #08123D;
    font-weight: 600;
}

.credentials-rating-count {
    color: #6B7280;
    font-weight: 400;
}

.credentials-divider {
    color: #D1D5DB;
}

.gmb-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #2F8B82;
    text-decoration: underline;
    font-size: 13px;
}

.gmb-link:hover {
    color: #08123D;
}

.best-for-block {
    margin-bottom: 18px;
}

.best-for-label {
    font-size: 12px;
    font-weight: 600;
    color: #2F8B82;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.best-for-text {
    font-size: 16px;
    color: #08123D;
    font-weight: 500;
    line-height: 1.6;
}

/* Ticks (4 max — 3 strengths + response_time) */
.ticks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.ticks-list li {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
   
}

.ticks-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
	color: var(--teal);
/*    background: #4FB3A9;*/
/*    clip-path: polygon(20% 50%, 0% 70%, 40% 100%, 100% 25%, 80% 5%, 40% 60%);*/
}

/* Testimonial block */
.testimonial-block {
    background: #E8F4F2;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 0 0 18px;
    position: relative;
}

.testimonial-block::before {
    content: "\201C";
 
    font-size: 42px;
    color: #4FB3A9;
    line-height: 1;
    position: absolute;
    top: 4px;
    left: 12px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 6px;
    padding-left: 10px;
    color: #08123D;
}

.testimonial-author {
    font-size: 12px;
    color: #6B7280;
    font-style: normal;
    padding-left: 4px;
}

/* "See what's included" expander */
.included-toggle {
    margin-top: 12px;
    background: none;
    border: none;
    color: #2F8B82;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.included-toggle::after {
    content: "▾";
    font-size: 10px;
    transition: transform 0.2s;
}

.included-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.included-list {
    display: none;
    margin-top: 0;
    padding: 14px;
    background: #F4F6F8;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    width: 100%;
}

.included-list.open {
    display: block;
}

.included-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 3px 0 3px 18px;
    position: relative;
    color: #1F2937;
}

.included-list li::before {
    content: "·";
    position: absolute;
    left: 6px;
    color: #4FB3A9;
	color: var(--shq-teal);
    font-weight: 700;
}

/* Make CTA primary button gold on recommended cards */
.brand-card.recommended .view-quote-btn.btn-pro,
.brand-card.recommended .contact-agent-btn {
    background: #D4A547 !important;
    color: #08123D !important;
    border-color: #D4A547 !important;
}

.brand-card.recommended .view-quote-btn.btn-pro:hover,
.brand-card.recommended .contact-agent-btn:hover {
    background: #C19337 !important;
    color: #fff !important;
}

/* ============================================================================
   DISCLOSURE BELOW CARDS (ACCC compliance — brief Section 6)
   ============================================================================ */
.results-disclosure {
    max-width: 720px;
    margin: 16px auto 30px;
    padding: 0 24px;
    text-align: center;
    font-size: 16px;
    
    line-height: 1.6;
}

.results-disclosure a {
    color: #2F8B82;
    text-decoration: underline;
}
.results-disclosure a:hover {
    color: #2F8B82;
  
}

.recommended{
	display: block !important;
}
.recommended .brand-logo {
    justify-content: left !important;
}
.recommended .view-quote-btn{
	display: flex;
	justify-content: center;
	gap:10px;
}
.page-id-377 button.included-toggle {
    margin-bottom: 20px;
    margin-top: 0;
}
.brand-price {
    margin-bottom: 0px;
}
.page-id-377 .btn-pro {
    font-family: "Geist", sans-serif;

}
.page-id-377 .brand-price {
    color: #08123D;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Spartan';
    margin-top: 10px;
}
.page-id-377 .restart-btn {
 position: relative;
}
.page-id-377 .restart-btn:hover::before {
    left: 0;
}
.page-id-377 .restart-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #09123d;
    transition: left 0.4s ease;
    z-index: -1;
}
/* ============================================================================
   MOBILE (per brief Section 5.3 — single column below 900px)
   ============================================================================ */
@media (max-width: 900px) {
    .brand-card.recommended {
        transform: none;
        padding-top: 56px;
    }

    .brand-card.recommended:hover {
        transform: translateY(-2px);
    }

    .recommended-ribbon {
        margin: -30px -20px 20px;
    }
	
	.results-grid {
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)) !important;

}
}

/* ============================================================================
   NEW v1.1.1: Loading overlay
   Shown when user clicks Next / Submit so they know something is happening.
   ============================================================================ */
#shqLoader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 61, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#shqLoader.shq-loader-active {
    display: flex;
    animation: shqLoaderFadeIn 0.18s ease;
}

@keyframes shqLoaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.shq-loader-box {
    background: #fff;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 260px;
}

.shq-loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #E8F4F2;
    border-top-color: #2F8B82;
    border-radius: 50%;
    animation: shqLoaderSpin 0.9s linear infinite;
}

@keyframes shqLoaderSpin {
    to { transform: rotate(360deg); }
}

.shq-loader-text {
    color: #08123D;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}
