/* 
   Shri Jal Dhara - Premium Water Theme CSS Design System
   Purity, Reliability, and Transparent Tracking
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
    /* Color Palette */
    --primary: #0284c7;        /* Vibrant ocean blue */
    --primary-light: #38bdf8;  /* Soft sky blue */
    --primary-dark: #0369a1;   /* Deep water blue */
    --accent: #0d9488;         /* Fresh teal */
    --accent-light: #2dd4bf;   /* Soft mint teal */
    --bg-gradient-start: #f0f9ff; /* Very soft water-tint light blue */
    --bg-gradient-end: #e0f2fe;   /* Deeper water tint */
    --surface: rgba(255, 255, 255, 0.85); /* Frosted glass white */
    --surface-border: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;      /* Dark slate */
    --text-muted: #475569;     /* Cool grey */
    --text-light: #f8fafc;     /* Ice white */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(2, 132, 199, 0.08), 0 4px 6px -4px rgba(2, 132, 199, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(2, 132, 199, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Typography Details */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 24px;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-section svg {
    width: 38px;
    height: 38px;
    fill: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.3));
    animation: wave-float 3s ease-in-out infinite alternate;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* Nav Menu */
nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.08);
}

.nav-item.active {
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.connect-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    transition: var(--transition);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Container & Page Transitions */
main {
    flex: 1;
    margin-top: 90px;
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
}

.page-view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    margin-bottom: 60px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.hero-badge span.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-light);
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(2, 132, 199, 0.05);
    border-color: var(--primary-light);
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(13, 148, 136, 0.2));
    width: min(360px, 85vw);
    height: min(360px, 85vw);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    animation: liquid-blob 8s ease-in-out infinite alternate;
}

.hero-media img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(2, 132, 199, 0.25));
    animation: float-bottle 4s ease-in-out infinite;
}

/* Floating Droplets animation */
.droplet {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(2, 132, 199, 0.4) 70%, rgba(3, 105, 161, 0.8));
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    z-index: 1;
    opacity: 0.7;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.drop-1 {
    width: 25px;
    height: 30px;
    top: 10%;
    left: 15%;
    animation: float-droplet 5s ease-in-out infinite alternate;
}

.drop-2 {
    width: 15px;
    height: 18px;
    bottom: 15%;
    right: 10%;
    animation: float-droplet 4s ease-in-out infinite alternate 1s;
}

/* Services Cards Section */
.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.section-intro p {
    font-size: 1.1rem;
    margin-top: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card h3 {
    font-size: 1.4rem;
}

.card-btn {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    cursor: pointer;
    background: none;
    border: none;
}

.card-btn:hover {
    color: var(--accent);
}

/* Delivery summary and support cards */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    margin-bottom: 60px;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-media {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(2, 132, 199, 0.03);
    transition: var(--transition);
}

.split-media img:hover {
    transform: scale(1.05);
}

/* Support checklist details */
.support-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 12px 0 20px 0;
}

.support-checklist-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.15);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
}

.checklist-info h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.checklist-info p {
    font-size: 0.95rem;
}

/* Purity Stats Teaser Row */
.purity-teaser-wrapper {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
    margin-bottom: 40px;
}

.stat-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer layout */
footer {
    background: linear-gradient(180deg, var(--bg-gradient-end), #bae6fd);
    border-top: 1px solid rgba(2, 132, 199, 0.1);
    padding: 60px 24px 30px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.footer-logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-address {
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-email {
    font-weight: 600;
    color: var(--primary-dark);
}

.footer-map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-border);
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-careers {
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(2, 132, 199, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================================
   Interactive Features Pages:
   1. Services page & Purity Simulator
   2. Schedules page & Route Finder
   3. Contact Page & Jar Inventory Calculator
   4. Careers Application Form
   5. About Us details
=========================================================== */

/* Services Page & Simulator */
.purity-simulator-panel {
    padding: 30px;
    margin-top: 40px;
}

.simulator-title-row {
    text-align: center;
    margin-bottom: 30px;
}

.simulator-title-row h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.simulator-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.simulator-step {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--surface-border);
    transition: var(--transition);
}

.simulator-step:hover {
    background: var(--surface);
    transform: translateY(-3px);
}

.simulator-step.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    border: none;
}

.simulator-step.active h4 {
    color: var(--text-light);
}

.simulator-step h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.simulator-step p {
    font-size: 0.85rem;
    color: inherit;
    opacity: 0.9;
}

.simulator-display {
    background: rgba(2, 132, 199, 0.05);
    border-radius: 12px;
    padding: 30px;
    border: 1px dashed rgba(2, 132, 199, 0.2);
    display: flex;
    gap: 30px;
    align-items: center;
}

.simulator-visual {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.simulator-visual svg {
    width: 70px;
    height: 70px;
    fill: var(--primary);
}

.water-fill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 132, 199, 0.25);
    border-radius: 0 0 50% 50%;
    transition: height 0.5s ease;
}

.simulator-desc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simulator-desc h5 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.simulator-desc p {
    font-size: 1.02rem;
    color: var(--text-muted);
}

/* Schedules Page & Finder */
.search-widget-row {
    margin-bottom: 30px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-widget-row label {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
    outline: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.schedule-table-wrapper {
    padding: 24px;
    margin-bottom: 40px;
    overflow-x: auto;
}

table.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.schedule-table th, 
table.schedule-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

table.schedule-table th {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.05rem;
    background: rgba(2, 132, 199, 0.04);
}

table.schedule-table tbody tr {
    transition: var(--transition);
}

table.schedule-table tbody tr:hover {
    background: rgba(2, 132, 199, 0.03);
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(13, 148, 136, 0.12);
    color: var(--accent);
}

/* Contact Page & Calculators */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item-box {
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-item-info a:hover {
    color: var(--primary);
}

.calculator-panel {
    padding: 30px;
    margin-bottom: 30px;
}

.calculator-panel h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(2, 132, 199, 0.2);
    background: rgba(255,255,255,0.7);
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.calc-output-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(13, 148, 136, 0.08));
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.calc-row.total-row {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.2rem;
    border-top: 1px dashed rgba(2, 132, 199, 0.2);
    padding-top: 12px;
    margin-top: 4px;
}

/* Contact Support Forms */
.form-card {
    padding: 40px;
}

.form-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.15);
    padding-bottom: 12px;
}

.form-tab-btn {
    background: none;
    border: none;
    padding: 6px 16px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.form-tab-btn.active {
    color: var(--primary-dark);
    background: rgba(2, 132, 199, 0.08);
}

.contact-form-wrapper {
    display: none;
}

.contact-form-wrapper.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Submit success feedback animation overlay */
.success-overlay {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px;
}

.success-overlay.active {
    display: flex;
}

.success-circle {
    width: 72px;
    height: 72px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-circle svg {
    width: 36px;
    height: 36px;
}

/* Careers open positions */
.career-jobs {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-details h4 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.job-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-meta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.job-apply-btn {
    align-self: center;
}

/* Careers application form */
.careers-form-panel {
    padding: 40px;
    margin-top: 40px;
}

.file-dropzone {
    border: 2px dashed rgba(2, 132, 199, 0.3);
    background: rgba(2, 132, 199, 0.02);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-dropzone:hover {
    border-color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
}

.file-dropzone svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.file-dropzone input[type="file"] {
    display: none;
}

.file-dropzone p.filename-display {
    font-weight: 600;
    color: var(--accent);
}

/* About Us Roots panel */
.roots-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    margin-bottom: 60px;
}

.roots-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.roots-photo {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    box-shadow: var(--shadow-sm);
}

.roots-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   Responsive Breakpoints & Animations
=========================================================== */

/* Animations definitions */
@keyframes wave-float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-4px) rotate(4deg); }
}

@keyframes float-bottle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes float-droplet {
    0% { transform: translateY(0) scale(0.9); opacity: 0.6; }
    100% { transform: translateY(-12px) scale(1.05); opacity: 0.85; }
}

@keyframes liquid-blob {
    0% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; }
}

@keyframes scale-up {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive queries */
@media (max-width: 992px) {
    h1 { font-size: 2.3rem; }
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }
    .hero-text, .split-content {
        grid-column: span 1 !important;
    }
    .hero-badge {
        align-self: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-column:last-child {
        grid-column: span 2;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .roots-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header, header.scrolled {
        padding: 12px 16px;
    }
    .mobile-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        overflow-y: auto;
    }
    nav.open {
        left: 0;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    .nav-item {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    .connect-btn {
        width: 80%;
        text-align: center;
        padding: 12px;
    }
    /* Mobile menus open icons active */
    .mobile-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .simulator-flow {
        grid-template-columns: repeat(2, 1fr);
    }
    .simulator-display {
        flex-direction: column;
        text-align: center;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-column:last-child {
        grid-column: span 1;
    }
    .job-card {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .job-apply-btn {
        align-self: flex-start;
    }
    .search-widget-row {
        flex-direction: column;
        align-items: stretch;
    }
    .purity-teaser-wrapper {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 16px;
    }
    .stat-num {
        font-size: 1.6rem;
    }
}

/* ==========================================
   Admin Portal Styles
   ========================================== */

#admin-view {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 100px 24px 60px 24px;
    min-height: calc(100vh - 100px);
}

#admin-view.active {
    display: flex;
}

/* Login Sub-view */
.admin-login-container {
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
    margin: 40px auto;
    border: 1px solid var(--surface-border);
    animation: scale-up 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
}

.login-header h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-error-message {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-left: 3px solid #dc2626;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Admin Dashboard Panel Layout */
.admin-panel-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    animation: scale-up 0.4s ease-out;
}

.admin-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.45);
    border-right: 1px solid var(--surface-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.admin-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.admin-profile h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.admin-profile span {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    display: block;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-tab-btn:hover {
    background: rgba(2, 132, 199, 0.05);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #dc2626;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 24px;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.admin-content-viewport {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
    max-height: 800px;
    background: rgba(255, 255, 255, 0.25);
}

/* Admin Dashboard Tab Elements */
.admin-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.admin-tab-header h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-tab-header h2::after {
    display: none;
}

/* Statistics Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-stat-card h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-stat-card .stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.admin-stat-card .stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Tables in Admin */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.8);
}

/* Status Badges */
.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
}

.admin-badge-new { background: rgba(2, 132, 199, 0.1); color: var(--primary); }
.admin-badge-contacted { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.admin-badge-active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.admin-badge-resolved { background: rgba(13, 148, 136, 0.1); color: var(--accent); }
.admin-badge-archived { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.admin-badge-interview { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.admin-badge-rejected { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Filter Controls bar */
.admin-filters-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
}

.admin-filters-bar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.admin-filters-bar label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-filters-bar input, .admin-filters-bar select {
    padding: 8px 12px;
    border: 1px solid var(--surface-border);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.admin-filters-bar input:focus, .admin-filters-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.1);
}

/* Detail Expander Card */
.admin-detail-row {
    background: rgba(2, 132, 199, 0.02) !important;
}

.admin-detail-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(2, 132, 199, 0.15);
    margin: 8px 18px 20px 18px;
    box-shadow: var(--shadow-sm);
    animation: scale-up 0.25s ease-out;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-block h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.detail-block p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.admin-notes-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
    margin-top: 16px;
}

.admin-notes-section label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.admin-notes-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
}

.admin-notes-section textarea:focus {
    border-color: var(--primary);
}

/* Action icons/buttons */
.action-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--surface-border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn-view { color: var(--primary); }
.action-btn-view:hover { background: var(--primary); color: white; }
.action-btn-delete { color: #dc2626; }
.action-btn-delete:hover { background: #dc2626; color: white; }

/* Dashboard Activity Log */
.recent-activity-box {
    background: rgba(255, 255, 255, 0.4);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--surface-border);
}

.recent-activity-box h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

.activity-text strong {
    color: var(--primary-dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Rates Grid */
.admin-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.rate-edit-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-edit-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Routes List & Form */
.routes-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: start;
}

/* Responsive Styles for Admin Panel */
@media (max-width: 992px) {
    .admin-panel-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--surface-border);
        padding: 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .admin-profile {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .admin-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 16px;
        gap: 6px;
    }
    .sidebar-tab-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .logout-btn {
        width: auto;
        margin-top: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
        position: absolute;
        top: 16px;
        right: 16px;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-content-viewport {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-filters-bar {
        flex-direction: column;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .routes-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   WhatsApp Floating Action Button (FAB)
   ========================================================== */
#whatsapp-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
#whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}
#whatsapp-fab svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ==========================================================
   AI Chatbot Floating Widget
   ========================================================== */
#chatbot-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
#chatbot-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: white;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}
.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
}
#chatbot-drawer {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 350px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: bottom right;
}
.drawer-control-btn {
    font-weight: bold;
    transition: var(--transition);
}
.drawer-control-btn:hover {
    opacity: 0.8;
}
.drawer-messages, .chat-messages-area {
    scroll-behavior: smooth;
}

/* ==========================================================
   Chat Messages & Bubbles Styling
   ========================================================== */
.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
    margin-bottom: 12px;
    align-items: flex-end;
    animation: fade-in-up 0.3s ease;
}
.chat-msg-user {
    margin-left: auto;
    flex-direction: row-reverse;
}
.chat-msg-bot {
    margin-right: auto;
}
.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.chat-msg-user .msg-avatar {
    background: white;
    border: 1px solid var(--surface-border);
    color: var(--primary);
}
.chat-msg-bot .msg-avatar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}
.msg-bubble {
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: var(--shadow-sm);
}
.chat-msg-user .msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px 12px 0 12px;
}
.chat-msg-bot .msg-bubble {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    border-radius: 12px 12px 12px 0;
}
.chip-btn {
    padding: 6px 12px;
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.chip-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Bouncing typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 6px 12px;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: -0.08s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   AI Chatbot View Layout
   ========================================================== */
.chatbot-split-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}
.chat-info-card {
    height: 550px;
}
.chat-faq-list li {
    padding: 8px 12px;
    background: rgba(2, 132, 199, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* ==========================================================
   Reviews System Styling
   ========================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}
.review-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    animation: fade-in-up 0.4s ease;
}
.rating-stars {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* ==========================================================
   Newsletter Subscription Banner
   ========================================================== */
.newsletter-wrapper {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(13, 148, 136, 0.08));
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
}

/* ==========================================================
   Modal Overlays
   ========================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 20000;
    animation: fade-in 0.25s ease;
}
.modal-container {
    animation: modal-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .chatbot-split-layout {
        grid-template-columns: 1fr;
    }
    .chat-info-card {
        height: auto;
    }
}
@media (max-width: 480px) {
    #chatbot-drawer {
        width: calc(100vw - 48px);
    }
}

/* ==========================================================
   Portal Hub Dropdown Styles
   ========================================================== */
.portal-dropdown {
    position: relative;
    display: inline-block;
}
.portal-dropdown-btn {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    outline: none;
}
.portal-dropdown-btn:hover, .portal-dropdown-btn.active {
    background: rgba(2, 132, 199, 0.12);
    border-color: var(--primary-light);
    color: var(--primary);
}
.dropdown-chevron {
    transition: transform 0.3s ease;
}
.portal-dropdown-btn.active .dropdown-chevron {
    transform: rotate(180deg);
}
.portal-dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 290px;
    border-radius: 12px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--glass-shadow);
    padding: 16px;
    display: none; /* Controlled by JS adding class 'show' */
    flex-direction: column;
    gap: 8px;
    z-index: 15000;
    transform-origin: top right;
    animation: dropdown-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.portal-dropdown-content.show {
    display: flex;
}
@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    padding-left: 4px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: rgba(2, 132, 199, 0.06);
}
.item-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    background: rgba(2, 132, 199, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dropdown-item:nth-of-type(2) .item-icon {
    background: rgba(2, 132, 199, 0.08);
}
.dropdown-item:nth-of-type(4) .item-icon {
    background: rgba(13, 148, 136, 0.08); /* teal background for admin icon */
}
.item-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.item-desc strong {
    font-size: 0.9rem;
    color: var(--text-main);
}
.item-desc span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}
.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

/* Mobile responsive menu override */
@media (max-width: 1024px) {
    .portal-dropdown {
        width: 100%;
        margin: 8px 0;
    }
    .portal-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
    }
    .portal-dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.3);
        margin-top: 8px;
        animation: none;
    }
}


