/**
 * AstroLeaf Enterprise - Karakamsha & Lagnamsha Calculator Modern CSS Stylesheet
 * Clean White / Slate / Saffron Design System with Zero Brown Overrides
 */

:root {
    --kl-saffron: #D97706;
    --kl-saffron-light: #FBBF24;
    --kl-saffron-dark: #B45309;
    --kl-saffron-bg: rgba(217, 119, 6, 0.06);
    --kl-saffron-border: rgba(217, 119, 6, 0.22);
    --kl-dark: #0F172A;
    --kl-dark-muted: #475569;
    --kl-card-bg: #FFFFFF;
    --kl-border-color: #E2E8F0;
    --kl-indigo: #4F46E5;
    --kl-emerald: #059669;
    --kl-purple: #7C3AED;
}

html body .karakamsha-body {
    background-color: #FFFBF4 !important;
    color: var(--kl-dark) !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif) !important;
    line-height: 1.6 !important;
    padding-bottom: 70px !important;
}

/* Breadcrumbs */
html body .astroleaf-breadcrumb-bar {
    background: #FFFFFF !important;
    border-top: 1.5px solid #E6DFD5 !important;
    border-bottom: 1.5px solid #E6DFD5 !important;
    padding: 12px 0 !important;
    font-size: 0.84rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .astroleaf-breadcrumb-bar > div {
    max-width: 840px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #65250C !important;
    flex-wrap: wrap !important;
}

html body .astroleaf-breadcrumb-bar a {
    color: #65250C !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

html body .astroleaf-breadcrumb-bar a:hover {
    color: #D97706 !important;
    text-decoration: underline !important;
}

/* Hero Section */
html body .kl-hero {
    position: relative !important;
    background: linear-gradient(135deg, #65250C 0%, #4A1A08 100%) !important;
    padding: 48px 20px 40px 20px !important;
    text-align: center !important;
    overflow: hidden !important;
    color: #FFFFFF !important;
}

html body .kl-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.85rem, 4vw, 2.4rem) !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
}

html body .kl-hero-desc {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
    color: #FFE2C2 !important;
    margin: 0 auto !important;
    max-width: 700px !important;
    text-align: center !important;
}

/* Form Card — minimal white, matching Upapada Lagna Calculator */
html body .kl-form-card,
html body .aap-form-card,
html body div.karakamsha-body .kl-form-card,
html body div.karakamsha-body .aap-form-card,
html body div.karakamsha-body [class*="form-card"] {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E6DFD5 !important;
    border-radius: 12px !important;
    max-width: 840px !important;
    margin: 0 auto !important;
    padding: 22px 24px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    html body .kl-form-card,
    html body .aap-form-card,
    html body div.karakamsha-body .kl-form-card,
    html body div.karakamsha-body .aap-form-card {
        padding: 18px 16px !important;
    }
}

/* Button & Spinner */
html body .kl-btn-submit,
html body .vng-btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 24px !important;
    background: #F97316 !important;
    background-color: #F97316 !important;
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    transition: all 0.2s ease !important;
    margin-top: 2px !important;
}

html body .kl-btn-submit:hover,
html body .vng-btn-submit:hover {
    background: #EA580C !important;
    background-color: #EA580C !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
}

@keyframes kl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive 4-Column Card Grid */
.ud-four-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) and (min-width: 481px) {
    .ud-four-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .ud-four-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

.ud-subcard {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Articles and FAQs */
.wy-seo-articles {
    max-width: 840px !important;
    margin: 36px auto 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.wy-article-section {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 36px !important;
}

.wy-article-h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.3 !important;
}

.wy-comparison-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    margin: 16px 0 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
}

.wy-comparison-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    min-width: 540px !important;
}

.wy-comparison-table th {
    background: #FFF7ED !important;
    color: #65250C !important;
    font-weight: 800 !important;
    padding: 12px 16px !important;
    border-bottom: 1.5px solid #CBD5E1 !important;
}

.wy-comparison-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    vertical-align: top !important;
}

.wy-callout-box {
    background: #FFF7ED !important;
    border-left: 4px solid #F97316 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 14px 18px !important;
    margin: 16px 0 !important;
    color: #7C2D12 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* HIGH-SPECIFICITY FAQ ACCORDION OVERRIDES */
html body .pkr-faq-section,
html body .vng-faq-section {
    max-width: 840px !important;
    margin: 40px auto 60px auto !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

html body .pkr-faq-container,
html body .vng-faq-container {
    max-width: 840px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

html body .pkr-faq-item,
html body .vng-faq-entry {
    background: #FFF8EA !important;
    background-color: #FFF8EA !important;
    border: 1.5px solid #E4D5C1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

html body .pkr-faq-item.active,
html body .vng-faq-entry.active,
html body .vng-faq-entry:has(.vng-faq-toggle[aria-expanded="true"]) {
    background: #FFFDF8 !important;
    background-color: #FFFDF8 !important;
    border-color: #C98A58 !important;
}

html body .pkr-faq-question,
html body .vng-faq-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 16px 20px !important;
    color: #682B12 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    box-sizing: border-box !important;
    gap: 14px !important;
}

html body .faq-icon,
html body .vng-faq-symbol {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: #65250C !important;
    background: #FFFDF8 !important;
    border-radius: 50% !important;
    border: 1px solid #D8C3AB !important;
    font-family: Arial, sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

html body .pkr-faq-item.active .faq-icon,
html body .vng-faq-entry.active .vng-faq-symbol,
html body .pkr-faq-item.active .vng-faq-symbol {
    color: #FFFFFF !important;
    background: #65250C !important;
    border-color: #65250C !important;
    transform: none !important;
}

html body .pkr-faq-answer,
html body .vng-faq-answer {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 20px 18px 20px !important;
    color: #4A4A4A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.96rem !important;
    line-height: 1.7 !important;
    box-sizing: border-box !important;
}

html body .pkr-faq-answer p,
html body .vng-faq-answer p {
    color: #4A4A4A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.96rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

html body .pkr-faq-answer[hidden],
html body .vng-faq-answer[hidden],
html body .pkr-faq-item:not(.active) .pkr-faq-answer[hidden],
html body .vng-faq-entry:not(.active) .pkr-faq-answer[hidden] {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

