/**
 * NETRAA — Compact, Modern & Mobile-Optimized Kundli Form Stylesheet
 */
:root {
    --k-primary: #7c3aed;
    --k-primary-dark: #6d28d9;
    --k-accent: #ea580c;
    --k-accent-hover: #c2410c;
    --k-gold: #f59e0b;
    --k-dark: #1e1b4b;
    --k-text: #1e293b;
    --k-muted: #64748b;
    --k-border: #e2e8f0;
    --k-bg-card: #ffffff;
    --k-radius: 16px;
    --k-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --k-shadow-hover: 0 20px 40px -10px rgba(234, 88, 12, 0.15);
}

/* Base Page Setup */
.kundli-page-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
}

/* Compact Premium Kundli Card */
.kundli-form-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 16px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    padding: 0;
    transition: box-shadow 0.3s ease;
    overflow: visible;
}

/* Distinct Majestic Vedic Banner Header */
.kundli-card-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 55%, #1e1b4b 100%);
    color: #ffffff;
    padding: 1.25rem 1.75rem 1.15rem 1.75rem;
    border-bottom: 3px solid #f59e0b;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.kundli-card-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.kundli-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fef08a;
    border: 1px solid rgba(254, 240, 138, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.kundli-hero-badge .badge-icon {
    color: #fbbf24;
    font-size: 0.85rem;
}

.kundli-hero-badge .badge-dot {
    opacity: 0.4;
}

.kundli-hero-badge .badge-extra {
    color: #fef3c7;
    font-weight: 600;
    font-size: 0.72rem;
}

.kundli-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.2rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.kundli-sub {
    font-size: 0.86rem;
    color: #cbd5e1;
}

.bg-emerald-badge {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.4);
    padding: 0.3rem 0.75rem;
    font-weight: 700;
    font-size: 0.78rem;
}

.bg-shield-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.78rem;
}

/* Form Body */
.kundli-form-body {
    padding: 1.35rem 1.65rem;
    background: #ffffff;
}

/* Form Pods */
.form-pod {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    margin-bottom: 1.15rem;
}

.form-pod:focus-within {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.pod-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e2e8f0;
}

.pod-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.pod-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Form Controls & High Contrast Inputs */
.form-label-custom {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.custom-input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.custom-input {
    width: 100%;
    height: 44px;
    background-color: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 9px;
    padding: 0.5rem 0.85rem 0.5rem 2.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.custom-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

.custom-input:focus + .input-icon,
.custom-input-box:focus-within .input-icon {
    color: #ea580c;
}

/* Gender Segmented Pills */
.gender-pill-group {
    background: #e2e8f0;
    padding: 3px;
    border-radius: 9px;
    border: 2px solid #94a3b8;
    gap: 3px;
    height: 44px;
}

.gender-pill-btn {
    border: none;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    white-space: nowrap;
}

.gender-pill-btn:hover {
    color: #0f172a;
    background: #ffffff;
}

.gender-pill-btn.active {
    background: #ea580c;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

/* Quick City Selection Chips */
.quick-cities-bar {
    margin-top: 0.35rem;
}

.quick-city-tag {
    font-size: 0.74rem;
    font-weight: 800;
    color: #475569;
    margin-right: 0.25rem;
}

.city-chip {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.city-chip:hover {
    background: #fff7ed;
    color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-1px);
}

.city-chip.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

/* Chart Style Cards */
.chart-style-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chart-style-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.chart-style-card.active {
    border-color: #ea580c;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

.custom-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 13px 9px;
    padding-right: 2.2rem;
}

/* Autocomplete Dropdown */
.autocomplete-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16);
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results::-webkit-scrollbar {
    width: 5px;
}
.autocomplete-results::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 12px;
}
.autocomplete-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.autocomplete-item {
    padding: 0.65rem 0.95rem;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    white-space: normal;
    word-break: normal;
    line-height: 1.35;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #fff7ed !important;
    color: var(--k-accent) !important;
}

/* Advanced Settings Accordion */
.advanced-options-toggle a {
    color: var(--k-primary);
    transition: color 0.2s ease;
}
.advanced-options-toggle a:hover {
    color: var(--k-primary-dark);
}
.advanced-card {
    background: #faf5ff !important;
    border: 1px solid #ede9fe !important;
}

/* Submit CTA Button */
.kundli-submit-btn {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px -4px rgba(234, 88, 12, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    cursor: pointer;
    width: 100%;
}

.kundli-submit-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.55);
}

.kundli-submit-btn .btn-text {
    font-size: 1.05rem;
    font-weight: 800;
}

.kundli-submit-btn .btn-subtext {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.92;
}

/* 4-Card Feature Discovery Showcase */
.kundli-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.95rem;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 0.6rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    transform: translateY(-1.5px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

.feature-icon.icon-dosha { background: #fef2f2; color: #dc2626; }
.feature-icon.icon-dasha { background: #eef2ff; color: #4f46e5; }
.feature-icon.icon-shadbala { background: #f0fdf4; color: #16a34a; }
.feature-icon.icon-remedies { background: #fffbeb; color: #d97706; }

.feature-info h6 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1px 0;
    line-height: 1.2;
}

.feature-info p {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

/* Mobile Responsive Optimization */
@media (max-width: 991.98px) {
    .kundli-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .kundli-form-card {
        padding: 1.35rem 1rem;
        border-radius: 14px;
        margin-left: -5px;
        margin-right: -5px;
    }

    .form-pod {
        padding: 1rem 0.85rem;
    }

    .gender-pill-btn {
        font-size: 0.78rem;
        padding: 0 0.35rem;
    }

    .kundli-title {
        font-size: 1.4rem;
    }

    .kundli-sub {
        font-size: 0.82rem;
    }

    .custom-input {
        height: 44px;
        font-size: 0.88rem;
        padding-left: 2.4rem;
    }

    .input-icon {
        left: 11px;
        font-size: 0.85rem;
    }

    .kundli-submit-btn {
        padding: 0.85rem 1rem;
    }

    .kundli-submit-btn .btn-text {
        font-size: 1.05rem;
    }

    .kundli-features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .chart-style-group {
        flex-direction: column;
    }
}
