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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    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 */
.content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background-image: url('../img/desktop-background_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    gap: 50px;
}

/* 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;
}

/* Login Form Section */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.form-container-res {
    width: 100%;
    max-width: 500px; /* ✅ Limit width nicely */
    margin: 0 auto; /* ✅ Center horizontally */
    padding: 30px 20px;
    background-color: #ffffff; /* Light background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ✅ Soft shadow */
    border-radius: 10px; /* ✅ Smooth corners */
    text-align: left; /* Center the text */
}

/* Header inside the container */
.form-container-res header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333333;
    font-weight: 600;
}

.form-container-res header p {
    font-size: 1em;
    color: #777777;
    margin-bottom: 20px;
}

/* Optional - For inputs inside the form later */
.form-container-res input, 
.form-container-res select, 
.form-container-res textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Optional - Button inside form */
.form-container-res button {
    width: 100%;
    padding: 12px 15px;
    background-color: #128C7E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-container-res button:hover {
    background-color: #0b5c4f;
}


.login-form, .otp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions .btn {
    background: #007BFF;
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.form-actions .btn:hover {
    background: #0056b3;
}

.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 {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #007BFF;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 100;
    transition: background-color 0.3s ease;
}

.chat-button:hover {
    background: #0056b3;
}

/* Chat Popup */
.chat-popup {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: white;
    width: 320px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Chat Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #4a69bd;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.close-btn-pwd {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    color: #333;
  }
  
  
  .close-btn-pwd:hover {
    background-color: #333; /* Dark background */
    color: #fff;            /* White icon/text */
  }
  
  .input-group {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between input and button */
  }
  
  .input-group input {
    flex: 1; /* input takes available space */
    padding: 8px;
  }
  
  .input-group .btn {
    padding: 8px 12px;
    border-radius: 50%;
    background-color: #4c8ef7;
    color: #fff;
    border: none;
    cursor: pointer;
  }
  


/* User Info Form */
#user-info, #chat-form {
    padding: 15px;
}

/* Chat Messages */
#chat-messages {
    flex: 1;
    max-height: 300px; /* ✅ Add this to allow vertical scrolling */
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth; /* ✅ smooth scrolling */
}

/* Individual Message */
#chat-messages div {
    background: #e1f0ff;
    padding: 8px 12px;
    border-radius: 8px;
    align-self: flex-start;
    word-break: break-word;
}

.message-meta {
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
  }
  

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

#chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.message-time {
    font-size: 0.7rem;
    color: #777;
    margin-top: 5px;
    text-align: right;
}


/* Chat Input Area */
#chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
}

#chat-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

#chat-form button {
    background: #007BFF;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#chat-form button:hover {
    background: #0056b3;
}

#user-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* More comfortable space between each field */
    padding: 12px;
}

#user-form label {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
    margin-bottom: 4px; /* Add space below label */
    display: inline-block;
}

#user-form input,
#user-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#user-form input:focus,
#user-form select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5); /* Soft glow */
}

#user-form button {
    width: 100%;
    margin-top: 8px;
    padding: 12px 0;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#user-form button:hover {
    background-color: #0056b3;
}


/* Popup Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 99;
}

/* Popup Box */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    z-index: 100;
    min-width: 400px;
    display: none;
    text-align: center;
}

.popup h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.popup .btn {
    margin-top: 10px;
    padding: 10px 12px;
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

/* On hover: slightly "fly" (move up) */
.popup .btn:hover {
    animation: flyUpDown 1s infinite;
    background-color: #0056b3;
  }

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

  .popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Optional Hover effect */
.popup .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


.close-btn {
    background: #dc3545; /* Red color for close */
}


.close-btn1 {
    background-color: #dc3545; /* Bootstrap Red */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 50%; /* Make it circular */
    width: 28px;
    height: 28px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 32px; /* Center the × vertically */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Add nice hover effect */
.close-btn1:hover {
    background-color: #c82333; /* Darker red on hover */
    transform: scale(1.1); /* Slight zoom */
}


.close-btn:hover {
    background: #a71d2a;
}

#forgot-success-popup {
    position: fixed;
    top: 50px; /* Distance from top */
    left: 50%;
    transform: translateX(-50%); /* Center it horizontally */
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    font-size: 16px;
    animation: fadeInOut 3s ease-in-out forwards;
    text-align: center;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}


.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    position: relative;
  }
  
  .modal-content textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-top: 10px;
  }
  
  .close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
  }
  
  
  .popup-message {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(55, 196, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    z-index: 3000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .popup-message.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  

  .chat-success-popup {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745; /* Green */
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInOut 3s ease forwards;
}

/* Simple fade-out animation */
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}


.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: linear-gradient(135deg, #fdfbfb, #ebedee);
    color: #222;
    align-self: flex-end;
    border-top-left-radius: 4px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 4%;
    gap: 3%;
    margin-left: auto;
    text-align: left;
  }
  
  /* 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; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}


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

.form-group1 {
    display: flex;
    flex-direction: column;
}

.form-group1 label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group1 input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.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;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px #2196f3; }
    100% { transform: scale(1.02); box-shadow: 0 0 20px #2196f3; }
  }
  
  /* === 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;
    }

  .password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}

.password-container input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 40px; /* for eye icon */
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.password-container input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

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

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

.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: 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%;
    }
}
