/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(231, 231, 231);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.logo img {
    height: 40px;
}

.menu {
    position: relative;
}

.hamburger {
    font-size: 28px;
    cursor: pointer;
    display: none;
}

.menu-dropdown {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease; /* Smooth open/close */
}

.menu-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-item:hover {
    color: #007BFF;
}

/* Main Content */
/* ========== MAIN CONTENT WITH DYNAMIC BACKGROUND ========== */

/* Main Content Wrapper */
.content {
    position: relative;
    overflow: hidden;
    
    /* Flexbox Layout */
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
    /* Spacing */
    padding: 50px 80px;
    gap: 50px;
    
    /* No direct background - using ::before pseudo-element instead */
    background: none;
    
    /* Ensure content stays above background */
    z-index: 1;
}

/* Background Layer - Dynamic Image Changer */
.content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Alternative: inset: 0; */
    
    /* Dynamic background image via CSS variables */
    background-image: var(--bg-image, url('../img/desktop-background_1.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Smooth fade transition */
    opacity: var(--bg-opacity, 1);
    transition: opacity 0.8s ease-in-out;
    
    /* Keep background behind content */
    z-index: -1;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center;
        padding: 50px 20px; /* Less padding on mobile */
        gap: 30px;
    }
    
    /* Adjust background position for mobile */
    .content::before {
        background-position: center top;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .content::before {
        transition: none; /* Disable animation for users who prefer reduced motion */
    }
}




/* Welcome Section */
.welcome {
    text-align: left;
    max-width: 600px;
    color: #000; /* Correct the comment: Text color black */
    align-self: center;
}

.welcome h1 {
    font-size: 3em;
    font-weight: bold;
    color: #000;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid black;
    width: 0;
    animation: typing 2s steps(40, end) forwards, blink1 0.8s step-end infinite alternate, hideCursor 2.8s forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink1 {
    0%, 100% { border-color: transparent; }
    50% { border-color: black; }
}

@keyframes hideCursor {
    0% { border-right-color: black; }
    100% { border-right-color: transparent; }
}

.welcome h2 {
    margin-top: 20px;
    font-size: 1.5em;
    color: #5e5e5e;
}

#subText {
    margin-top: 10px;
    font-size: 1em;
    color: #2b2b2b;
}

#ctaButton {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ctaButton:hover {
    background-color: #0056b3;
}

/* ===== FORM CONTAINER - UPDATED DESIGN ===== */
.form-container-res {
    margin-left: 14%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(80vh - 140px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== LEFT SIDE - HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #4338ca 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 50px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 20px;
}

/* Logo and Back Button Header */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section .logo {
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

/* Hero Content with Mountain */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 60px;
}

/* Mountain Silhouette with CSS */
.mountain-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
}

.mountain-scene::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    clip-path: polygon(0% 100%, 15% 60%, 30% 70%, 45% 40%, 60% 55%, 75% 35%, 100% 73%, 100% 100%);
    filter: blur(1px);
}

.mountain-scene::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 60%;
    height: 90%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    clip-path: polygon(0% 70%, 20% 45%, 40% 55%, 60% 30%, 80% 40%, 100% 20%, 100% 100%, 0% 100%);
}

/* Hero Text */
.hero-text {
    bottom: 150px;
    left: 50px;
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    color: #ffffff;
    font-size: 2em;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
}


/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 60px;
}

/* ===== RIGHT SIDE - FORM SECTION ===== */
.form-section {
    background: #2d2d3d;
    padding: 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    border-top-left-radius: 0px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 0px;

}

/* Header */
.form-section header {
    display: block;
}

.form-section header h1 {
    font-size: 2em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.form-section header p {
    font-size: 0.95em;
    color: #a0a0b0;
    margin-bottom: 30px;
}

.form-section header p a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}

.form-section header p a:hover {
    text-decoration: underline;
}

/* Form Grid - Two Columns */
.form-grid-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

/* Form Groups */
.form-group1 {
    display: flex;
    flex-direction: column;
}

.form-group1.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.form-group1 label {
    font-size: 0.85em;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Inputs */
.form-group1 input,
.form-group1 textarea {
    background: #3a3a4d;
    border: 1px solid #4a4a5d;
    border-radius: 8px;
    padding: 5px 14px;
    color: #ffffff;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group1 input::placeholder,
.form-group1 textarea::placeholder {
    color: #7a7a8d;
}

.form-group1 input:focus,
.form-group1 textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: #424252;
}

/* Textarea specific */
.form-group1 textarea {
    resize: vertical;
    min-height: 10px;
}

/* Password Container */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
    background: #3a3a4d;
    border: 1px solid #4a4a5d;
    border-radius: 8px;
    padding: 5px 14px;
    padding-right: 40px;
    color: #ffffff;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.password-container input::placeholder {
    color: #7a7a8d;
}

.password-container input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #424252;
}

.toggle-password {
    position: absolute;
    right: 12px;
    font-size: 1.1em;
    color: #a0a0b0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #ffffff;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #3a3a4d;
    border-radius: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.terms-checkbox label {
    color: #e0e0e0;
    font-size: 0.85em;
    cursor: pointer;
    margin: 0;
}

.terms-checkbox label a {
    color: #8b5cf6;
    text-decoration: none;
}

.terms-checkbox label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Social Login Section */
.social-login {
    text-align: center;
}

.divider-text {
    display: block;
    color: #7a7a8d;
    font-size: 0.85em;
    margin-bottom: 18px;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #4a4a5d;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Google Button */
.social-btn.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;
    min-width: 220px;

    background: #ffffff;
    color: #444;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* SVG icon */
.social-btn.google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hover */
.social-btn.google-btn:hover {
    background: #f8f9fa;
    border-color: #cfd0d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Active */
.social-btn.google-btn:active {
    transform: scale(0.98);
}


/* ===== END OF FORM CONTAINER STYLES ===== */

.small-link {
    font-size: 0.9em;
    color: #007BFF;
    text-decoration: none;
}

.small-link:hover {
    text-decoration: underline;
}

/* Footer Section */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-btn {
    font-size: 1.2em;
    color: #555;
    transition: color 0.3s;
}

.social-btn:hover {
    color: #007BFF;
}

/* Chat Button */
/* Chat Button - Glassy with visible icon */
.chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px;
    border-radius: 50%;
    font-size: 24px; /* ✅ Increased icon size */
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    z-index: 100;
    transition: all 0.3s ease;
    width: 60px; /* ✅ Fixed width */
    height: 60px; /* ✅ Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-button i {
    font-size: 28px; /* ✅ Ensure icon is large */
    line-height: 1;
}

.chat-button:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 1), rgba(0, 123, 255, 1));
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.6);
}

.chat-button:active {
    transform: scale(0.95);
}

/* Chat Popup - Glassy */
.chat-popup {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3); /* ✅ More visible */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 350px; /* ✅ Slightly wider */
    max-height: 550px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Chat Header - Glassy */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(74, 105, 189, 0.9), rgba(52, 73, 132, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Right Section in Header */
.right-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Online Status Indicator */
.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(74, 222, 128, 1);
    }
}

.online-text {
    font-size: 0.85em;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-btn,
.close-btn1 {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 24px; /* ✅ Larger */
    cursor: pointer;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

.close-btn:hover,
.close-btn1:hover {
    background: rgba(255, 59, 48, 0.9);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

/* Chat Success Popup - Fixed positioning */
.chat-success-popup {
    position: absolute;
    top: 2px; /* ✅ Below header */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 222, 128, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.5em;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
    z-index: 1002;
    animation: slideDown 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* User Info Form - Improved spacing */
#user-info {
    padding: 2px;
}

/* Chat Messages Area */
#chat-messages {
    flex: 1;
    max-height: 340px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Message Bubbles */
.message-bubble {
    background: rgba(225, 240, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    align-self: flex-start;
    word-break: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 75%;
    position: relative;
}

.message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* User Messages */


/* Support Messages */
.support-message {
    background: rgba(255, 152, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 152, 0, 0.4) !important;
    border-left: 3px solid rgba(255, 152, 0, 0.8);
}

/* AI Messages */
.ai-message {
    background: rgba(0, 109, 119, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 109, 119, 0.3) !important;
    border-left: 4px solid rgba(0, 109, 119, 0.8);
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0, 109, 119, 0.15);
}

.message-time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 6px;
    text-align: right;
    font-weight: 500;
}

/* Scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.6);
}

/* Chat Input Form */
/* ✅ FIXED: Chat Input Form - Input and Button on Same Row */
#chat-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: nowrap; /* ✅ Prevent wrapping */
}

#chat-form input {
    flex: 1 1 auto; /* ✅ Grows to fill space */
    min-width: 0; /* ✅ Critical: Allows input to shrink below content size */
    max-width: 100%; /* ✅ Don't exceed container */
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-size: 0.95em;
    outline: none;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box; /* ✅ Include padding in width calculation */
}

#chat-form input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#chat-form input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

#chat-form button {
    flex: 0 0 46px; /* ✅ Fixed size: don't grow or shrink */
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    box-sizing: border-box; /* ✅ Include border in dimensions */
}

#chat-form button i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none; /* ✅ Prevent icon from capturing clicks */
}

#chat-form button:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 1), rgba(0, 123, 255, 1));
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

#chat-form button:active {
    transform: scale(0.95);
}

/* ✅ Mobile responsiveness */
@media (max-width: 768px) {
    #chat-form {
        padding: 12px 14px;
        gap: 8px;
    }
    
    #chat-form input {
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    #chat-form button {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }
    
    #chat-form button i {
        font-size: 16px;
    }
}

/* User Form */
#user-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#user-form label {
    font-weight: 600;
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 4px;
    display: inline-block;
}

#user-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 1em;
    outline: none;
    color: #333;
    transition: all 0.3s ease;
}

#user-form input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

#user-form input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

#user-form button {
    width: 100%;
    margin-top: 8px;
    padding: 14px 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

#user-form button:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 1), rgba(0, 123, 255, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

#user-form button:active {
    transform: translateY(0);
}


/* ===== POPUP OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== POPUP BOX - GLASSY ===== */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 400px;
    display: none;
    text-align: center;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #2c3e50;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup form {
    align-items: baseline;
    display: flex;
    flex-direction: row;
    gap: 18px;
    text-align: left;
}

.popup form label {
    font-weight: 700;
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

/* Email input in popup form (if not in input-group) */
.popup input[type="email"] {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    outline: none;
    color: #333;
    transition: all 0.3s ease;
}

.popup input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* ===== INPUT GROUP - EMAIL + BUTTON ON SAME ROW ===== */
.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.input-group input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    outline: none;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input[type="email"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.input-group input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* Button in input-group */
.input-group .btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .btn i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.input-group .btn:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 1), rgba(0, 123, 255, 1));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.input-group .btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Regular popup button (not in input-group) */
.popup .btn:not(.input-group .btn) {
    margin-top: 10px;
    padding: 10px 12px;
    border: none;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.popup .btn:not(.input-group .btn):hover {
    animation: flyUpDown 1s infinite;
    background: linear-gradient(135deg, rgba(0, 86, 179, 1), rgba(0, 123, 255, 1));
}

@keyframes flyUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== CLOSE BUTTONS - GLASSY ===== */
.popup .close-btn,
.close-btn-pwd {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #555;
    line-height: 1;
    padding: 0;
}

.popup .close-btn:hover,
.close-btn-pwd:hover {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Alternative close button style */
.close-btn {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.close-btn:hover {
    background: rgba(167, 29, 42, 0.9);
}

/* Chat close button */
.close-btn1 {
    background: rgba(220, 53, 69, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-btn1:hover {
    background: rgba(200, 35, 51, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

/* ===== SUCCESS POPUP - GLASSY GREEN NOTIFICATION ===== */
#forgot-success-popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76, 175, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 16px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
    z-index: 10000;
    display: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: slideDownFadeOut 3s ease-in-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes slideDownFadeOut {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-30px); 
    }
    10% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
    90% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-30px); 
    }
}

/* ===== MODAL - GLASSY ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.modal-content textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* ===== POPUP MESSAGE - GLASSY GREEN SUCCESS ===== */
.popup-message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(55, 196, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 6px 25px rgba(55, 196, 0, 0.4);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-message.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .popup {
        min-width: 320px;
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .popup h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .popup .close-btn,
    .close-btn-pwd {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    
    .input-group input[type="email"] {
        padding: 10px 14px;
        font-size: 0.95em;
    }
    
    .input-group .btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .input-group .btn i {
        font-size: 16px;
    }
    
    #forgot-success-popup,
    .popup-message {
        top: 20px;
        padding: 12px 20px;
        font-size: 14px;
        max-width: 85%;
    }
    
    .modal-content {
        width: 90%;
        padding: 25px 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .overlay,
    .popup,
    .close-btn,
    .close-btn-pwd,
    .close-btn1,
    .input-group .btn,
    #forgot-success-popup,
    .popup-message,
    .modal {
        animation: none;
        transition: none;
    }
}


.chat-messages {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 12px;
    scroll-behavior: smooth;
  }
  
  /* Common message styling */
  .message-bubble {
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 14px;
    max-width: 75%;
    width: fit-content;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
    word-break: break-word;
    line-height: 1.4;
  }
  
  /* User message – aligned right */
.user-message {
  /* Background (glass + gradient blend) */
  background: linear-gradient(
      135deg,
      rgba(253, 251, 251, 0.9),
      rgba(235, 237, 238, 0.9)
    ),
    rgba(0, 123, 255, 0.2);

  color: #222;

  /* Glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Border & accent */
  border: 1px solid rgba(0, 123, 255, 0.4);
  border-right: 3px solid rgba(0, 123, 255, 0.8);
  border-left: none;

  /* Shape */
  border-top-left-radius: 4px;
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;

  /* Positioning */
  align-self: flex-end;
  margin-left: auto;
  margin-bottom: 4%;
  margin-top: 4%;
  gap: 3%;
  text-align: left;

  /* Depth */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

  
  /* Support/Agent message – aligned left */
  .support-message {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    align-self: flex-start;
    border-top-right-radius: 4px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 4%;
    gap: 3%;
    margin-right: auto;
  }
  
  /* Animation for new messages */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
.right-section {
    display: flex;
    align-items: center;
    gap: 15px; /* space between Online and Close button */
}

.online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.online-text {
    color: #28a745;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Form Grid Two Column */
.form-grid-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 10px;
}

.full-width {
    grid-column: span 2; /* Description will take full width */
}

.best-value-badge{
    margin-top: 25px;
}
/* === Layout for Pricing Cards === */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }
  
  /* === Single Pricing Card === */
  .pricing-card {
    background: white;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.5s ease, transform 0.5s ease;
  }
  
  /* === Popular Plan Special Style === */
  .pricing-card.popular {
    border: 2px solid #2196f3;
  }
  
  .pricing-card.popular::before {
    content: "MOST POPULAR";
    background: #2196f3;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
  }
  
  /* === Pulse Animation Only On Hover === */
  .pricing-card.popular:hover {
    animation: pulse 1.5s infinite alternate;
  }
  
  /* === Plan Name Header === */
  .pricing-header {
    background: #f5f7fa;
    padding: 20px 10px;
    font-size: 22px;
    font-weight: bold;
    color: #003366;
  }
  
  /* === Plan Price Display === */
  .pricing-price {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #333;
  }
  
  /* === Discounted Price Color === */
  .pricing-price.discount {
    color: #e53935;
  }
  
  /* === Subscribe/Trial Buttons === */
  .pricing-button {
    background: #1976d2;
    color: #fff;
    padding: 12px;
    margin: 20px auto;
    width: 80%;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.3s;
  }
  
  .pricing-button:hover {
    background: #1565c0;
  }
  
  /* === Expanded Plan Details Section === */
  #plan-details-container {
    margin-top: 60px;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  /* === Plan Details Grid (3 Columns) === */
  .plan-details-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
  }

  #password-strength {
        transition: color 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

.btn {
    width: fit-content;
    padding: 12px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3, #003c82);
}


  
  .plan-details-grid > div {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  /* === Text Styling inside Expanded Plan === */
  .plan-details-grid p,
  .plan-details-grid li {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
  }

  
  /* === Responsive Fix for Mobile === */
  @media (max-width: 768px) {
    .plan-details-grid {
      flex-direction: column;
    }
  }
  

/* Responsive Styles */
@media (max-width: 968px) {
    .form-container-res {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-section {
        min-height: 300px;
        padding: 30px;
    }
    
    .hero-text h2 {
        font-size: 2em;
    }
    
    .form-section {
        padding: 40px 30px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .menu-dropdown {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 30px;
        background: #ffffff;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
        width: 180px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 20;
    }
    .form-grid-two-column {
        grid-template-columns: 1fr; /* mobile responsive: one column */
    }

    .menu-dropdown.show {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 28px;
    }

    .content {
        flex-direction: column;
        align-items: center;
        background-position: center top;
        gap: 30px;
        padding: 50px 20px; /* Add more top padding on mobile */
    }

    .welcome {
        order: 1;
        text-align: center;
        align-self: center;
        max-width: 90%;
    }

    .welcome h1 {
        font-size: 2.5em;
    }

    .welcome h2 {
        font-size: 1.2em;
    }

    #subText {
        font-size: 0.95em;
    }

    .form-container {
        order: 2;
        max-width: 90%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-section header h1 {
        font-size: 1.8em;
    }
    
    .hero-text h2 {
        font-size: 1.5em;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
}