/* Azerbaijan e-Visa Website Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0a79ca;
    --secondary-color: #f43834;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
    position: relative;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Logo */
.logo {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
}

/* Top Bar */
.top-bar {
    border-bottom: 1px solid var(--border-color);
}

.contact-info a {
    color: var(--text-light);
    font-size: 14px;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow);
    min-height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Application Buttons */
.btn-apply,
.btn-apply-header {
    background: linear-gradient(45deg, var(--secondary-color), #ff6b6b);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(244, 56, 52, 0.3);
}

.btn-apply:hover,
.btn-apply-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 56, 52, 0.4);
    color: white;
}

.btn-apply-header {
    padding: 8px 20px;
    font-size: 14px;
}

/* Pulsating Animation */
.pulsating {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 56, 52, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 56, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 56, 52, 0);
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

/* Hero section with background image - overlay needed */
.hero-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Hero section without background image - no overlay, different styling */
.hero-section:not([style*="background-image"]) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 300px;
}

.hero-section:not([style*="background-image"]) h1 {
    color: var(--primary-color);
    text-shadow: none;
    margin-bottom: 1.5rem;
}

.hero-section:not([style*="background-image"]) .lead {
    color: var(--text-light);
    text-shadow: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 121, 202, 0.8);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-primary h2,
.section-primary h3 {
    color: white;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* height: 100%; */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Icons */
.fa, .fas, .far, .fab {
    min-width: 1.2em;
}

.icon-large {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Country Flags */
.country-flag {
    width: 32px;
    height: 24px;
    margin-right: 10px;
    border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 10;
    position: relative;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 121, 202, 0.25);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

.table td {
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(10, 121, 202, 0.05);
}

/* Lists */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background-color: rgba(10, 121, 202, 0.1);
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 2px solid #ffffff3a;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    .parallax-section {
        background-attachment: scroll;
        min-height: 300px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .btn-apply {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .logo {
        max-width: 250px;
        max-height: 100px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-icon,
    .icon-large {
        font-size: 2.5em;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn-apply,
    .btn-apply-header {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #cc0000;
        --text-dark: #000000;
        --border-color: #666666;
    }
}

/* Process Steps */
.process-step {
    border: 2px solid  #ececec;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    background-color: var(--white);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.1);
}

/* Card Headers with Manual Contrast */
.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
    font-weight: 600;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.card-header h1:last-child,
.card-header h2:last-child,
.card-header h3:last-child,
.card-header h4:last-child,
.card-header h5:last-child,
.card-header h6:last-child {
    margin-bottom: 0;
}

/* Specific background color variants with proper contrast */
.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.card-header.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.card-header.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.card-header.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.card-header.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.card-header.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.card-header.bg-dark {
    background-color: #343a40 !important;
    color: white !important;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Processing cards specific styles */
.processing-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.processing-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.9;
}

/* Service cards and office cards */
.service-card .card-header,
.office-card .card-header {
    background-color: var(--bg-light);
    color: #212529;
    border-bottom: 2px solid var(--primary-color);
}

/* Urgent option cards */
.urgent-option .card-header {
    font-weight: 700;
}

/* Ensure proper contrast for all card headers regardless of background */
.card-header:not(.bg-warning):not(.bg-light):not(.text-dark) {
    color: white !important;
}

.card-header.bg-warning,
.card-header.bg-light {
    color: #212529 !important;
}

.card-header.bg-warning h1,
.card-header.bg-warning h2,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6,
.card-header.bg-light h1,
.card-header.bg-light h2,
.card-header.bg-light h3,
.card-header.bg-light h4,
.card-header.bg-light h5,
.card-header.bg-light h6 {
    color: #212529 !important;
}

/* Override Bootstrap text color classes when used with card-header */
.card-header.text-white {
    color: white !important;
}

.card-header.text-dark {
    color: #343a40 !important;
}

.card-header.text-muted {
    color: #6c757d !important;
}

.process-step:hover {
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.15);
    transform: translateY(-2px);
}

.process-step .step-content h3 {
    color: #722f37;
    margin-bottom: 1rem;
}

.process-step .step-details h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}