/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #003f7f 0%, #0066cc 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

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

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    display: none;
    animation: slideDown 0.3s ease;
}

.search-container.active {
    display: block;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Procedures Grid */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.procedure-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.procedure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003f7f 0%, #0066cc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.procedure-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.procedure-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #cbd5e0;
    transition: all 0.3s ease;
}

.procedure-card:hover .card-arrow {
    color: #0066cc;
    transform: translateX(3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #003f7f 0%, #0066cc 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

/* Procedure Content Styles */
.procedure-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    border-left: 4px solid #0066cc;
    padding-left: 1rem;
}

.procedure-content h4 {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem 0;
}

.procedure-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.procedure-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.procedure-content .important {
    background: #fff8dc;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.procedure-content .important::before {
    content: "⚠️ ";
    font-weight: bold;
}

.procedure-content .tip {
    background: #f0f8ff;
    border: 1px solid #0066cc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.procedure-content .tip::before {
    content: "💡 ";
    font-weight: bold;
}

.document-list {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.document-list h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.document-item:last-child {
    border-bottom: none;
}

.document-item i {
    color: #0066cc;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-contact h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.footer-contact i {
    color: #0066cc;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .procedures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .procedure-card {
        padding: 1rem;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.procedure-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Location Selector */
.location-selector {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #ffd700;
}

.location-selector h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-selector h3 i {
    color: #ffd700;
}

.location-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.location-btn {
    background: linear-gradient(135deg, #003f7f 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Search Results */
.search-results {
    display: none;
    margin-top: 2rem;
}

.search-results.active {
    display: block;
}

.search-result-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-result-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.search-result-excerpt {
    color: #718096;
    font-size: 0.9rem;
}

/* Location-specific info */
.location-info {
    background: #f0f8ff;
    border: 1px solid #0066cc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.location-info h4 {
    color: #003f7f;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info h4 i {
    color: #ffd700;
}

/* Sub-procedures styling */
.sub-procedures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sub-procedure-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sub-procedure-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.sub-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #003f7f 0%, #0066cc 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
}

.sub-icon i {
    color: white;
    font-size: 1.2rem;
}

.sub-procedure-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sub-procedure-card p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .location-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sub-procedures {
        grid-template-columns: 1fr;
    }
}
/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.legal-content h1 {
    color: #0033a0; /* BiH blue */
    margin-bottom: 20px;
    border-bottom: 2px solid #f2a900; /* BiH yellow */
    padding-bottom: 10px;
}

.legal-content h2 {
    color: #0033a0;
    margin: 25px 0 15px;
    font-size: 1.5em;
}

.legal-content h3 {
    color: #0033a0;
    margin: 20px 0 10px;
    font-size: 1.2em;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content .important {
    background-color: #fff8e1;
    border-left: 4px solid #f2a900;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.legal-content .tip {
    background-color: #e8f4f8;
    border-left: 4px solid #4a90e2;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8em;
    }
    
    .legal-content h2 {
        font-size: 1.3em;
    }
    
    .legal-content h3 {
        font-size: 1.1em;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5vh auto;
    padding: 40px 30px 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-sizing: border-box;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 15px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    color: #d32f2f;
    outline: none;
}

/* Ensure modal is above other content */
#legalModal {
    z-index: 10001;
}

.legal-content {
    color: #333;
    line-height: 1.7;
}

.legal-content h2 {
    color: #0033a0;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f2a900;
}

.legal-content h3 {
    color: #0033a0;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0 15px 25px;
}

.legal-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.legal-content .important {
    background-color: #fff8e1;
    border-left: 4px solid #f2a900;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.legal-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: #003f7f;
    text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px 15px;
    }
    
    .close-btn {
        right: 10px;
        top: 5px;
        font-size: 24px;
    }
}

/* Footer Styling */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 0 15px 20px;
}

.footer-section h4 {
    color: #0033a0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.footer-section ul li a:hover {
    color: #003f7f;
    border-bottom-color: #003f7f;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9em;
    color: #666;
}

.disclaimer-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}
