/* ── ASTROBHAGYA FREE KUNDALI PAGE STYLESHEET (public/css/pages/kundali.css) ── */

.astro-kundali-wrapper {
    font-family: var(--font-body, "Inter", sans-serif);
    color: var(--color-navy, #1a237e);
    background-color: var(--color-white, #ffffff);
    overflow-x: hidden;
    width: 100%;
}

/* ── UNIFIED 100% FULL-WIDTH FLUID CONTAINER SYSTEM ── */
.astro-kundali-wrapper .astro-fluid-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .astro-kundali-wrapper .astro-fluid-container {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (min-width: 1200px) {
    .astro-kundali-wrapper .astro-fluid-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (min-width: 1600px) {
    .astro-kundali-wrapper .astro-fluid-container {
        padding-left: 64px;
        padding-right: 64px;
    }
}

/* ── SECTION HEADERS & BADGES ── */
.astro-kundali-wrapper .astro-section-header {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.astro-kundali-wrapper .astro-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background-color: var(--color-primary-light, #fff7ed);
    border: 1px solid var(--color-primary-border, #fed7aa);
    color: var(--color-primary, #f37021);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.astro-kundali-wrapper .astro-section-title {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    line-height: 1.25;
    margin-bottom: 6px;
    text-align: center;
}

@media (min-width: 768px) {
    .astro-kundali-wrapper .astro-section-title {
        font-size: 28px;
    }
}

.astro-kundali-wrapper .astro-section-subtitle {
    font-size: 14px;
    color: var(--color-text-slate, #475569);
    margin-bottom: 0;
    text-align: center;
    max-width: 720px;
    line-height: 1.5;
}

/* ── 1. HERO SECTION ─────────────────────────────────────────────────── */
.astro-kundali-hero {
    padding-top: 14px;
    padding-bottom: 28px;
    background-color: var(--color-white, #ffffff);
    border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
}

.astro-kundali-hero-content {
    max-width: 860px;
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.astro-kundali-hero-title {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy, #1a237e);
    margin-bottom: 10px;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .astro-kundali-hero-title {
        font-size: 36px;
    }
}

.astro-kundali-hero-subtitle {
    font-size: 15px;
    color: var(--color-text-slate, #475569);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 720px;
}

/* ── 2. FORM & SAVED REPORTS SECTION ─────────────────────────────────── */
.astro-kundali-main-section {
    padding-top: 32px;
    padding-bottom: 48px;
    background-color: var(--color-bg-neutral, #f8fafc);
    border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
}

.astro-kundali-inner-layout,
.astro-kundali-guest-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Form Main Card */
.astro-kundali-form-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.04);
    width: 100%;
}

@media (min-width: 768px) {
    .astro-kundali-form-card {
        padding: 32px 36px;
    }
}

.astro-form-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-border-subtle, #f1f5f9);
}

.astro-form-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--color-primary-light, #fff7ed);
    color: var(--color-primary, #f37021);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.astro-form-card-title {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    margin: 0;
}

.astro-form-card-desc {
    font-size: 13px;
    color: var(--color-text-slate, #64748b);
    margin: 2px 0 0 0;
}

/* Guidance Callout Tip */
.astro-form-tip {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.astro-form-tip i {
    color: var(--color-primary, #f37021);
    font-size: 16px;
    flex-shrink: 0;
}

.astro-form-tip p {
    font-size: 13.5px;
    color: var(--color-navy, #1a237e);
    margin: 0;
    line-height: 1.5;
}

/* Form Fields & Inputs */
.astro-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .astro-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }
}

.astro-field-group {
    display: flex;
    flex-direction: column;
}

.astro-field-group.full-width {
    grid-column: 1 / -1;
}

.astro-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy, #1a237e);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.astro-field-label .required-star {
    color: #ef4444;
    margin-left: 2px;
}

.astro-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.astro-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-slate, #94a3b8);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.astro-input-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--color-border-subtle, #cbd5e1);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-navy, #1a237e);
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.astro-input-control:focus {
    border-color: var(--color-primary, #f37021);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.astro-input-control:focus + .astro-input-icon,
.astro-input-wrapper:focus-within .astro-input-icon {
    color: var(--color-primary, #f37021);
}

.astro-select-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--color-border-subtle, #cbd5e1);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-navy, #1a237e);
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.astro-select-control:focus {
    border-color: var(--color-primary, #f37021);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.astro-field-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    min-height: 16px;
}

/* Submit CTA Button */
.astro-form-action-row {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border-subtle, #f1f5f9);
}

.btn-kundali-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background-color: var(--color-primary, #f37021);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(243, 112, 33, 0.3);
}

.btn-kundali-submit:hover {
    background-color: var(--color-primary-hover, #e06015);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 112, 33, 0.4);
}

.btn-kundali-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background-color: #cbd5e1;
    color: #475569 !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
}

/* Guest Login Callout Card */
.astro-guest-login-card {
    margin-top: 20px;
    background-color: #fefce8;
    border: 1px solid #fef08a;
    border-left: 4px solid #eab308;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.astro-guest-login-card i {
    color: #ca8a04;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.astro-guest-login-card p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #713f12;
    margin: 0;
}

/* ── SAVED REPORTS SIDEBAR ───────────────────────────────────────────── */
.astro-saved-reports-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.astro-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-border-subtle, #f1f5f9);
}

.astro-saved-header h3 {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh-saved {
    background: transparent;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-navy, #1a237e);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh-saved:hover {
    background-color: var(--color-primary-light, #fff7ed);
    color: var(--color-primary, #f37021);
    border-color: var(--color-primary-border, #fed7aa);
}

.astro-saved-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.astro-saved-item {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.astro-saved-item:hover {
    border-color: var(--color-primary-border, #fed7aa);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.05);
    transform: translateY(-1px);
}

.astro-saved-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.astro-saved-info {
    flex: 1;
    min-width: 0;
    text-decoration: none !important;
}

.astro-saved-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astro-saved-meta {
    font-size: 11.5px;
    color: var(--color-text-slate, #64748b);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-delete-saved {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.btn-delete-saved:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* ── 3. EDUCATIONAL FEATURE CARDS ────────────────────────────────────── */
.astro-kundali-benefits-section {
    padding-top: 48px;
    padding-bottom: 56px;
    background-color: var(--color-white, #ffffff);
    border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
}

.astro-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
}

@media (min-width: 640px) {
    .astro-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .astro-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.astro-benefit-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.astro-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.06);
    border-color: var(--color-primary-border, #fed7aa);
}

.astro-benefit-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--color-primary-light, #fff7ed);
    color: var(--color-primary, #f37021);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.astro-benefit-title {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    margin-bottom: 8px;
}

.astro-benefit-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-slate, #475569);
    margin: 0;
}

/* Informational Content Block */
.astro-kundali-guide-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    width: 100%;
}

@media (min-width: 768px) {
    .astro-kundali-guide-card {
        padding: 36px 40px;
    }
}

.astro-kundali-guide-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-slate, #475569);
    margin-bottom: 16px;
}

.astro-kundali-guide-card p:last-child {
    margin-bottom: 0;
}

/* ── 4. FREQUENTLY ASKED QUESTIONS (ACCORDION) ───────────────────────── */
.astro-kundali-faq-section {
    padding-top: 48px;
    padding-bottom: 60px;
    background-color: var(--color-bg-neutral, #f8fafc);
}

.astro-faq-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.astro-faq-item {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle, #e2e8f0);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.astro-faq-item:hover {
    border-color: var(--color-primary-border, #fed7aa);
}

.astro-faq-header {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    outline: none;
    text-decoration: none !important;
}

.astro-faq-question {
    font-family: var(--font-heading, "Poppins", sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy, #1a237e);
    margin: 0;
    line-height: 1.4;
}

.astro-faq-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-bg-neutral, #f1f5f9);
    color: var(--color-navy, #1a237e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.astro-faq-header[aria-expanded="true"] .astro-faq-arrow,
.astro-faq-header:not(.collapsed) .astro-faq-arrow {
    transform: rotate(180deg);
    background-color: var(--color-primary-light, #fff7ed);
    color: var(--color-primary, #f37021);
}

.astro-faq-body {
    padding: 0 22px 20px 22px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--color-text-slate, #475569);
    border-top: 1px solid var(--color-border-subtle, #f1f5f9);
    padding-top: 14px;
}
