/* T-ARE User Experience Enhancements */

/* Multi-Language Support Styles */
.language-selector {
    position: relative;
}

.language-selector .dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 8px 12px;
}

.language-selector .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector .dropdown-menu {
    min-width: 150px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-selector .dropdown-item {
    padding: 10px 15px;
    font-size: 0.9rem;
}

.language-selector .dropdown-item:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.language-selector .dropdown-item.active {
    background: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 600;
}

/* Investment Calculator Styles */
.investment-summary .summary-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cost-breakdown .breakdown-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.resource-preview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.download-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-request-form .form-label {
    font-weight: 600;
    color: var(--primary-black);
}

.privacy-notice .form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.benefit-item {
    padding: 20px;
}

.benefit-item h6 {
    color: var(--primary-black);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Sector Opportunity Map Styles */
.map-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.interactive-map {
    width: 100%;
    height: 400px;
}

.map-svg {
    width: 100%;
    height: 100%;
}

.region-path {
    transition: all 0.3s ease;
    cursor: pointer;
}

.region-path.selected {
    stroke: var(--primary-gold);
    stroke-width: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.region-label {
    pointer-events: none;
    font-family: 'Roboto', sans-serif;
}

.sector-filter {
    margin-bottom: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sector-filter.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-black);
}

.sector-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sector-stat-card:hover {
    transform: translateY(-3px);
}

.stat-header {
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.stat-body {
    padding: 20px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.region-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.region-details h4 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 10px;
}

.sector-chip {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    background: white;
    transition: all 0.3s ease;
}

.sector-chip:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* FAQ System Styles */
.faq-controls {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-bar .input-group-text {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: var(--text-light);
}

.search-bar .form-control {
    border-color: #e9ecef;
}

.search-bar .form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.category-filters .btn-group {
    flex-wrap: wrap;
}

.category-filters .btn {
    flex: 1;
    min-width: 120px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.category-filters .btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-black);
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--primary-black);
    font-weight: 600;
    border: none;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gold);
    color: var(--primary-black);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.accordion-body {
    padding: 20px;
    background: #f8f9fa;
}

.faq-tags .badge {
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 0.75rem;
}

.faq-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.still-have-questions .card {
    border: none;
    border-radius: 12px;
}

/* Highlight effect for contact form */
.highlight {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    }
    50% { 
        box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3); 
        transform: translateY(-2px);
    }
}

/* Enhanced Service Cards for Interactive Features */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card.interactive {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card.interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card.interactive:hover::before {
    left: 100%;
}

/* Search Results Highlighting */
mark {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design Enhancements */
@media (max-width: 992px) {
    .region-info-card {
        position: static;
        margin-top: 20px;
    }
    
    .interactive-map {
        height: 300px;
    }
    
    .category-filters .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .map-container {
        padding: 15px;
    }
    
    .faq-controls {
        padding: 15px;
    }
    
    .download-form-container {
        padding: 20px;
    }
    
    .category-filters .btn-group {
        flex-direction: column;
    }
    
    .category-filters .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .language-selector .dropdown-toggle {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Accessibility Enhancements */
.region-path:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

.accordion-button:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: -2px;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .faq-controls,
    .map-container,
    .region-info-card,
    .resource-preview-card,
    .download-form-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .accordion-item {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .accordion-button {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Print styles */
@media print {
    .language-selector,
    .faq-controls,
    .sector-filters,
    .interactive-map {
        display: none;
    }
    
    .accordion-collapse {
        display: block !important;
    }
    
    .accordion-button::after {
        display: none;
    }
}