/* Base Styles */
:root {
    --primary-color: #0e5b3d; /* Deep Saudi Green */
    --secondary-color: #f7f7f7; /* Soft Gray */
    --accent-color: #138a59; /* Light Green */
    --text-color: #333333;
    --light-text: #ffffff;
    --border-color: #dddddd;
    --error-color: #e74c3c;
    --success-color: #27ae60;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e9e9e9;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 0.8rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
}

.cta-btn:hover {
    background-color: var(--accent-color);
}

.cta-btn::after {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: #fff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(14, 91, 61, 0.1);
    color: var(--primary-color);
}

.step-icon i {
    font-size: 2rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Trust Assurances Section */
.trust-assurances {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.assurances-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.assurance {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.assurance-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(14, 91, 61, 0.1);
    color: var(--primary-color);
}

.assurance-icon i {
    font-size: 1.8rem;
}

.assurance h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.footer-links ul {
    margin-left: 1rem;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Forms */
.form-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.char-count {
    text-align: left;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.3rem;
}

.privacy-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

/* Track Result */
.result-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.result-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.result-details {
    margin-top: 1rem;
}

.result-row {
    display: flex;
    margin-bottom: 0.8rem;
}

.result-label {
    min-width: 120px;
    font-weight: 500;
}

.empty-state, .error-state {
    display: none;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.empty-state i, .error-state i {
    font-size: 3rem;
    color: #999;
    margin-bottom: 1rem;
}

.error-state i {
    color: var(--error-color);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background-color: #fff;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header:hover {
    background-color: rgba(14, 91, 61, 0.05);
}

.accordion-body {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fafafa;
}

.accordion-body.active {
    max-height: 500px;
    padding: 1rem;
}

.accordion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

/* Content Pages */
.page-header {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-section {
    padding: 4rem 0;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.content-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    margin-bottom: 1.5rem;
}

.content-container ul {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.content-container ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* Thank You Page */
.thank-you-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
    color: var(--success-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tracking-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: rgba(14, 91, 61, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* How to use page */
.how-to-use-steps {
    counter-reset: step-counter;
}

.how-to-use-step {
    position: relative;
    padding: 2rem;
    padding-right: 4rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.how-to-use-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.how-to-use-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links ul {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 0.8rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .steps-container, .assurances-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .form-container, .content-container {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
/* Thank You Page Styles */
.thank-you-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.complaint-id-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.complaint-id-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.complaint-id-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 3px solid var(--primary-color);
    letter-spacing: 0.2rem;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.complaint-id-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.next-steps {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: right;
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-right: 2rem;
}

.next-steps li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

.next-steps li:last-child {
    border-bottom: none;
}

/* Mobile Responsive Design - Enhanced */
@media (max-width: 768px) {
    /* Thank You Container Mobile */
    .thank-you-container {
        padding: 1rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    /* Thank You Icon Mobile */
    .thank-you-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    /* Complaint ID Display Mobile - CRITICAL FIX */
    .complaint-id-display {
        margin: 1.5rem 0 !important;
        padding: 1rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 2px solid #28a745 !important;
        border-radius: 12px !important;
    }
    
    /* Complaint ID Box Mobile */
    .complaint-id-box {
        width: 100% !important;
        text-align: center !important;
    }
    
    .complaint-id-box h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        color: var(--primary-color) !important;
    }
    
    /* Complaint ID Number Mobile - MAIN FIX */
    .complaint-id-number {
        font-size: 2rem !important;
        padding: 0.8rem 1rem !important;
        letter-spacing: 0.1rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border: 2px dashed #28a745 !important;
        border-radius: 8px !important;
        color: #28a745 !important;
        font-family: 'Courier New', monospace !important;
        font-weight: 700 !important;
        margin: 1rem 0 !important;
        text-align: center !important;
    }
    
    /* Complaint ID Note Mobile */
    .complaint-id-note {
        font-size: 0.85rem !important;
        color: #495057 !important;
        margin: 0.5rem 0 !important;
        text-align: center !important;
    }
    
    /* Next Steps Mobile */
    .next-steps {
        text-align: center !important;
        margin: 1.5rem 0 !important;
        padding: 1rem !important;
    }
    
    .next-steps h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .next-steps li {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
        text-align: right !important;
    }
    
    /* Buttons Mobile */
    .mt-4 {
        margin-top: 2rem !important;
        text-align: center !important;
    }
    
    .mt-4 .btn {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        padding: 0.8rem !important;
        font-size: 1rem !important;
    }
}
/* Thank You Page Styles */
.thank-you-container {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 600px;
}

.thank-you-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.complaint-id-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
}

.complaint-id-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.complaint-id-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px dashed #28a745;
}

.complaint-id-note {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.next-steps {
    text-align: right;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.next-steps ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: #495057;
}

.next-steps li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #28a745;
    font-weight: bold;
}

.mt-4 {
    margin-top: 2rem;
}


