/**
 * AstroLeaf Enterprise - Chara Karakas Calculator Stylesheet
 * Clean White / Slate / Saffron Design System
 */

:root {
    --ck-saffron: #D97706;
    --ck-saffron-light: #FBBF24;
    --ck-saffron-dark: #B45309;
    --ck-saffron-bg: rgba(217, 119, 6, 0.06);
    --ck-dark: #0F172A;
    --ck-dark-muted: #475569;
    --ck-border-color: #E2E8F0;
}

html body {
    background-color: #FFFBF4 !important;
    color: var(--ck-dark) !important;
    font-family: var(--font-primary, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif) !important;
}

html body .ck-strict-wrapper,
html body .chara-karaka-body {
    background-color: #FFFBF4 !important;
    color: var(--ck-dark) !important;
    line-height: 1.6 !important;
    padding-bottom: 60px !important;
}

/* Breadcrumbs Bar */
html body .ck-breadcrumbs-bar,
html body .astroleaf-breadcrumb-bar {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 12px 24px !important;
    font-size: 0.84rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .ck-breadcrumbs-container,
html body .astroleaf-breadcrumb-bar > div {
    max-width: 840px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #475569 !important;
    flex-wrap: wrap !important;
}

html body .ck-breadcrumbs-container a,
html body .astroleaf-breadcrumb-bar a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

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

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

html body .pkr-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: #FFBA5F !important;
    -webkit-text-fill-color: #FFBA5F !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

html body .pkr-hero-sub,
html body .ck-hero-desc {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 1.05rem !important;
    color: #FFE2C2 !important;
    -webkit-text-fill-color: #FFE2C2 !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    line-height: 1.65 !important;
    text-align: center !important;
}

/* Form Card */
html body .ck-form-card,
html body .vng-card-wrapper,
html body .vng-form-card,
html body .aap-form-card {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 840px !important;
    margin: 0 auto !important;
}

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

html body .vng-card-title-main,
html body .aap-card-title,
html body .form-card-title,
html body .ck-form-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

html body .form-card-eyebrow {
    color: #D97706 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Form Inputs and Selects */
html body select,
html body select.aap-select,
html body select.vnc-select,
html body select.ck-select,
html body select.ale-input,
html body select.ale-select,
html body .aap-select,
html body .vnc-select,
html body .ck-select,
html body #chara-karaka-form select {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 14px !important;
    padding-right: 34px !important;
    margin: 0 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
}

html body input[type="text"],
html body input[type="number"],
html body input[type="time"],
html body .aap-input,
html body .vnc-input,
html body .ck-input,
html body #chara-karaka-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin: 0 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    color: #1E293B !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    outline: none !important;
    box-sizing: border-box !important;
}

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

html body .ck-btn-submit:hover:not(:disabled),
html body .pay-now-hero-btn:hover:not(:disabled) {
    background: #EA580C !important;
    background-color: #EA580C !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
    color: #FFFFFF !important;
}

html body .ck-btn-submit:disabled,
html body .ck-btn-submit[disabled],
html body .pay-now-hero-btn:disabled,
html body .pay-now-hero-btn[disabled] {
    opacity: 0.82 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

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

/* Responsive */
@media (max-width: 640px) {
    #chara-karaka-form {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* FAQ Accordion Section */
html body .ck-strict-wrapper .pkr-faq-section,
html body .pkr-faq-section {
    width: 100% !important;
    max-width: 840px !important;
    margin: 36px auto 48px auto !important;
    padding: 0 20px !important;
    text-align: center !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

html body .pkr-section-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

html body .pkr-pill-label {
    display: inline-block !important;
    background: #FFFDF9 !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #65250C !important;
    padding: 4px 14px !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 8px !important;
}

html body .pkr-section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
    margin: 0 0 6px 0 !important;
    text-align: center !important;
}

html body .pkr-section-desc {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.94rem !important;
    color: #555555 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

html body .ck-strict-wrapper .pkr-faq-container,
html body .pkr-faq-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 840px !important;
    margin: 0 auto !important;
    text-align: left !important;
}

html body .ck-strict-wrapper .vng-faq-entry,
html body .ck-strict-wrapper .pkr-faq-item,
html body .vng-faq-entry,
html body .pkr-faq-item {
    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 .ck-strict-wrapper .vng-faq-entry.active,
html body .ck-strict-wrapper .pkr-faq-item.active,
html body .vng-faq-entry.active,
html body .pkr-faq-item.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 .ck-strict-wrapper .vng-faq-toggle,
html body .ck-strict-wrapper .pkr-faq-question,
html body .vng-faq-toggle,
html body .pkr-faq-question {
    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 .ck-strict-wrapper .vng-faq-symbol,
html body .vng-faq-symbol,
html body .faq-icon {
    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, transform 0.2s ease !important;
}

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

html body .ck-strict-wrapper .pkr-faq-answer,
html body .pkr-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 {
    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 .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;
}
