/**
 * Omaaa Astro — Astrotalk-Style Kundli UI
 * Benchmark: astrotalk.com/freekundli
 */

.astrotalk-wrapper {
    max-width: 1240px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Breadcrumbs */
.astrotalk-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}
.astrotalk-breadcrumbs a {
    color: #b45309;
    text-decoration: none;
    font-weight: 500;
}
.astrotalk-breadcrumbs a:hover {
    text-decoration: underline;
}

/* 2-Column Layout: Main Form + Sidebar */
.astrotalk-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .astrotalk-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Main Form Card */
.astrotalk-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
    .astrotalk-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
}

/* Card Header */
.astrotalk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.astrotalk-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.astrotalk-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FEF9C3;
    border: 1.5px solid #FDE047;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B45309;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.2);
}

.astrotalk-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.3px;
}

.astrotalk-saved-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}
.astrotalk-saved-btn:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: #fefce8;
}

/* Form Groups & Labels */
.astrotalk-group {
    margin-bottom: 20px;
    position: relative;
}

.astrotalk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.astrotalk-label-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

/* Modern Flexbox Input Box (Guaranteed Zero Icon Overlap) */
.astrotalk-input-box {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    height: 50px !important;
    padding: 0 14px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
}

.astrotalk-input-box:focus-within,
.astrotalk-input-box.active {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.astrotalk-box-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.astrotalk-box-control,
input.astrotalk-box-control {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.astrotalk-box-control::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Fallback for legacy class */
.astrotalk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.astrotalk-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.astrotalk-input {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px 0 48px !important;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.astrotalk-input:focus,
.astrotalk-input.active {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.astrotalk-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* 2-Column Row for Gender & Birth Date */
.astrotalk-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .astrotalk-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Gender Toggle Buttons */
.astrotalk-gender-box {
    display: flex;
    gap: 12px;
    height: 50px;
}

.astrotalk-gender-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.astrotalk-gender-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.astrotalk-gender-btn.active {
    background: #FFFBEB;
    border-color: #F59E0B;
    color: #92400E;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Helper Text */
.astrotalk-helper-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

/* Datepicker Interactive Popover (Astrotalk Style) */
.astrotalk-datepicker-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    width: 320px;
    padding: 16px;
    display: none;
}

.astrotalk-datepicker-popover.open {
    display: block;
    animation: popoverFadeIn 0.2s ease-out;
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.astrotalk-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.astrotalk-dp-nav {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.astrotalk-dp-nav:hover {
    background: #f3f4f6;
    color: #111827;
}

.astrotalk-dp-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.astrotalk-dp-select-btn {
    background: #f3f4f6;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.astrotalk-dp-select-btn:hover {
    background: #e5e7eb;
}

/* Days of Week */
.astrotalk-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Days Grid */
.astrotalk-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.astrotalk-dp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.astrotalk-dp-day:hover {
    background: #FEF08A;
    color: #854D0E;
}
.astrotalk-dp-day.selected {
    background: #FACC15;
    color: #713F12;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.4);
}
.astrotalk-dp-day.empty {
    visibility: hidden;
    pointer-events: none;
}

/* Year & Month Selection View inside Popover */
.astrotalk-dp-year-view,
.astrotalk-dp-month-view {
    display: none;
    max-height: 240px;
    overflow-y: auto;
}

.astrotalk-dp-year-view.active,
.astrotalk-dp-month-view.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 8px;
}

.astrotalk-dp-year-item,
.astrotalk-dp-month-item {
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
}
.astrotalk-dp-year-item:hover,
.astrotalk-dp-month-item:hover {
    background: #FEF08A;
    border-color: #FACC15;
    color: #713F12;
}
.astrotalk-dp-year-item.selected,
.astrotalk-dp-month-item.selected {
    background: #FACC15;
    border-color: #EAB308;
    color: #713F12;
}

/* City Autocomplete Results Dropdown */
.astrotalk-city-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    padding: 6px;
    list-style: none;
    margin: 0;
}
.astrotalk-city-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.astrotalk-city-item:hover,
.astrotalk-city-item.active {
    background: #FEF9C3;
    color: #854D0E;
}

/* Settings & Meta Actions Bar */
.astrotalk-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 24px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.astrotalk-meta-btn {
    background: transparent;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.astrotalk-meta-btn:hover {
    background: #fefce8;
}

/* Primary Submit Button (Astrotalk Golden Yellow) */
.astrotalk-submit-btn {
    width: 100%;
    height: 52px;
    background: #F4C430;
    background: linear-gradient(180deg, #FACC15 0%, #EAB308 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    color: #1F2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}
.astrotalk-submit-btn:hover {
    background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.45);
}
.astrotalk-submit-btn:active {
    transform: translateY(0);
}

/* Sample Report Promo Card (Below Form) */
.astrotalk-sample-banner {
    margin-top: 24px;
    background: #FFFDF0;
    border: 1px solid #FEF08A;
    border-left: 5px solid #EAB308;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.08);
}

@media (max-width: 680px) {
    .astrotalk-sample-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px;
    }
}

.astrotalk-sample-tag {
    font-size: 11px;
    font-weight: 800;
    color: #B45309;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.astrotalk-sample-title {
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.astrotalk-sample-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.astrotalk-sample-btn {
    background: #FACC15;
    border: 1px solid #EAB308;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1F2937;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
    transition: all 0.2s ease;
}
.astrotalk-sample-btn:hover {
    background: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
}

/* Right Sidebar: Experts Card */
.astrotalk-sidebar-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.astrotalk-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.astrotalk-experts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.astrotalk-expert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.astrotalk-expert-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.astrotalk-expert-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.astrotalk-expert-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FEF08A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.astrotalk-expert-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.astrotalk-expert-meta {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 2px 0;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astrotalk-expert-rating {
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
}

.astrotalk-chat-btn {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.18s ease;
}
.astrotalk-chat-btn:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.astrotalk-all-experts-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.astrotalk-all-experts-btn:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: #fefce8;
}
