/* Components CSS - Premium Edition */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 5px;
    /* Squared with slight radius as per ref */
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: none;
}

.btn-white {
    background: #ffffff;
    color: var(--color-primary);
    /* Navy text */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-yellow {
    background: #FFD700;
    /* Bright Yellow */
    color: var(--color-primary);
    /* Navy text for contrast */
    border: none;
    padding: 20px 48px;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-yellow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-yellow:hover::after {
    left: 100%;
}

.btn-yellow:hover {
    background: #ffe033;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-red:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-submit-red {
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

.btn-submit-red:hover {
    background: var(--color-accent-dark);
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

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

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Glass Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Add a gold top border on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, var(--color-accent), var(--color-accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Forms - Floating Labels Style */
.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Hero Section - Immersive */
.hero {
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    /* More space for header */
    padding-bottom: 50px;
    background: linear-gradient(rgba(2, 12, 27, 0.6), rgba(2, 12, 27, 0.4)), url('../assets/dubai-hero-bg.png');
    background-size: cover;
    background-position: center bottom;
}

/* Background Pattern Section */
#why-us {
    background-color: #fcfcfc;
    background-image: url('../assets/pattern-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

#services {
    background-color: #f6f8fb;
    background-image: url('../assets/geometric-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Abstract Background Shapes */
.hero::after {
    /* Removed large overlay to keep background clean as per ref */
    content: none;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text wider than Form */
    gap: 4rem;
    align-items: center;
}

/* Left Column Styling */
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: none;
    /* Removed gradient text */
    -webkit-text-fill-color: initial;
}

.hero-highlights {
    margin-bottom: 2.5rem;
}

.highlight-item {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-gold-bright {
    color: #ffd700;
    /* Bright yellow/gold */
}

/* CTA Buttons Container */
.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Right Column: Form Styling */
.hero-form-col {
    display: flex;
    justify-content: flex-end;
}

.hero-form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-form-card h3 {
    color: var(--color-primary);
    /* Navy Heading */
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-align: left;
}

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

.form-control-sm {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    background: white;
}

.form-control-sm:focus {
    border-color: var(--color-accent);
    outline: none;
}

.sm-label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}

/* Phone Input with Country Code Selector */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-code-selector {
    position: relative;
    z-index: 100;
}

.country-code-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.country-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.country-code-btn:hover::before {
    left: 100%;
}

.country-code-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.country-code-btn:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.flag-emoji {
    font-size: 1.3rem;
    line-height: 1;
}

.country-code {
    font-weight: 600;
    color: var(--color-primary);
}

.dropdown-icon {
    font-size: 0.75rem;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.country-code-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Country Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.country-dropdown.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.country-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

/* Custom Scrollbar */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.country-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.country-option:hover::before {
    transform: scaleY(1);
}

.country-option:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
    padding-left: 20px;
}

.country-option.selected {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    font-weight: 600;
}

.country-option .flag-emoji {
    font-size: 1.4rem;
}

.country-option .country-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.country-option .country-code {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.phone-number-field {
    flex: 1;
}

.phone-number-field:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.flag-icon {
    font-size: 0.9rem;
    cursor: pointer;
    background: #f5f5f5;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}


.form-captcha {
    margin-bottom: 20px;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: white;
    /* Or transparent depending on ref */
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.4rem;
    transition: width 0.3s;
}

.sidebar-icon:nth-child(1) {
    background-color: #0c1c44;
}

/* Navy phone */
.sidebar-icon:nth-child(2) {
    background-color: #25d366;
}

/* WhatsApp Green */
.sidebar-icon:nth-child(3) {
    background-color: #3b5998;
}

/* Chat Blue */

.sidebar-icon:hover {
    width: 60px;
}

@media (max-width: 768px) {
    .sticky-sidebar {
        top: auto;
        bottom: 90px;
        /* Above the chat pill */
        left: auto;
        right: 20px;
        transform: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 10px;
    }

    .sidebar-icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar-icon:hover {
        width: 45px;
        /* Disable expansion on mobile */
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
    justify-content: center;
    align-items: center;
}

.modal.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--color-primary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.text-navy {
    color: var(--color-primary);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards */
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Grid - Keep form on right */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

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

/* Section Header styling */
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
        /* Form first? Or Text first? Usually Text first on mobile */
    }

    .hero-form-col {
        order: 2;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

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

/* Why Us Section Redesign */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .why-us-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: none;
        /* Reset grid */
    }

    .flip-card {
        height: 215px;
        /* Reduced by another 10% */
        flex: 0 0 65%;
        /* Adjusted width */
        scroll-snap-align: center;
        margin-right: 0;
    }

    .promo-card {
        height: auto;
        min-height: 450px;
        /* Ensure it's tall enough */
        flex: 0 0 85%;
        /* Slightly wider to fit content */
        scroll-snap-align: center;
        margin-right: 0;
    }

    /* Remove the last margin */
    .why-us-grid>*:last-child {
        margin-right: 20px;
        /* Add some padding at the end */
    }

    .why-us-grid::-webkit-scrollbar {
        height: 4px;
    }

    .why-us-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    /* Adjust font sizes for smaller cards */
    .card-title-overlay h3 {
        font-size: 1.2rem;
    }

    .flip-card-back {
        padding: 1.5rem;
    }

    .flip-card-back h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .flip-card-back p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .btn-card-back {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Promo Card Mobile Adjustments */
    .promo-content-overlay {
        top: 20px;
        left: 15px;
        right: 15px;
    }

    .promo-content-overlay h3 {
        font-size: 1.1rem;
    }

    .promo-content-overlay h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .promo-content-overlay p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .promo-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 340px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /* Safari Fix */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

/* Front Side */
.flip-card-front {
    background-color: white;
    color: white;
    z-index: 2;
    /* Ensure front is default on top */
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.1);
}

.card-title-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.card-title-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.flip-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Back Side */
.flip-card-back {
    background: white;
    /* Default white as requested */
    color: #FFD700;
    /* Yellow text */
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--color-accent);
    z-index: 1;
}

/* Fix for Reverse Text showing through: Force Back z-index on hover */
.flip-card:hover .flip-card-back {
    z-index: 5;
}

.flip-card-back h3 {
    color: #FFD700;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.flip-card-back h4 {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
    margin-top: 0;
}

.flip-card-back ul {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

.flip-card-back li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.flip-card-back i {
    color: #bf1e2e;
    /* Red Check */
    margin-right: 10px;
    font-size: 1.2rem;
    background: transparent;
    border-radius: 50%;
}

.btn-card-back {
    background: #FFD700;
    color: var(--color-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-card-back:hover {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Promo Card Styling (Red Card - No Flip by default, or special flip) */
.promo-card {
    position: relative;
    height: auto;
    min-height: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

/* Service Link Styling */
.service-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.service-link:hover::after {
    width: 100%;
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content-overlay {
    position: absolute;
    top: 40px;
    left: 30px;
    right: 30px;
    color: white;
    z-index: 2;
}

.promo-content-overlay h3 {
    font-size: 1.6rem;
    color: var(--color-accent);
    /* Gold text for title */
    margin-bottom: 0.5rem;
}

.promo-content-overlay h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-content-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.promo-btn {
    background: #FFD700;
    /* Yellow */
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    border-radius: 0 0 15px 15px;
}

.promo-btn:hover {
    background: #ffe033;
}

/* Process Timeline Styling */
.timeline-container {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    /* Equal spacing */
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

/* Horizontal Line */
.timeline-line {
    position: absolute;
    top: 45px;
    /* Half of node height + vertical padding/top offset */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-node {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover State */
.step-node:hover {
    border-color: #C5A028;
    /* Dark Yellow */
    color: #C5A028;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(197, 160, 40, 0.2);
}

/* Active State */
.step-node.active {
    background: #C5A028;
    /* Dark Yellow */
    border-color: #C5A028;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.4);
}

/* Process Details Box */
.process-details {
    position: relative;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInDetails 0.5s ease forwards;
}

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

.detail-box {
    background: white;
    border: 1px solid #C5A028;
    /* Dark Yellow Border */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.detail-content h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

/* Connector Line (Vertical Dotted) */
.detail-connector {
    position: absolute;
    top: -42px;
    /* Connect from nodes row */
    height: 42px;
    border-left: 2px dotted #C5A028;
    z-index: 0;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    left: 6.25%;
    /* Initial Position (100 / 8 / 2) roughly */
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-nodes {
        flex-wrap: wrap;
        /* Wrap into rows */
        justify-content: center;
        /* Center them */
        gap: 15px;
        padding-bottom: 20px;
    }

    .timeline-line {
        display: none;
        /* Hide line on mobile scrolling */
    }

    .step-node {
        flex-shrink: 0;
    }

    .detail-connector {
        display: none;
        /* Hide connector on mobile as alignment is tricky */
    }
}

/* Chat Widget Styling */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
    font-family: var(--font-body);
    display: flex;
    /* Changed from fixed to flex for structural reasons, but "display: none" inline overrides this initially */
    flex-direction: column;

    /* Animation State Props */
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.chat-widget.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Chat Pill Styling */
.chat-pill {
    position: fixed;
    bottom: 15px;
    right: 30px;
    background-color: #FFD700;
    /* Yellow */
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.chat-pill:hover {
    background-color: #ffe033;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.chat-pill i {
    font-size: 1.2rem;
}

.chat-pill span {
    font-weight: 600;
    font-size: 1rem;
}

/* Hide pill when widget is active */
.chat-pill.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

@media (max-width: 768px) {
    .chat-pill span {
        display: none;
    }

    .chat-pill {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
        bottom: 20px;
        right: 20px;
    }

    .chat-pill i {
        font-size: 1.4rem;
        margin: 0;
    }
}

.chat-header {
    padding: 20px 25px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #25d366;
    /* Online Green */
    border: 2px solid white;
    border-radius: 50%;
}

.agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.agent-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.close-chat {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-chat:hover {
    color: var(--color-primary);
}

.chat-body {
    padding: 25px;
    background-color: #f8f9fa;
    /* Light Gray Background */
    min-height: 200px;
}

.chat-message.agent {
    position: relative;
    max-width: 85%;
}

.chat-message.agent p {
    background: white;
    padding: 15px 20px;
    border-radius: 0 20px 20px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 5px;
    position: relative;
}

/* Speech bubble tail */
.chat-message.agent p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid white;
    border-left: 15px solid transparent;
}

.chat-message .time {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-left: 5px;
}

.chat-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.btn-chat-action {
    display: block;
    width: 100%;
    background-color: #FFD700;
    /* Yellow */
    color: var(--color-primary);
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}

.btn-chat-action:hover {
    background-color: #ffe033;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments for chat widget */
@media (max-width: 480px) {
    .chat-widget {
        width: 90%;
        right: 5%;
        left: 5%;
        bottom: 20px;
    }
}

/* Service Link Hover Effects */
.service-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.service-link:hover {
    transform: translateY(-2px);
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--color-accent);
}