:root {
    /* Tri-Color Palette */
    --color-primary: #0f172a;
    /* Navy/Dark Slate - Text & Headers */
    --color-secondary: #2563eb;
    /* Royal Blue - Buttons & Links */
    --color-accent: #f97316;
    /* Orange - Highlights & CTAs */

    --bg-color: #ffffff;
    /* White - Main Background */
    --bg-light: #f1f5f9;
    /* Light Grey - Section Backgrounds */

    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --alert: #ef4444;

    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--color-secondary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-img {
    height: 120px;
    /* Increased from 80px */
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo .company-tag {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--color-secondary);
}

/* Main Layout */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    /* Increased for dashboards */
    margin: 0 auto;
    width: 100%;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hidden {
    display: none !important;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 0.75rem;
}

/* Inquiry Form & AI Chat */
.inquiry-section {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.inquiry-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--color-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: var(--white);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-secondary);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* AI Chat Widget */
.ai-booking-section {
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.ai-chat-widget {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--bg-light);
    overflow: hidden;
}

.ai-chat-messages {
    height: 150px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-msg {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    max-width: 90%;
}

.user-msg {
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    align-self: flex-end;
    max-width: 90%;
}

.ai-chat-input-area {
    display: flex;
    padding: 0.5rem;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
}

.ai-chat-input-area input {
    flex: 1;
    border: none;
    background: transparent;
}

.ai-chat-input-area button {
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Services Accordion */
.services-section {
    max-width: 800px;
    margin: 0 auto;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.accordion-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    background: var(--white);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
    border-top: 0;
}

.accordion-item.active>.accordion-content {
    border-top: 1px solid #e2e8f0;
}

.accordion-content ul {
    padding: 1.5rem 2rem;
    list-style-type: disc;
    color: var(--text-main);
}

.accordion-icon {
    color: var(--color-accent);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Service Detail View Styles */
.service-detail-view {
    padding: 2rem;
    color: var(--text-main);
}

.service-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--color-accent);
}

.feature-text strong {
    color: var(--color-primary);
    font-size: 1.05rem;
}

.why-matters-box {
    background: #f0f9ff;
    border-left: 4px solid var(--color-secondary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.cta-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Highlight Service Styles */
.workflow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}

.workflow-step {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.workflow-arrow {
    color: var(--text-light);
    font-size: 0.8rem;
}

.packages-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.packages-table th,
.packages-table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.packages-table th {
    background: var(--bg-light);
    color: var(--color-primary);
}

.packages-table tr:nth-child(even) {
    background: #f8fafc;
}

.differentiation-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .differentiation-list {
        grid-template-columns: 1fr 1fr;
    }
}

.differentiation-list li {
    padding-left: 1.5rem;
    position: relative;
}

.differentiation-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Login Styles */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.login-help {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dashboard-vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--color-primary);
}

/* Stat Grid (Owner) */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Status Timeline */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.status-item.completed,
.status-item.active {
    color: var(--text-main);
    font-weight: 500;
}

.status-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.status-item.completed .dot {
    background: #10b981;
}

.status-item.active .dot {
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Tags */
.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.tag.high {
    background: #fee2e2;
    color: #ef4444;
}

.tag.medium {
    background: #ffedd5;
    color: #f97316;
}

.tag.done {
    background: #dcfce7;
    color: #10b981;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--color-primary);
    color: var(--white);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Chat Box */
.chat-box {
    height: 200px;
    overflow-y: auto;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input button {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Admin & Management Styles */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-panel {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.admin-panel h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.5rem;
}

.control-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.control-row input {
    flex: 2;
}

.control-row select {
    flex: 1;
}

/* Announcement Modal / Toast */
.modal {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    z-index: 2000;
    animation: slideIn 0.5s ease-out;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.control-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.text-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.text-btn.delete {
    color: var(--alert);
}

.text-small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Attendance List */
.attendance-list {
    list-style: none;
    margin-bottom: 1rem;
}

.attendance-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .dashboard-grid,
    .admin-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Careers Page Enhancements */
#view-careers .card {
    padding: 3rem;
    /* Larger padding for more space */
}

#view-careers h3 {
    font-size: 1.5rem;
    /* Larger headings */
    margin-bottom: 1.5rem;
}

#view-careers p {
    font-size: 1.1rem;
    /* Larger text */
    line-height: 1.8;
}

#view-careers .job-card {
    border-left: 5px solid var(--color-secondary);
    /* Distinctive border */
    padding: 2.5rem;
}

/* Multi-step Form Styles */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-secondary);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.step-buttons button {
    flex: 1;
}

/* Inline Error Messages */
.error-message {
    color: var(--alert);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.error-message.visible {
    display: block;
}

input.error,
textarea.error {
    border-color: var(--alert);
    background-color: #fef2f2;
}

/* Chat Option Buttons */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background: var(--bg-light);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-primary);
}

.chat-option-btn:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

.toast.info {
    background-color: #3b82f6;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Checkbox for Task Completion */
.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-secondary);
}