/* Kundali page — Divya Jyotish reference match */

.page-kundali {
    background: var(--dj-cream, #FDF8F1);
    color: var(--dj-ink, #2D2521);
}

/* ---- Hero (soft-blend reference match) ---- */
.kd-hero {
    padding: 4.75rem 0 3.5rem;
    background: var(--dj-cream, #FDF8F1);
}

.kd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
}

.kd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    background: rgba(242, 145, 17, 0.12);
    color: #E88C1B;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 1.35rem;
}

.kd-hero-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.55rem, 4.6vw, 3.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: #2D2521;
}

.kd-hero-title span { display: block; }

.kd-hero-title-dark {
    color: #2D2521;
}

.kd-hero-title-accent {
    color: #E88C1B;
    font-style: italic;
}

.kd-hero-sub {
    max-width: 42ch;
    color: #6B6B6B;
    font-size: 1.03rem;
    line-height: 1.75;
    margin: 0 0 1.75rem;
}

.kd-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem 1.5rem;
}

.kd-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2521;
}

.kd-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(232, 140, 27, 0.55);
    color: #E88C1B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    background: transparent;
}

.kd-hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    display: block;
}

.kd-hero-img {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 30px 64px rgba(45, 37, 33, 0.16);
    display: block;
    -webkit-mask-image: none;
    mask-image: none;
}

/* ---- Insights + Form (reference match) ---- */
.kd-insights {
    padding: 4.5rem 0 4.75rem;
    background: #FFF9F2;
}

.kd-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: start;
}

.kd-insights-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C45A12;
    margin-bottom: 0.85rem;
}

.kd-insights-label::before,
.kd-insights-label::after {
    content: "";
    width: 22px;
    height: 1px;
    background: #C45A12;
    opacity: 0.75;
}

.kd-insights-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 700;
    color: #2A221C;
    margin: 0 0 0.85rem;
    line-height: 1.18;
    max-width: 16ch;
}

.kd-insights-title em {
    font-style: italic;
    color: #C45A12;
    font-weight: 700;
}

.kd-insights-ornament {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.85rem;
}

.kd-insights-ornament span {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A227, transparent);
}

.kd-insights-ornament i {
    width: 7px;
    height: 7px;
    border: 1.5px solid #C45A12;
    transform: rotate(45deg);
    display: block;
}

.kd-insight-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.25rem;
}

.kd-insight {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.kd-insight-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 90, 18, 0.45);
    color: #C45A12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.kd-insight strong {
    display: block;
    font-size: 0.98rem;
    color: #2A221C;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.kd-insight span {
    font-size: 0.84rem;
    color: #6B625A;
    line-height: 1.5;
}

.kd-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.9rem 1.7rem 1.55rem;
    box-shadow: 0 20px 48px rgba(45, 37, 33, 0.1);
    border: 1px solid rgba(196, 90, 18, 0.08);
    position: sticky;
    top: 5.5rem;
}

.kd-form-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #C45A12;
    margin: 0 0 1.4rem;
    line-height: 1.25;
}

.kd-form-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3A322C;
    margin-bottom: 0.4rem;
}

.kd-form-card .kd-input {
    width: 100%;
    border: 1.5px solid rgba(45, 37, 33, 0.12);
    border-radius: 10px;
    padding: 0.8rem 0.95rem;
    font-size: 0.94rem;
    color: #2A221C;
    background: #fff;
    margin-bottom: 1.05rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.kd-form-card .kd-input::placeholder {
    color: #9A9088;
}

.kd-form-card .kd-input:focus {
    outline: none;
    border-color: #C45A12;
    box-shadow: 0 0 0 3px rgba(196, 90, 18, 0.1);
}

.kd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.kd-btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: #E67A12;
    color: #fff;
    font-weight: 600;
    font-size: 0.96rem;
    box-shadow: 0 12px 28px rgba(230, 122, 18, 0.32);
    cursor: pointer;
}

.kd-btn-submit span { flex: 0 1 auto; }

.kd-btn-submit:hover {
    background: #D97706;
    color: #fff;
}

.kd-form-note {
    text-align: center;
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: var(--dj-muted, #6B6B6B);
}

/* ---- Preview (reference match) ---- */
.kd-preview {
    padding: 4.5rem 0 4.75rem;
    background: #FDF8F4;
}

.kd-preview-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.kd-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C45A12;
    margin-bottom: 0.85rem;
}

.kd-preview-head h2 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.9rem, 3.2vw, 2.55rem);
    font-weight: 700;
    color: #2A221C;
    margin: 0;
}

.kd-preview-head h2 em {
    font-style: italic;
    color: #A84B16;
}

.kd-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.kd-preview-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 12px 32px rgba(45, 37, 33, 0.06);
    border: 1px solid rgba(232, 140, 27, 0.14);
    min-width: 0;
}

.kd-preview-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.kd-preview-card-top h3 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #2A221C;
    line-height: 1.25;
}

.kd-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.kd-badge-green {
    background: rgba(34, 197, 94, 0.08);
    color: #16A34A;
    border: 1.5px solid #22C55E;
}

.kd-badge-outline {
    background: transparent;
    color: #C45A12;
    border: 1.5px solid #C45A12;
}

.kd-badge-outline:hover {
    background: rgba(196, 90, 18, 0.06);
    color: #C45A12;
}

.kd-preview-card--basic {
    background: #FFFCFA;
    border-color: rgba(232, 140, 27, 0.16);
}

.kd-preview-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(160px, 0.95fr);
    gap: 1rem 1.35rem;
    align-items: stretch;
    flex: 1;
}

.kd-preview-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.kd-preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.kd-preview-list li {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.92rem;
    color: #3A322C;
    margin-bottom: 0.72rem;
    line-height: 1.35;
}

.kd-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E88C1B;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.kd-lock {
    color: #C45A12;
    flex-shrink: 0;
    line-height: 0;
}

.kd-preview-book {
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-top: auto;
    box-shadow: 0 10px 22px rgba(45, 37, 33, 0.12);
}

.kd-preview-side {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.15rem;
}

.kd-preview-chart {
    width: 100%;
    max-width: 220px;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
    background: #fff;
    border-radius: 8px;
}

.kd-preview-caption {
    margin: 0;
    font-size: 0.78rem;
    color: #8A8178;
    line-height: 1.45;
    max-width: 26ch;
}

.kd-preview-chart-box {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 220px;
}

.kd-preview-side--locked .kd-preview-chart {
    filter: blur(2.4px) brightness(0.9);
    opacity: 0.8;
}

.kd-preview-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.kd-preview-lock span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(90, 55, 30, 0.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(45, 37, 33, 0.18);
}

/* ---- Why detailed ---- */
.kd-why {
    padding: 4.5rem 0 2.25rem;
    background: #FDFBF7;
}

.kd-why-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.kd-why-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E67E22;
    margin-bottom: 0.7rem;
}

.kd-why-head h2 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: #2A221C;
    line-height: 1.2;
}

.kd-why-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    width: 100%;
}

.kd-why-item {
    flex: 1 1 0;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    min-width: 0;
}

.kd-why-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: rgba(45, 37, 33, 0.12);
}

.kd-why-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 1.5px solid rgba(230, 126, 34, 0.65);
    color: #E67E22;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.kd-why-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: #2A221C;
    font-weight: 700;
}

.kd-why-item span {
    display: block;
    font-size: 0.86rem;
    color: #6B625A;
    line-height: 1.55;
    max-width: 20ch;
    margin: 0 auto;
}

/* ---- CTA (full banner composition) ---- */
.kd-cta {
    padding: 1.25rem 0 4.75rem;
    background: #FDFBF7;
}

.kd-cta-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: clamp(280px, 34vw, 360px);
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 4vw, 3.25rem);
    border-radius: 28px;
    overflow: hidden;
    color: #FFF8F0;
    background-color: #3D1F05;
    background-image: var(--kd-cta-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
    isolation: isolate;
}

.kd-cta-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(45, 20, 5, 0.08) 0%,
        rgba(45, 20, 5, 0.12) 38%,
        rgba(35, 15, 4, 0.55) 58%,
        rgba(28, 12, 4, 0.78) 100%
    );
}

.kd-cta-deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 96% 50%, transparent 0 68px, rgba(212, 140, 70, 0.16) 69px, transparent 71px),
        radial-gradient(circle at 96% 50%, transparent 0 102px, rgba(212, 140, 70, 0.1) 103px, transparent 105px);
    opacity: 0.9;
}

.kd-cta-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
}

.kd-cta-copy h2 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: #E8A45A;
    margin: 0 0 0.7rem;
    line-height: 1.25;
}

.kd-cta-copy p {
    margin: 0 0 1.35rem;
    color: rgba(255, 248, 240, 0.92);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 46ch;
}

.kd-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.kd-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.kd-cta-btn:hover { transform: translateY(-1px); }

.kd-cta-btn--light {
    background: #fff;
    color: #C45A12;
    border-color: #fff;
}

.kd-cta-btn--solid {
    background: #E67E22;
    color: #fff;
    border-color: #E67E22;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.28);
}

/* ---- Result chart ---- */
.kd-result {
    padding: 3.5rem 0 4rem;
    background: var(--dj-cream, #FDF8F1);
}

.kd-result-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 1.6rem;
    box-shadow: 0 14px 36px rgba(45, 37, 33, 0.08);
}

.kd-result-card h2 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
}

.kd-result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.kd-result-stat {
    background: rgba(232, 140, 27, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.kd-result-stat strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dj-orange-deep, #D97706);
    margin-bottom: 0.35rem;
}

.kd-result-stat span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dj-ink, #2D2521);
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .kd-why-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem 0;
    }
    .kd-why-item:nth-child(3)::after { display: none; }
    .kd-why-item:nth-child(n + 4)::after { display: none; }
}

@media (max-width: 991.98px) {
    .kd-hero { padding: 3rem 0 2.5rem; }
    .kd-hero-grid,
    .kd-insights-grid,
    .kd-preview-grid { grid-template-columns: 1fr; }
    .kd-hero-img { margin: 0 auto; width: min(100%, 560px); max-width: 560px; }
    .kd-hero-visual { order: -1; justify-content: center; }
    .kd-why-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 0;
    }
    .kd-why-item:nth-child(2n)::after { display: none; }
    .kd-cta-bar {
        justify-content: flex-end;
        align-items: flex-end;
        min-height: 420px;
        background-position: center top;
        padding-bottom: 1.75rem;
    }
    .kd-cta-bar::before {
        background: linear-gradient(
            180deg,
            rgba(45, 20, 5, 0.15) 0%,
            rgba(35, 15, 4, 0.45) 45%,
            rgba(28, 12, 4, 0.88) 100%
        );
    }
    .kd-cta-copy { width: 100%; }
}

@media (max-width: 767.98px) {
    .kd-insight-list,
    .kd-form-row,
    .kd-result-stats,
    .kd-preview-main { grid-template-columns: 1fr; }
    .kd-why-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .kd-why-item::after { display: none !important; }
    .kd-hero, .kd-insights, .kd-preview, .kd-why { padding: 3rem 0; }
    .kd-cta { padding-bottom: 3.25rem; }
    .kd-cta-bar {
        min-height: 460px;
        border-radius: 22px;
        padding: 1.35rem;
    }
    .kd-cta-actions { width: 100%; }
    .kd-cta-btn { width: 100%; white-space: normal; }
    .kd-preview-book { width: 100px; height: 100px; margin-top: 0.5rem; }
    .kd-preview-side { order: -1; margin-bottom: 0.75rem; }
}
