:root {
    --primary: #c33f3e;
    --primary-dark: #a82e2d;
    --primary-light: #fbeeed;
    --primary-soft: rgba(195, 63, 62, 0.08);
    --whatsapp-green: #059669;
    --whatsapp-dark: #047857;
    --text-dark: #1d2939;
    --text-muted: #667085;
    --text-body: #475467;
    --bg-light: #fcfcfd;
    --bg-alt: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #eaecf0;
}

* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* Header & Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 12px;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
    padding: 6px 0 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    color: #ffffff !important;
}

.whatsapp-icon {
    font-size: 1.15rem;
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    padding: 60px 0 50px;
    position: relative;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.35;
}

.hero-content .highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 2rem;
    text-align: justify;
}

.app-downloads {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.app-btn {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-img,
.google-play-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.app-btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.hero-illustration-card {
    background: #f3f4f6;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease;
}

.hero-illustration-card:hover {
    transform: translateY(-4px);
}

.hero-illustration-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Features Grid Section */
.features-section {
    background: #ffffff;
    padding: 70px 0 60px;
}

.section-badge {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: inline-block;
}

.features-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.features-title .highlight {
    color: var(--primary);
}

.features-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #f2f4f7;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 26px;
    height: calc(100% - 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
    border-color: #fee4e2;
}

.feature-img-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card-img {
    max-height: 85px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-img {
    transform: scale(1.08);
}

.feature-title-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.feature-title-bar .red-line {
    width: 3px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
}

.feature-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.feature-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* App Showcase Sections */
.app-section {
    padding: 70px 0;
    position: relative;
}

.app-section.bg-light-gray {
    background: #fafbfc;
}

.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.phone-mockup-frame {
    background: #1f2937;
    border-radius: 42px;
    padding: 9px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: inline-block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-mockup-frame:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.phone-mockup-img {
    max-width: 290px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 33px;
    display: block;
}

.app-section-content {
    padding: 10px 0;
}

.app-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.35;
}

.app-section-desc {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-items li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.6;
}

.checklist-items .check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 3px;
    background: #fee4e2;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.checklist-items li strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    padding: 70px 0 60px;
    background: #ffffff;
}

.faq-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.faq-row-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
}

.faq-pill-item {
    flex: 1 1 320px;
    max-width: 360px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(195, 63, 62, 0.2);
    transition: all 0.3s ease;
}

.faq-pill-item:hover {
    box-shadow: 0 6px 20px rgba(195, 63, 62, 0.3);
    transform: translateY(-2px);
}

.faq-pill-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: background-color 0.25s ease;
}

.faq-pill-btn:hover {
    background: var(--primary-dark);
}

.faq-pill-btn span {
    line-height: 1.4;
}

.faq-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-pill-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-pill-answer {
    background: #ffffff;
    color: var(--text-body);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    font-size: 0.9rem;
    line-height: 1.65;
    border: 1px solid #fee4e2;
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.faq-pill-item.active .faq-pill-answer {
    padding: 16px 20px;
    max-height: 250px;
}

/* =====================
   Contact Us Section (SmartCarb Style)
   ===================== */
.contact-section {
    background: #ffffff;
    padding: 80px 0 60px;
}

.contact-section-label {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.contact-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-section-subtitle {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin-bottom: 0;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

#contactForm {
    margin-top: 2rem;
}

.contact-info-section-label {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
}

.contact-field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
    display: block;
}

.contact-input {
    width: 100%;
    border: 1px solid #E4E7EC;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    resize: none;
    box-shadow: none;
}

.contact-input::placeholder {
    color: #c0c5cc;
}

.contact-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft);
    outline: none;
}

/* ---- intl-tel-input: match .contact-input style ---- */
.contact-iti-input {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: #2c3e50;
}

/* Make the generated wrapper fill full width */
.intl-tel-input {
    width: 100%;
    display: block;
}

/* Style the wrapper's outer border like .contact-input */
.intl-tel-input .flag-container + input,
.intl-tel-input input[type=tel],
.intl-tel-input input[type=text] {
    width: 100%;
    border: 1px solid #E4E7EC;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    height: auto;
    box-shadow: none;
}

.intl-tel-input input[type=tel]:focus,
.intl-tel-input input[type=text]:focus {
    border-color: var(--primary) !important;
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
    outline: none;
}

.intl-tel-input input[type=tel]::placeholder {
    color: #c0c5cc;
    font-family: 'Cairo', sans-serif;
}

/* Flag button — ALWAYS on the LEFT side */
.intl-tel-input {
    position: relative;
    width: 100%;
    display: block;
    direction: ltr !important;
}

.intl-tel-input .flag-container,
.intl-tel-input.separate-dial-code .flag-container {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    border-radius: 14px 0 0 14px !important;
    z-index: 4 !important;
}

.intl-tel-input .selected-flag {
    background: #f8f9fa !important;
    border-right: 1px solid #E4E7EC !important;
    border-left: none !important;
    border-radius: 14px 0 0 14px !important;
    padding: 0 12px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    direction: ltr !important;
}

.intl-tel-input .selected-flag:hover,
.intl-tel-input .selected-flag:focus {
    background: #eef1f5 !important;
}

/* Dial code text — keep LTR so +966 reads correctly */
.intl-tel-input .selected-dial-code,
.intl-tel-input.separate-dial-code .selected-dial-code {
    direction: ltr !important;
    unicode-bidi: embed !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #344054 !important;
    margin: 0 !important;
}

/* Input field — text starts after flag on the left */
.intl-tel-input input[type=tel],
.intl-tel-input input[type=text],
.intl-tel-input.separate-dial-code input[type=tel],
#contact_phone {
    padding-left: 105px !important; /* space for flag + dial code on the left */
    padding-right: 16px !important;
    text-align: left !important;
    direction: ltr !important;
}

/* Dropdown list — align to left edge */
.intl-tel-input .country-list {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
    direction: ltr !important;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.contact-recaptcha-wrap {
    margin-top: 16px;
}

/* Submit Button */
.contact-submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 16px;
    letter-spacing: 0.03em;
}

.contact-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(195, 63, 62, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Footer Styles (aligned with SmartCarb layout) */
.footer {
    background: #ffffff;
    color: #6c757d;
    padding: 50px 0 25px;
    border-top: 1px solid #eaecf0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-brand .logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #475467;
    max-width: 480px;
    margin-bottom: 15px;
}

.footer-left {
    text-align: left;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-links li {
    margin: 0;
}

.footer-links img,
.app-store-img,
.google-play-img {
    height: 42px;
    width: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 6px;
}

.footer-links a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.footer-extra-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #eaecf0;
    flex-wrap: wrap;
    text-align: right;
}

.footer-extra-links a {
    color: #344054;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.footer-extra-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.social-icon-ig,
.social-icon-wa {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.social-icon-ig:hover {
    color: #E1306C;
    transform: scale(1.15);
}

.social-icon-wa:hover {
    color: #25D366;
    transform: scale(1.15);
}

.footer-copyright {
    font-size: 0.88rem;
    color: #667085;
    margin: 0;
}

.developer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.developer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-illustration-card {
        margin-top: 35px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }

    .footer-right, .footer-left {
        text-align: center;
    }

    .footer-text {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-extra-links {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .app-downloads {
        justify-content: center;
    }

    .features-title {
        font-size: 1.8rem;
    }

    .app-section-title {
        font-size: 1.7rem;
    }

    .contact-section { padding: 40px 0 30px; }
    .contact-section-title { font-size: 1.8rem; }
    .contact-submit-btn { max-width: 100%; }

    .faq-header {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .footer-bottom .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .social-icons {
        justify-content: center;
    }
}
