@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary: #065bab;
    --primary-dark: #044a8c;
    --primary-light: #2b7ad1;
    --primary-soft: #e6f0fa;
    --neutral-900: #1e1b17;
    --neutral-800: #3a342d;
    --neutral-700: #564e45;
    --neutral-600: #736b60;
    --neutral-500: #91897d;
    --neutral-400: #b0a89b;
    --neutral-300: #d0c8bb;
    --neutral-200: #e8e2d9;
    --neutral-100: #f7f3ed;
    --neutral-50: #fdfaf7;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(6, 91, 171, 0.08);
    --shadow-md: 0 8px 24px rgba(6, 91, 171, 0.12);
    --shadow-lg: 0 20px 48px -8px rgba(6, 91, 171, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0px;
    overflow-x: hidden;
    font-family: "Open Sans", sans-serif !important;
}

.astro-heading {
    text-align: center;
    margin-bottom: 40px;
}

.astro-heading h2 {
    font-weight: 900 !important;
    font-size: 36px !important;
    line-height: 100%;
    letter-spacing: 0%;
    color: #005DB1;
    margin-bottom: 0px;
}

.astro-heading p {
    margin: 0px;
    font-size: 20px !important;
    padding-top: 10px;
}

.astro_container {
    width: 1400px;
    margin: 0 auto;
    padding: 0px 30px;
}

.astro_banner {
    background-image: url(img/banner.png);
    background-position: center;
    height: 255px;
    display: flex;
    align-items: center;
}

.astro_banner::before {
    content: '';
    background: linear-gradient(89.93deg, #000000 10.6%, rgba(102, 102, 102, 0) 170.91%);
    width: 100%;
    height: 255px;
    position: absolute;
    z-index: 9;
}

.banner_content {
    z-index: 99;
    position: relative;
}

.banner_content h1 {
    margin: 0px;
    font-size: 45px;
    color: #EEE800;
}

.astro_logo {
    display: flex;
    justify-content: center;
}

.astro_logo img {
    width: 10%;
}

.guide_ai {
    display: grid;
    gap: 100px;
    grid-template-columns: repeat(4, 1fr);
}

.ask_card {
    background-image: url(img/card.jpg);
    width: 100%;
    height: 390px;
    /*background-size: cover;*/
    text-align: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.ask_card h3 {
    color: #EEE800;
    font-size: 26px;
    font-weight: bold !important;
    margin-bottom: 10px;
}

.ask_card ul {
    padding-left: 0px;
}

.ask_card li {
    color: #fff;
    font-size: 16px;
    line-height: 36px;
    list-style: none;
}

.ask_content {
    padding-top: 150px;
}

/* how it work css start here */
.how_work {
    display: grid;
    gap: 40px;
    position: relative;
    grid-template-columns: repeat(3, 1fr);
}

.how_work::after {
    content: '';
    position: absolute;
    left: 15%;
    bottom: 150px;
    transform: translateX(0%);
    width: 70%;
    background: #393939;
    height: 10px;
}

.hiw_card {
    text-align: center;
}

.hiw_card p {
    margin: 20px auto;
    font-weight: 600 !important;
}

.hiw_num {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #0b66b9;
    text-align: center;
    color: #EEE800;
    font-size: 70px;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 20px solid #015db2;
    margin: 0 auto;
    z-index: 99;
    position: relative;
}

/* how it work css end here */

/* why try css start here */
.why_pandit {
    padding: 50px 0px;
}

.why_try {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.why_try div {
    width: 30%;
    display: flex;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.why_try div img {
    width: 30%;
}

.why_try div p {
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* why try css end here */

/* ============================================================
                chat section css start here
=============================================================*/
.chat-section {
    margin: 10px 0 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px !important;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

.chat-card {
    background: var(--white);
    border-radius: 48px;
    overflow: hidden;
    border: 2px solid #D9D9D9;
}

.chat-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 750px;
    height: 750px;
}

.chat-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 750px;
    overflow: hidden;
    background-image: url(img/chat-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* doodle background only inside chat window */
.chat-window-container {
    position: relative;
    flex: 1;
    overflow-y: auto;
    z-index: 2;
}

.chat-window-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    /* change color here */
    z-index: 0;
}

.chat-window {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    position: relative;
    z-index: 2;
}

.chat-header {
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-dot {
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
}

.credit-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

.credit-badge {
    background: var(--primary-soft);
    padding: 8px 20px;
    border-radius: 40px;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--primary);
    font-size: 14px;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0px 22px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.clear-btn:hover {
    background: #bb2d3b;
}

/* messages */
.message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 85%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
}

.avatar,
.avatar-placeholder {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.avatar {
    border-radius: 26px;
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai .avatar {
    background: var(--primary-soft);
    color: var(--primary);
    position: relative;
}

.ai .avatar::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 40px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #00D05A;
    z-index: 99;
}



.user-message .avatar {
    background: var(--primary);
    color: white;
}

.bubble {
    padding: 16px 24px;
    font-size: 17px;
    line-height: 1.6;
    border-radius: 24px 24px 24px 8px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    word-break: break-word;
}

.user-message .bubble {
    background: #dcf7d6;
    border-color: #b8e0af;
    border-radius: 24px 24px 8px 24px;
}

/* chat message content (returned by API) */
.chat-message {
    font-size: 17px;
}

/* typing indicator */
.typing {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--neutral-400);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
        background: var(--primary);
    }
}

.chat-input-area {
    padding: 20px 160px;
    z-index: 3;
}

.input-group {
    display: flex;
    gap: 12px;
    background: var(--primary);
    border-radius: 60px;
    padding: 4px 4px 4px 24px;
    border: 1px solid var(--neutral-300);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 91, 171, 0.1);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 0;
    font-size: 15px;
    color: #fff;
    outline: none;
}

.input-group input::placeholder {
    color: #fff;
}

.send-btn {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    background: #fff;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* birth form */
.birth-form-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.birth-form-bubble {
    background: var(--white);
    border-radius: 28px 28px 28px 8px;
    padding: 28px;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
}

.birth-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 22px;
}

.birth-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.birth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.birth-input-group label {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 13px;
}

.birth-input-field {
    display: flex;
    align-items: center;
    background: var(--neutral-100);
    border-radius: 50px;
    padding: 0 16px;
    border: 1px solid var(--neutral-300);
    position: relative;
}

.birth-input-field i {
    color: var(--primary);
    font-size: 16px;
    margin-right: 10px;
}

.birth-input-field input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    outline: none;
    font-size: 14px;
}

.location-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    padding-left: 16px;
    display: none;
}

.location-error.show {
    display: block;
}

.birth-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    margin-top: 16px;
    cursor: pointer;
}

.birth-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.birth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.optional-badge {
    background: var(--neutral-200);
    color: var(--neutral-600);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 11px;
    margin-left: 8px;
}

.required-star {
    color: #dc3545;
    margin-left: 3px;
}

.birth-note {
    font-size: 12px;
    color: var(--neutral-500);
    text-align: center;
    margin-top: 12px;
}

/* init overlay */
.chat-init-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    z-index: 100;
    border-radius: 0;
    padding: 40px;
    margin: 20px;
    cursor: pointer;
}

.init-icon {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: float 3s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.init-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 80%;
}

.init-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #005CB2;
    margin-top: 0px;
    margin-bottom: 12px;
}

.init-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #005CB2;
    margin-bottom: 30px;
}

.init-btn {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    padding: 16px 20px;
    border-radius: 10px;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid var(--primary);
}

.init-btn i {
    font-size: 30px;
}

.init-btn:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chat-active-area {
    display: none;
    flex-direction: column;
    width: 100%;
}

/* toast */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    animation: slideToast 0.3s;
}

@keyframes slideToast {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* feedback button */
.feed_back {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background-color: #065bab;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
    z-index: 99;
    animation: bounce2 2s ease infinite;
    cursor: pointer;
}

.feed_back a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes bounce2 {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* New message indicator */
.new-message-btn {
    position: sticky;
    bottom: 20px;
    right: 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: gentlePop 0.5s ease;
    border: 1px solid white;
    margin: 0 20px 0 auto;
}

.new-message-btn i {
    font-size: 16px;
}

.new-message-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

@keyframes gentlePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ----- RESPONSIVE (condensed) ----- */
@media screen and (max-width: 768px) {

    .hero-section {
        padding: 30px 0 20px;
        border-radius: 0 0 30px 30px;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px !important;
    }

    .hero-text p {
        font-size: 16px !important;
        margin: 0 auto 20px;
    }

    .hero-image i {
        font-size: 120px;
    }

    .section-header h2 {
        font-size: 28px !important;
    }

    .section-header p {
        font-size: 16px !important;
    }

    .chat-card {
        border-radius: 24px;
    }

    .chat-panel {
        height: 700px;
    }
    .chat-grid {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 700px;
        height: 700px;
    }

    .chat-header {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .credit-actions {
        width: 100%;
        justify-content: space-between;
    }

    .chat-window {
        padding: 16px;
    }

    .message {
        max-width: 95%;
    }

    .avatar,
    .avatar-placeholder {
        width: 42px;
        height: 42px;
    }

    .bubble {
        padding: 12px 18px;
        font-size: 14px;
    }

    .birth-form-bubble {
        max-width: 100%;
        padding: 16px;
    }

    .birth-input-row {
        grid-template-columns: 1fr;
    }

    .chat-init-overlay {
        margin: 12px;
        padding: 0px;
    }

    .init-icon {
        font-size: 50px;
    }

    .init-title {
        font-size: 24px !important;
    }

    .init-subtitle {
        font-size: 14px !important;
    }

    .feed_back {
        padding: 10px 12px;
        font-size: 12px;
    }

    .new-message-btn {
        right: 16px;
        bottom: 16px;
        padding: 8px 18px;
    }
}

/* ===============================================================
                    chat section css end here
================================================================*/

/* Large Desktop */
@media (max-width: 1400px) {
    .astro_container {
        max-width: 1200px;
    }
    .ask_card {
	height: 316px;
    }
.ask_content {
    padding-top: 100px;
}
.ask_card h3 {
    font-size: 20px !important;
}

}

/* Laptop */
@media (max-width: 1200px) {
    .astro_container {
        max-width: 1000px;
        padding: 0 24px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .astro_container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .astro_container {
        padding: 0 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .astro_container {
        padding: 0 12px;
    }
    .guide_ai {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    .astro-heading h2 {
        font-size: 20px !important;
    }
    .astro-heading p {
        font-size: 14px;
    }
    .why_pandit {
        padding: 20px 0px;
    }
    .astro-heading {
        text-align: center;
        margin-bottom: 20px;
    }
    .ask_card {
        height: 288px;
    }
    .ask_card h3 {
        color: #EEE800;
        font-size: 17px !important;
        font-weight: 900 !important;
        margin-bottom: 10px;
    }
    .ask_content {
        padding-top: 90px;
    }
    .ask_card li {
        font-size: 14px;
        line-height: 26px;
    }
    .how_work {
        display: flex;
        flex-direction: column;
    }
    .hiw_num {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #0b66b9;
        text-align: center;
        color: #EEE800;
        font-size: 50px;
        font-weight: 700;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 10px solid #015db2;
        margin: unset;
	z-index: 99;
    }
    .hiw_card p {
        text-align: left;
        margin: 0px;
    }
    .how_work::after {
        content: '';
        position: absolute;
        left: 12%;
        bottom: 80px;
        transform: translateX(0%);
        height: 60%;
        background: #393939;
        width: 10px;
        z-index: 9;
    }
    .hiw_card {
        display: grid;
        align-items: center;
        grid-template-columns: 115px 1fr;
        gap: 20px;
    }
    .why_try {
        gap: 20px;
        justify-content: space-between;
    }
    .why_try div {
        width: 45%;
        text-align: left;
    }
    .why_try div p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
    .chat-input-area {
        padding: 20px;
        z-index: 3;
    }
    .init-buttons {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    .init-btn {
        gap: 10px;
        padding: 16px 6px;
        font-size: 12px;
    }
    .banner_content h1 {
        font-size: 20px !important;
    }
    .astro_banner {
        height: 120px;
    }
    .astro_banner::before {
        height: 120Px;
    }
    .astro_logo img {
        width: 40%;
    }
    .birth-input-field input {
    	flex: 1;
    	border: none;
    	background: transparent;
    	padding: 8px 0;
    	outline: none;
    	font-size: 12px;
     }
    .input-group input{
	font-size: 12px;
	padding: 6px 0px;	
    }
    .send-btn{
    	width: 45px;
        height: 45px;
    }
    .birth-submit-btn{
    	padding: 6px 0px;
	font-size: 12px;
    }
    .ai .avatar::after{
	left: 30px;
    	width: 10px;
    	height: 10px;
    }
    .chat-message {
    	font-size: 14px;
    }
}
.en_upr_header.notranslate {
    display: none;
}