/* ═══════════════════════════════════════════════════════════════
   CDR Writing Australia — ANZSCO Frontend Styles
   Loaded only when cdr_page_type = anzsco or service
   Matches the static reference design exactly.
═══════════════════════════════════════════════════════════════ */

/* ── BRAND TOKENS ───────────────────────────────────────────── */
:root {
    --primary: #93003F;
    --secondary: #C60055;
    --dark: #2C3E50;
    --light-bg: #F2F2F2;
    --white: #FFFFFF;
    --text: #2F2F2F;
    --primary-dark: #6b002e;
    --primary-light: #b8004f;
    --primary-pale: #fdf0f5;
    --primary-tint: #fce8f0;
    --dark-mid: #3d5166;
    --dark-light: #f0f4f8;
    --border: #e8e0e4;
    --border-light: #f0ebee;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --shadow-sm: 0 1px 3px rgba(147, 0, 63, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow: 0 4px 16px rgba(147, 0, 63, .10), 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-lg: 0 12px 40px rgba(147, 0, 63, .14), 0 4px 12px rgba(0, 0, 0, .06);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-tint);
    color: var(--primary);
    border: 1px solid rgba(147, 0, 63, .2);
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-dark {
    background: var(--dark);
    color: var(--white);
}

/* ── HERO STATS ─────────────────────────────────────────────── */
/* Output by [anzsco_stats] */
.hero-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    margin-top: 20px;
}

.hero-stat {
    flex: 1;
    padding: 0 24px 0 0;
    border-right: 1px solid var(--border-light);
    margin-right: 24px;
}

.hero-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.hero-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: .75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── SNAPBAR ────────────────────────────────────────────────── */
/* Output by [anzsco_snapbar] */
.snapbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.snap-item {
    padding: 20px 28px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
}

.snap-item:last-child {
    border-right: none;
}

.snap-label {
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
    font-weight: 500;
}

.snap-val {
    font-size: .95rem;
    color: #fff;
    font-weight: 700;
}

.snap-val.highlight {
    color: #ffb3ce;
}

/* ── TASK LIST ──────────────────────────────────────────────── */
/* Output by [anzsco_tasks] */
.anzsco-task-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anzsco-task-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-bg);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: .88rem;
    color: var(--text);
    transition: background .2s;
}

.anzsco-task-list li:hover {
    background: var(--primary-tint);
}

.task-icon {
    color: var(--primary);
    flex-shrink: 0;
    font-size: .9rem;
    margin-top: 1px;
}

/* ── INFO CARD ──────────────────────────────────────────────── */
/* Output by [anzsco_info_card] */
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 22px 24px;
    text-align: center;
}

.info-card-code {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.info-card-title {
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: .85rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-row-val {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
    font-size: .83rem;
}

/* ── VISA LISTS ─────────────────────────────────────────────── */
/* Output by [anzsco_visa_included] / [anzsco_visa_excluded] / [anzsco_programs] */
.anzsco-visa-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anzsco-visa-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    color: var(--text);
}

.dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.dot-red {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

/* ── ELIGIBILITY CARDS GRID ─────────────────────────────────── */
/* Output by [anzsco_eligibility_cards] */
.elig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.elig-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    transition: border-color .25s, box-shadow .25s, transform .2s;
}

.elig-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.elig-icon {
    width: 46px;
    height: 46px;
    background: var(--primary-tint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.elig-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.elig-card p {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── ENGLISH CARDS GRID ─────────────────────────────────────── */
/* Output by [anzsco_english_cards] */
.english-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.english-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: background .2s, border-color .2s;
}

.english-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
}

.english-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: .03em;
}

.english-scores {
    font-size: .86rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
}

/* ── VISA / SKILLSELECT TABLES ──────────────────────────────── */
/* Output by [anzsco_visa_table] / [anzsco_skillselect_table] */
.anzsco-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.anzsco-visa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.anzsco-visa-table thead tr {
    background: var(--dark);
}

.anzsco-visa-table th {
    padding: 13px 16px;
    text-align: left;
    color: rgba(255, 255, 255, .8);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-right: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}

.anzsco-visa-table th:last-child {
    border-right: none;
}

.anzsco-visa-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
}

.anzsco-visa-table tbody tr:last-child {
    border-bottom: none;
}

.anzsco-visa-table tbody tr:hover {
    background: var(--primary-pale);
}

.anzsco-visa-table td {
    padding: 12px 16px;
    color: var(--text-muted);
    vertical-align: middle;
    border-right: 1px solid var(--border-light);
}

.anzsco-visa-table td:last-child {
    border-right: none;
}

.anzsco-visa-table .bold {
    font-weight: 600;
    color: var(--dark);
}

.anzsco-visa-table .tick {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.anzsco-visa-table .cross {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

/* ── PROCESS STEPS GRID ─────────────────────────────────────── */
/* Output by [anzsco_process_steps] */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 18px;
    transition: border-color .2s, box-shadow .2s;
}

.process-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
}

.step-body h4 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.step-body p {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
/* Output by [anzsco_faqs] */
.anzsco-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anzsco-faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.anzsco-faq-q {
    padding: 17px 22px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--dark);
    transition: color .2s;
}

.anzsco-faq-q:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: var(--primary-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    transition: transform .3s, background .2s;
}

.anzsco-faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.75;
    transition: max-height .35s ease, padding .3s ease;
}

.anzsco-faq-item.open .anzsco-faq-a {
    max-height: 400px;
    padding: 0 22px 18px;
}

.anzsco-faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: var(--white);
}

/* ── SERVICE PAGE SHORTCODE STYLES ─────────────────────────── */
/* Output by [svc_features] */
.svc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-feat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    transition: border-color .25s, box-shadow .25s, transform .2s;
}

.svc-feat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feat-icon-wrap {
    width: 46px;
    height: 46px;
    background: var(--primary-tint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.svc-feat-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.svc-feat-card p {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Output by [svc_process] */
.svc-process-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.svc-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: border-color .2s;
}

.svc-step:hover {
    border-color: var(--primary);
}

.svc-step h4 {
    font-size: .95rem;
    margin-bottom: 5px;
}

.svc-step p {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Output by [svc_requirements] */
.svc-req-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.svc-req-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--light-bg);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: .88rem;
    color: var(--text);
}

.req-icon {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Output by [svc_include_items] */
.svc-include-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.svc-include-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: .86rem;
    color: var(--text);
    transition: border-color .2s;
}

.svc-include-card:hover {
    border-color: var(--primary);
}

.inc-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .snapbar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .snap-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .snapbar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .elig-grid,
    .process-grid,
    .english-grid {
        grid-template-columns: 1fr;
    }

    .svc-features-grid,
    .svc-include-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
}