/* User-Friendly Enhancements for Iraq eVisa Website */

/* Improved Typography and Readability */
.section-content {
    line-height: 1.7;
    font-size: 16px;
    color: var(--dark-gray);
}

.section-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-weight: 600;
}

.section-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-black);
    font-weight: 500;
}

.section-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--primary-green);
    font-weight: 500;
}

/* Short Paragraphs for Better Readability */
.section-content p {
    margin-bottom: 1.2rem;
    max-width: 65ch; /* Optimal reading width */
    line-height: 1.6;
}

/* Enhanced Bullet Points */
.benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.benefits-list li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Requirements List Styling */
.requirements-list {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    margin: 1.5rem 0;
}

.requirements-list h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirements-list ul {
    list-style: none;
    padding-left: 0;
}

.requirements-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 2rem;
}

.requirements-list li:before {
    content: "\f0a4";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* Data Tables Enhancement */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.data-table th {
    background: var(--primary-green);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.data-table tr:hover {
    background: var(--light-gray);
}

.data-table .price {
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.data-table .processing-time {
    color: var(--primary-green);
    font-weight: 500;
}

/* Enhanced Call-to-Action Buttons */
.cta-enhanced {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 61, 0.3);
}

.cta-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 61, 0.4);
    color: white;
}

.cta-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-1px);
}

/* Information Boxes */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.info-box.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    border-left: 4px solid #f39c12;
}

.info-box.success {
    background: #d4edda;
    border-color: #c3e6cb;
    border-left: 4px solid var(--primary-green);
}

.info-box.danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    border-left: 4px solid var(--primary-red);
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-box .icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Step-by-Step Process Enhancement */
.process-steps {
    counter-reset: step-counter;
    margin: 2rem 0;
}

.process-step-enhanced {
    counter-increment: step-counter;
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-green);
}

.process-step-enhanced:before {
    content: counter(step-counter);
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    background: var(--primary-green);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.process-step-enhanced h4 {
    margin-top: 0;
    color: var(--primary-green);
    font-size: 1.3rem;
}

/* FAQ Styling */
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    background: var(--light-gray);
    padding: 1.2rem;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-black);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question .icon {
    float: right;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 1.2rem;
    display: none;
    line-height: 1.6;
    color: var(--medium-gray);
}

.faq-answer.show {
    display: block;
}

/* Mobile-Specific Improvements */
@media (max-width: 768px) {
    .section-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .section-content h2 {
        font-size: 1.8rem;
    }
    
    .section-content h3 {
        font-size: 1.5rem;
    }
    
    .section-content h4 {
        font-size: 1.2rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .process-step-enhanced {
        margin-left: 1rem;
        padding: 1rem;
    }
    
    .process-step-enhanced:before {
        left: -1.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .cta-enhanced,
    .cta-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch-Friendly Elements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
    }
    
    .faq-question {
        min-height: 44px;
        padding: 1rem;
    }
    
    .nav-link {
        padding: 1rem 0.8rem;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .data-table th {
        background: var(--primary-black);
    }
    
    .info-box {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
