/* SpaceGroup Custom Styles - Mobile First Design */

/* Root Variables */
:root {
    --primary-red: #F02020;
    --primary-hover: #C01818;
    --bg-light: #F8F9FA;
    --text-primary: #222222;
    --text-secondary: #666666;
    --border-color: #E5E7EB;
    --warning-color: #FFC857;
    /* Colour palette */
    --primary: #D62828;
    --secondary: #6C757D;
    --background: #FFFFFF;
    --section-bg: #F8F9FA;
    --text: #212529;
    --border: #E9ECEF;
}


html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Tajawal', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
}

html,
body {
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

/*  pinch zoom */
body {
    touch-action: manipulation;
}

.bg-primary-red {
    background: var(--primary-red) !important;
}

/* Body & Typography */
body {
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
}

/* Primary Button */
.btn-space-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 12px 32px;
    font-weight: 600;
}

.btn-space-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #FFFFFF;
}

/* Navbar */
.navbar-space {
    background-color: var(--primary-red);
    min-height: 60px;
}

.navbar-space .navbar-brand {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.3rem;
}

.navbar-space .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-space .nav-link:hover {
    color: #FFFFFF;
}

/* Bottom Navigation Bar - Mobile Only */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-red);
}

.testimonial-card .card-body {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-banner {
    background: url('https://october.eu/wp-content/uploads/2019/07/FAQs.svg') center/contain no-repeat;
    min-height: 320px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #d32f2f;
    background-color: #fff5f5;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    display: block;
}

/* Service Cards */
.service-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border-top: 3px solid var(--primary-red);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Hero Section */
#hero {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #F8F9FA);
    padding: 4rem 1rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons a {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.hero-buttons a:hover {
    opacity: 0.85;
}

.hero-form {
    flex: 0 0 400px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-form form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.hero-form form input,
.hero-form form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--section-bg);
    font-size: 0.9rem;
    color: var(--text);
}

.hero-form form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hero-form form button:hover {
    opacity: 0.9;
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: #FFFFFF;
    min-height: calc(100vh - 56px);
    border-left: 1px solid var(--border-color);
    padding: 0;
}

.admin-sidebar .nav-link {
    color: var(--text-primary);
    padding: 12px 20px;
    border-right: 3px solid transparent;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(240, 32, 32, 0.05);
    border-right-color: var(--primary-red);
    color: var(--primary-red);
}

/* Badges */
.badge-space {
    background-color: var(--primary-red);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 60px;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }

    .hero-section {
        padding: 80px 40px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(240, 32, 32, 0.15);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-new {
    background-color: #17a2b8;
}

.status-individual {
    background-color: #17a2b8;
}

.status-office {
    background-color: #6610f2;
}

.status-waiting_payment {
    background-color: #ffc107;
}

.status-paid {
    background-color: #28a745;
}

.status-under_review {
    background-color: #ffc107;
}

.status-in_progress {
    background-color: #007bff;
}

.status-completed {
    background-color: #28a745;
}

.status-rejected {
    background-color: #dc3545;
}

.status-feedback {
    background-color: #201e87;
}

/* Utility Classes */
.text-secondary-light {
    color: var(--text-secondary);
}

.border-light-custom {
    border-color: var(--border-color) !important;
}

/* Widget Container */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    direction: rtl;
}


/* Toggle Button */
.chatbot-button {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(240, 32, 32, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chatbot-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.chatbot-button:hover::before {
    width: 300px;
    height: 300px;
}

.chatbot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(240, 32, 32, 0.4);
    background: var(--primary-hover);
}

.chatbot-button:active {
    transform: translateY(-1px);
}

.chatbot-button i {
    font-size: 22px;
    z-index: 1;
}

.chatbot-button span {
    z-index: 1;
}

/* Notification Badge */
.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning-color);
    color: var(--text-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Chat Panel */
.chatbot-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 400px;
    max-height: 650px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.chatbot-panel.open {
    display: flex;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.chatbot-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    object-fit: cover;
}

.chatbot-header-text {
    flex: 1;
}

.chatbot-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-return-btn {
    display: none;
    /* Only show on mobile */
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.chatbot-return-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chatbot-return-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .chatbot-return-btn {
        display: flex;
    }
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.chatbot-subtitle {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 400;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-light);
    min-height: 350px;
    max-height: 450px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.welcome-icon i {
    font-size: 36px;
    color: white;
}

.welcome-message h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 18px;
}

.welcome-message p {
    font-size: 14px;
    line-height: 1.6;
}

/* Message Wrapper */
.message-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    animation: fadeInUp 0.4s ease-out;
}

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

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

.message-wrapper.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Message Bubbles */
.chatbot-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
    word-wrap: break-word;
    position: relative;
}

.chatbot-bubble p:last-child {
    margin-bottom: 0;
}

.chatbot-bubble ul,
.chatbot-bubble ol {
    padding-right: 20px;
    margin-bottom: 8px;
}

.chatbot-bubble code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.chatbot-bubble.user {
    background: var(--primary-red);
    color: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(240, 32, 32, 0.2);
}

.chatbot-bubble.bot {
    background: white;
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

/* Typing Indicator */
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.chatbot-typing.d-none {
    display: none !important;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

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

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

@keyframes typingDot {

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

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

/* Error Message */
.chatbot-error {
    color: var(--primary-red);
    font-size: 13px;
    padding: 8px 20px;
    background: rgba(240, 32, 32, 0.05);
    border-top: 1px solid rgba(240, 32, 32, 0.1);
    display: none;
}

.chatbot-error:not(:empty) {
    display: block;
}

/* Form */
.chatbot-form {
    padding: 16px 20px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chatbot-form label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chatbot-form textarea {
    flex: 1;
    resize: none;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
    min-height: 46px;
    max-height: 120px;
}

.chatbot-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(240, 32, 32, 0.1);
}

.chatbot-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.send-button {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 32, 32, 0.3);
}

.send-button:active:not(:disabled) {
    transform: translateY(0);
}

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

.send-button i {
    font-size: 18px;
}

/* Creative Service Cards Refactor */
.services-section {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 32, 32, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.service-card-creative {
    border: none;
    border-radius: 20px;
    background: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.service-card-creative:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Gradient Top Border */
.service-card-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-red), #F85032);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card-creative:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(240, 32, 32, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card-creative:hover .service-icon-wrapper {
    background: var(--primary-red);
    transform: scale(1.1) rotate(5deg);
}

.service-icon-wrapper i {
    font-size: 28px;
    color: var(--primary-red);
    transition: color 0.4s ease;
}

.service-card-creative:hover .service-icon-wrapper i {
    color: #FFFFFF;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-service-action {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-service-action i {
    transition: transform 0.3s;
}

.btn-service-action:hover {
    color: var(--primary-hover);
}

.btn-service-action:hover i {
    transform: translateX(-4px);
    /* Move left because of RTL */
}

/* Message Content Wrapper (Bubble + Cards) */
.message-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: calc(100% - 44px);
    flex: 1;
    min-width: 0;
}

/* Action Cards Container - Supports Swiping/Horizontal Scroll */
.chatbot-cards-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 8px 0 16px 0;
    margin: 4px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    width: 100%;
    cursor: grab;
    user-select: none;
}

.chatbot-cards-container:active {
    cursor: grabbing;
}

/* Subtly show scrollbar on desktop to indicate more content */
@media (min-width: 769px) {
    .chatbot-cards-container::-webkit-scrollbar {
        height: 4px;
        display: block;
    }

    .chatbot-cards-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.02);
    }

    .chatbot-cards-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
}

/* Hide scrollbar on mobile but keep swiping */
@media (max-width: 768px) {
    .chatbot-cards-container::-webkit-scrollbar {
        display: none;
    }

    .chatbot-cards-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

/* Action Cards */
.chatbot-action-card {
    flex: 0 0 240px;
    /* Fixed width for swipeable effect */
    scroll-snap-align: start;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
    animation: slideUp 0.3s ease-out;
}

.chatbot-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.action-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.action-card-content {
    padding: 12px;
}

.action-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.3;
}

.action-card-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.action-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.action-card-button:hover {
    background: var(--dark-red);
    color: white;
}

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

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

/* Status Badge in Cards */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.status-badge.new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.feedback {
    background: #e3f2fd;
    color: #d219d2;
}

.status-badge.processing {
    background: #fff3e0;
    color: #f57c00;
}

/* Dynamic Form Card in Chat */
.chatbot-form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.form-card-header {
    background: var(--primary-red);
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.dynamic-request-form {
    padding: 15px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 15px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
}

.file-group-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.form-submit-btn {
    width: 100%;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

.form-submit-btn:hover {
    opacity: 0.9;
}

.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-status {
    font-size: 12px;
    padding: 8px;
    text-align: center;
}

.form-status.error {
    color: var(--primary-red);
}

.success-message {
    padding: 30px 20px;
    text-align: center;
}

.success-message i {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: 15px;
    display: block;
}

.success-message h5 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 13px;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.rejected {
    background: #e8f5e9;
    color: #f71010;
}

.status-badge.pending {
    background: #e8f5e9;
    color: #342085;
}

.status-badge.resolved {
    background: #e8f5e9;
    color: #00cee9;
}

.status-badge.dismissed {
    background: #e8f5e9;
    color: #7d582e;
}

@media (max-width: 768px) {
    .chatbot-widget {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 10001;
        margin: 0;
        padding: 0;
        pointer-events: none;
        /* Don't block background clicks when closed */
    }

    .chatbot-button {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        /* Standard right-hand reach */
        left: auto;
        width: 56px;
        height: 56px;
        z-index: 10002;
        pointer-events: auto;
    }

    /* Hide the floating button when chat is open */
    .chatbot-panel.open~.chatbot-button {
        display: none !important;
    }

    .chatbot-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        display: none;
        flex-direction: column;
        border: none;
        background: white;
        pointer-events: auto;
        z-index: 10003;
    }

    .chatbot-panel.open {
        display: flex;
    }

    .chatbot-header {
        padding: 14px 16px;
        border-radius: 0;
        flex-shrink: 0;
    }

    .chatbot-header-content {
        gap: 10px;
    }

    .chatbot-avatar {
        width: 44px;
        height: 44px;
    }

    .chatbot-title {
        font-size: 16px;
    }

    .chatbot-subtitle {
        font-size: 12px;
    }

    .chatbot-messages {
        flex: 1;
        padding: 16px;
        max-height: none;
        background: #f8f9fa;
    }

    .chatbot-bubble {
        padding: 10px 14px;
        font-size: 14px;
        max-width: 92%;
        line-height: 1.5;
    }

    .chatbot-form {
        padding: 12px 16px;
        background: white;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .chatbot-form label {
        display: none;
        /* Hide label on mobile to save space */
    }

    .input-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
        /* Center align on mobile for single line input */
        background: #f1f3f4;
        padding: 4px 4px 4px 12px;
        border-radius: 24px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .chatbot-form textarea {
        flex: 1;
        background: transparent;
        border: none !important;
        box-shadow: none !important;
        padding: 8px 0;
        font-size: 15px;
        min-height: 24px;
        max-height: 80px;
        line-height: 1.4;
    }

    .send-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        background: var(--primary-red);
        box-shadow: 0 4px 10px rgba(240, 32, 32, 0.2);
    }

    .chatbot-action-card {
        flex: 0 0 210px;
    }

    .action-card-content {
        padding: 10px;
    }

    .welcome-message {
        padding: 30px 20px;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
    }

    .welcome-message h5 {
        font-size: 18px;
    }

    .welcome-message p {
        font-size: 13px;
    }

    .chatbot-header-actions {
        gap: 8px;
    }

    .chatbot-return-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .message-content-wrapper {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .chatbot-header {
        padding: 16px;
    }

    .chatbot-avatar {
        width: 44px;
        height: 44px;
    }

    .chatbot-title {
        font-size: 15px;
    }

    .chatbot-subtitle {
        font-size: 12px;
    }

    .chatbot-messages {
        padding: 16px;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
    }

    .welcome-icon i {
        font-size: 30px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-panel {
        max-height: calc(100vh - 80px);
    }

    .chatbot-messages {
        max-height: calc(100vh - 280px);
        min-height: 200px;
    }

    .welcome-message {
        padding: 20px;
    }
}

/* Services Page Styles */
.services-page-header {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    padding: 60px 0 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.services-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 32, 32, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.services-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.filter-btn {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--primary-red);
    border-color: rgba(240, 32, 32, 0.2);
}

.filter-btn.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(240, 32, 32, 0.3);
}

.filter-btn.active:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background-color: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    background-position: left -200px top 0;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-block {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

@keyframes skeleton-loading {
    0% {
        background-position: right -200px top 0;
    }

    100% {
        background-position: left -200px top 0;
    }
}

.skeleton-card {
    border: none;
    border-radius: 20px;
    background: #FFFFFF;
    height: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Creative Offer Card Design */
.creative-offer-card {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Added subtle border for division */
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 420px;
    /* Fixed height for consistency */
}

.creative-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(240, 32, 32, 0.15);
}

.offer-image-container {
    width: 100%;
    height: 100%;
    /* Occupy full card initially */
    position: relative;
    background-color: #f1f3f5;
    /* Darker off-white background for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* Padding to prevent image from touching edges */
    padding-bottom: 120px;
    /* Reserve space for overlay so image isn't covered */
}

.offer-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure fully visible */
    transition: transform 0.5s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Pop image from bg */
}

.creative-offer-card:hover .offer-image-container img {
    transform: scale(1.05);
}

.offer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    /* Increased opacity */
    /* Transparent white bg */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* Visible divider */
    transform: translateY(0);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.offer-title {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.offer-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 600;
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(240, 32, 32, 0.3);
}

/* Skeleton Loading for Offers */
.skeleton-offer {
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    background: #fff;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.skeleton-offer-img {
    height: 70%;
    width: 100%;
}

.skeleton-offer-content {
    height: 30%;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.creative-blog-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.creative-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-media-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-media-wrapper img,
.blog-media-wrapper video,
.blog-media-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.creative-blog-card:hover .blog-media-wrapper img {
    transform: scale(1.08);
    /* Gentle zoom */
}

/* Date Badge on Image */
.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.creative-blog-card:hover .blog-title {
    color: var(--primary-red);
}

.blog-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read-more {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 10px;
    color: var(--primary-hover);
}

/* Skeleton for Blog */
.skeleton-blog {
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skeleton-blog-img {
    height: 220px;
    width: 100%;
}


/* Creative Hero Section */
.creative-hero {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.creative-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 32, 32, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.creative-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text-content {
    flex: 1;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(240, 32, 32, 0.05);
    border-radius: 50px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Glassmorphism Form Card */
.creative-hero-form {
    flex: 0 0 420px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    transition: transform 0.3s ease;
}

.creative-hero-form:hover {
    transform: translateY(-5px);
}

.form-floating-custom .form-control {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: auto;
    background: #fff;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(240, 32, 32, 0.1);
}

/* Hero Skeleton */
.skeleton-hero {
    padding: 6rem 0 4rem;
    background: #fff;
}

.skeleton-title {
    height: 60px;
    width: 80%;
    margin-bottom: 1.5rem;
}

.skeleton-subtitle {
    height: 24px;
    width: 90%;
    margin-bottom: 1rem;
}

.skeleton-btn {
    height: 50px;
    width: 160px;
    border-radius: 50px;
}

.skeleton-form-card {
    height: 400px;
    width: 420px;
    border-radius: 24px;
}

@media (max-width: 991.98px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .creative-hero-form {
        width: 100%;
        max-width: 500px;
        flex: none;
    }

    .skeleton-form-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Global Loader */
#global-loader {
    display: flex;
    flex-direction: column;
}

/* Creative Navbar */
.creative-navbar {
    background: transparent;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.creative-navbar .toggle-icon {
    color: var(--text-primary);
    /* Default dark color for off-white hero bg */
    transition: color 0.3s ease;
}


.creative-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

/* Navbar Scrolled Text Colors */
.creative-navbar.scrolled .nav-link,
.creative-navbar.scrolled .toggle-icon {
    color: var(--text-primary) !important;
}

.creative-navbar.scrolled .nav-link:hover {
    color: var(--primary-red) !important;
}

/* Navbar Initial Text Colors */
.creative-navbar .nav-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.creative-navbar .nav-link:hover {
    color: var(--primary-red);
}

/* Logo Box */
.logo-box {
    box-shadow: 0 4px 10px rgba(240, 32, 32, 0.3);
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: translateY(-2px);
}

/* Creative Footer */
.creative-footer {
    background: #1a1a2e;
    /* Darker Space Blue */
    color: #e2e8f0;
    font-size: 0.95rem;
}

.creative-footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.creative-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.creative-footer a {
    transition: all 0.3s ease;
}

.creative-footer .hover-white:hover {
    color: #fff !important;
    padding-right: 5px;
    /* Slide effect */
}

/* Mobile Nav Backdrop */
.offcanvas {
    background: rgba(255, 255, 255, 0.98);
}