/*
    Naledi AI - Custom Stylesheet
    ---
    Design System Primitives:
    Primary Palette:
    - White:        #FFFFFF
    - Midnight:     #001133
    - Astral Blue:  #002266
    - Ocean Blue:   #0044AA
    - Space Grey:   #808080

    CTA & Accents:
    - Vibrant Orange: #FF8C00
*/

:root {
    --color-white: #FFFFFF;
    --color-midnight: #001133;
    --color-astral-blue: #002266;
    --color-ocean-blue: #0044AA;
    --color-space-grey: #808080;
    --color-orange: #FF8C00;
    --color-light-bg: #f8f9fa; /* Bootstrap's light gray */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-midnight);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-astral-blue);
}

.bg-light {
    background-color: var(--color-light-bg) !important;
}

/* ================== Reusable Overlay Component ================== */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 17, 51, 0.5), rgba(0, 34, 102, 0.3)); /* Midnight to Astral Blue gradient */
    z-index: 1; /* Sits above background, below content */
}

/* ================== Navbar ================== */
.navbar {
    transition: all 0.3s ease-in-out;
}
.navbar-brand img {
    height: 45px; /* Increase logo size slightly */
}
.nav-link {
    color: var(--color-astral-blue) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-orange) !important;
}

/* Custom CTA Button */
.btn-primary-custom {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #e67e00; /* Darker orange */
    border-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}


/* ================================================================================================== */
/* ================================== LANDING PAGE START ============================================= */
/* ================================================================================================== */


/* ================== Hero Section ================== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/static/assets/images/bg-portal.png') no-repeat center center/cover;
    padding-top: 80px; /* Offset for fixed navbar */
}
.hero-section .container {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}
.hero-section h1 {
    color: var(--color-white);
}
.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ================== Main Value Proposition Section ================== */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff0e0; /* Light orange background */
    color: var(--color-orange);
    font-size: 2rem;
}

/* ================== Featured Project Section ================== */
#featured-work .img-fluid {
    border: 1px solid #dee2e6;
}

.testimonial-quote {
    border-left: 4px solid var(--color-orange);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-space-grey);
}

.testimonial-quote .blockquote-footer {
    font-style: normal;
    color: var(--color-astral-blue);
}

/* ================== Services Section ================== */
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 34, 102, 0.05);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 34, 102, 0.1);
    border-color: var(--color-orange);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 1rem;
}
.service-card.special-service {
    border-left: 5px solid var(--color-orange);
}

/* ================== Pricing Section ================== */
.pricing-card-reworked {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 34, 102, 0.1);
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--color-orange);
    height: 100%;
}

.pricing-card-reworked .price-value {
    color: var(--color-midnight);
}

/* Feature list inside the new card */
.feature-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-midnight);
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--color-orange); /* Use orange for the checkmarks */
    font-size: 1.2rem;
}

/* Benefit items in the left column */
.benefit-item h5 {
    color: var(--color-astral-blue);
}

/* --- Currency Toggle Switch --- */
.currency-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.currency-toggle-wrapper .currency-label {
    font-weight: 600;
    color: var(--color-space-grey);
    transition: color 0.3s ease;
}

.currency-toggle-wrapper .currency-label.active {
    color: var(--color-astral-blue);
}

.form-switch .form-check-input {
    width: 4.5em; /* Increased toggle length */
    height: 2em; /* Adjusted height for proportion */
    background-color: var(--color-ocean-blue);
    border-color: var(--color-ocean-blue);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
}


/* ================== How It Works Section ================== */
.how-it-works-section {
    background: linear-gradient(135deg, var(--color-astral-blue), var(--color-midnight));
    position: relative;
    overflow: hidden;
}
/* Subtle star background effect */
.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/assets/images/bg-nai-stars2.png') no-repeat center center/cover;
    opacity: 0.5; /* Soften the star texture */
    z-index: 0;
}

.how-it-works-section .container {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay and ::before */
}
.how-it-works-section h2, .how-it-works-section h4 {
    color: var(--color-white);
}
.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-orange);
    color: var(--color-orange);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}


/* ================================================================================================== */
/* ================================== LANDING PAGE END ============================================= */
/* ================================================================================================== */



/* ================== Custom Project Form Styles ================== */

/* Container for the checkbox options */
.feature-checkbox-group {
    /* No extra styles needed if using row/col grid */
}

/* Individual checkbox item styling */
.feature-checkbox-item {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.feature-checkbox-item:hover {
    background-color: rgba(0, 34, 102, 0.5); /* Astral Blue hint on hover */
    border-color: rgba(255, 140, 0, 0.7); /* Orange hint on hover */
}

.feature-checkbox-item .form-check-label {
    width: 100%;
    color: var(--color-white);
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.feature-checkbox-item .form-check-label i {
    font-size: 1.2rem;
    color: var(--color-orange);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.feature-checkbox-item:hover .form-check-label i {
    opacity: 1;
}

.feature-checkbox-item .form-check-input {
    /* Hides the default checkbox, we use the background/border to show selection */
    display: none;
}

/* Style for when a checkbox is checked */
.feature-checkbox-item .form-check-input:checked + .form-check-label {
    /* No direct style change to label text */
}

/* We style the parent container when the input inside is checked */
.feature-checkbox-item .form-check-input:checked ~ .form-check-label, /* Sibling selector */
.form-check-input:checked + .form-check-label {
    /* This rule applies to the label when the sibling input is checked */
}

.feature-checkbox-item:has(.form-check-input:checked) {
    background-color: var(--color-ocean-blue);
    border-color: var(--color-orange);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

#ecommerce-options {
    transition: all 0.3s ease-in-out;
}

/* ================== Custom Project Form Status Messages ================== */
#form-status-message {
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-status-success {
    color: #155724; /* Dark Green */
    background-color: #d4edda; /* Light Green */
    border: 1px solid #c3e6cb;
}

.form-status-error {
    color: #721c24; /* Dark Red */
    background-color: #f8d7da; /* Light Red */
    border: 1px solid #f5c6cb;
}

/* ================== Footer Section ================== */
.footer-section {
    background-color: var(--color-midnight);
}
.footer-section h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-link {
    color: var(--color-space-grey);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2;
}
.footer-link:hover {
    color: var(--color-orange);
}
.social-icon {
    color: var(--color-space-grey);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}
.social-icon:hover {
    color: var(--color-orange);
}

/* ================== Booking & Contact Page ================== */
.booking-section {
    padding-top: 80px; /* Offset for navbar */
    background: linear-gradient(135deg, var(--color-astral-blue), var(--color-midnight));
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/assets/images/bg-nai-stars2.png') no-repeat center center/cover;
    opacity: 0.5; /* Soften the star texture */
    z-index: 0;
}
.booking-section .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay and background */
}
/* The "Frosted Glass" card for the main content */
.booking-content-wrapper {
    background: rgba(0, 20, 68, 0.45); /* Semi-transparent Astral Blue/Midnight mix */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 34, 102, 0.37); /* Shadow with Astral Blue hint */
}
@media (min-width: 768px) {
    .booking-content-wrapper {
        padding: 3rem;
    }
}
/* Style for the alternative contact button */
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-astral-blue);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ================== Custom Form Styling (for contact-form.html) ================== */
.custom-form .form-label {
    /* CHANGED: Label text is now solid white for higher contrast. */
    color: var(--color-white);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Underlined Text Inputs */
.custom-form .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 0.5rem 0.2rem;
    color: var(--color-white); /* User's typed text remains white */
    transition: border-color 0.3s ease;
}

.custom-form .form-control:focus {
    background-color: transparent;
    color: var(--color-white);
    box-shadow: none;
    border-color: var(--color-accent-orange);
}

/* CHANGED: The color for all placeholder text is now Space Grey. */
.custom-form .form-control::placeholder {
    color: var(--color-space-grey);
    opacity: 1; /* Override bootstrap's default opacity */
}


/* Custom Select (Dropdowns) */
.custom-form .form-select {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 0.5rem 0.2rem;
    color: var(--color-white); /* Selected option text is white */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* NEW: Style for the disabled/placeholder option in dropdowns */
.custom-form .form-select:invalid,
.custom-form .form-select option[value=""] {
  color: var(--color-space-grey);
}

.custom-form .form-select:focus {
    background-color: transparent;
    box-shadow: none;
    border-color: var(--color-accent-orange);
}

.custom-form .form-select option {
    background-color: var(--color-astral-blue);
    color: var(--color-white);
}


/* Ensure Textarea is styled consistently */
.custom-form textarea.form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
}
.custom-form textarea.form-control:focus {
    border-color: var(--color-accent-orange);
    background-color: rgba(0, 0, 0, 0.2);
}


/* ================== WhatsApp FAB ================== */


.whatsapp-fab { /* Keep this as a fallback or for general FAB patterns if you have others */
  position: fixed !important; /* Adding !important to key properties */
  bottom: 55px !important;
  right: 25px !important;
  left: auto !important; /* Explicitly set left to auto if it's being pushed left */
  background-color: #25D366;
  color: white;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  display: flex !important; /* Ensure flex properties aren't overridden */
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000 !important; /* High z-index */
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#whatsappFabButton.whatsapp-fab:hover,
.whatsapp-fab:hover {
  background-color: #1EBE57;
  color: white;
  transform: scale(1.1);
}

/* Media query might also need !important if its styles are overridden */
@media (max-width: 768px) {
  #whatsappFabButton.whatsapp-fab,
  .whatsapp-fab {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
}