/* Primary Unified Review System Styling */
.primary-review-section {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FF5400; /* Brand orange border to highlight */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-header-with-badge {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-with-badge h2 {
    margin-bottom: 0;
    margin-right: 10px;
    color: #001849; /* Brand deep blue */
    font-weight: 700;
}

.section-header-with-badge .badge {
    background-color: #FF5400; /* Brand orange */
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.system-transition-note {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.system-transition-note i {
    margin-right: 0.5rem;
    color: #0dcaf0; /* Info color */
}

/* Legacy Review Sections Styling */
.legacy-section {
    opacity: 0.85;
    position: relative;
}

.legacy-section:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(240, 240, 240, 0.3),
        rgba(240, 240, 240, 0.3) 10px,
        rgba(230, 230, 230, 0.3) 10px,
        rgba(230, 230, 230, 0.3) 20px
    );
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.legacy-alert {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.legacy-alert i {
    margin-right: 0.5rem;
    color: #ffc107; /* Warning color */
}

.legacy-alert .alert-link {
    color: #FF5400; /* Brand orange */
    font-weight: 600;
    text-decoration: underline;
}

.legacy-alert .alert-link:hover {
    color: #e34700;
}

/* Styling for Embassy & Visa Experiences Section */

.visa-experiences-section {
    margin-bottom: 3rem;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.visa-experiences-section h2 {
    margin-bottom: 1rem;
    color: #001849; /* Brand deep blue */
    font-weight: 700;
}

.section-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.visa-experiences-container {
    margin-bottom: 2rem;
}

.experience-count {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

.experience-count .count {
    font-weight: 700;
    color: #FF5400; /* Brand orange */
    font-size: 1.3rem;
}

.experience-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-title-container {
    flex: 1;
    min-width: 60%;
}

.experience-title-container h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #001849; /* Brand deep blue */
}

.experience-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.experience-author {
    margin-right: 1rem;
}

.visa-details {
    margin-top: 0.5rem;
}

.visa-type, .embassy-location, .experience-type-badge span {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #444;
}

/* Style for experience type badges in the unified system */
.experience-type-badge {
    margin-top: 0.5rem;
}

.experience-type-badge .badge {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
}

.experience-type-badge .badge.bg-info {
    background-color: rgba(0, 24, 73, 0.8) !important; /* Brand deep blue with transparency */
    color: white;
}

.experience-outcome-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 200px;
}

.outcome {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.outcome.approved {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.outcome.rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.outcome.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.outcome.other {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.outcome i {
    margin-right: 0.5rem;
}

.outcome-label {
    margin-right: 0.5rem;
    font-weight: normal;
    color: #777;
}

.embassy-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-label {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #777;
}

.stars i {
    color: #FF5400; /* Brand orange */
    margin-right: 0.1rem;
}

.stars i.far {
    color: #ddd;
}

.processing-time {
    font-size: 0.9rem;
    color: #555;
}

.time-label {
    margin-right: 0.5rem;
    color: #777;
}

.time-value {
    font-weight: 600;
}

.experience-content {
    line-height: 1.6;
    color: #444;
}

.collapsible-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.collapsible-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #001849; /* Brand deep blue */
}

.collapsible-content div {
    margin-bottom: 1.5rem;
}

.toggle-details {
    margin-top: 1rem;
    padding: 0;
    color: #FF5400; /* Brand orange */
}

.toggle-details:hover {
    color: #e34700;
    text-decoration: none;
}

.show-less {
    display: none;
}

.no-experiences {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.no-experiences p:last-child {
    margin-bottom: 0;
    color: #FF5400; /* Brand orange */
    font-weight: 600;
}

/* Form Styling */
.visa-experience-form-container,
.country-experience-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.visa-experience-form-container h3,
.country-experience-form-container h3 {
    margin-bottom: 1rem;
    color: #001849; /* Brand deep blue */
    font-weight: 700;
}

/* Special styling for the primary review form */
.primary-review-section .country-experience-form-container {
    background-color: #fff9f5; /* Light orange background */
    border: 1px solid #FF5400; /* Brand orange border */
}

.form-intro {
    margin-bottom: 1.5rem;
    color: #555;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section h4 {
    margin-bottom: 1.5rem;
    color: #444;
    font-weight: 600;
}

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

.rating-input-container {
    display: flex;
    align-items: center;
}

.rating-stars {
    margin-left: 1rem;
    font-size: 1.5rem;
}

.rating-stars i {
    cursor: pointer;
    color: #ddd;
    margin-right: 0.25rem;
    transition: color 0.2s;
}

.rating-stars i:hover, .rating-stars i.selected {
    color: #FF5400; /* Brand orange */
}

.form-actions {
    margin-top: 2rem;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.btn-primary {
    background-color: #FF5400; /* Brand orange */
    border-color: #FF5400;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background-color: #e34700;
    border-color: #e34700;
}

/* Countries sidebar section styling */
.countries-section {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.countries-section:hover {
    box-shadow: 0 8px 25px rgba(255, 84, 0, 0.15);
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    padding-right: 40px;
    padding-left: 35px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #FF5400;
    box-shadow: 0 0 0 3px rgba(255, 84, 0, 0.2);
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.search-box .clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    z-index: 5;
}

.search-box .clear-search:hover {
    color: #FF5400;
}

.country-list {
    list-style: none;
    padding-left: 0;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #FF5400 #f0f0f0;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb {
    background-color: #FF5400;
    border-radius: 10px;
}

.country-item {
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.country-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.country-link:hover {
    background-color: rgba(255, 84, 0, 0.1);
    color: #FF5400;
    transform: translateX(5px);
    text-decoration: none;
}

.country-flag-sm {
    width: 24px;
    height: auto;
    margin-right: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.country-name {
    font-weight: 500;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #777;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-top: 10px;
}

/* Help box styling in sidebar */
.sidebar-section h3 {
    color: #001849;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FF5400;
    border-radius: 3px;
}

.sidebar-section p {
    margin-bottom: 15px;
    color: #555;
}

.sidebar-section .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-section .btn-primary {
    background-color: #FF5400;
    border-color: #FF5400;
}

.sidebar-section .btn-primary:hover {
    background-color: #e34700;
    border-color: #e34700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 84, 0, 0.2);
}

.sidebar-section .btn-outline {
    color: #FF5400;
    border-color: #FF5400;
}

.sidebar-section .btn-outline:hover {
    background-color: #FF5400;
    color: white;
}

.sidebar-section .btn-block {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
}

/* Enhanced Help Section */
/* Related jobs and resources sections */
.related-jobs-section, .resources-section {
    background-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.related-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid #FF5400;
}

.related-link:hover {
    background-color: #f0f0f0;
    transform: translateX(3px);
    color: #001849;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.related-link i {
    margin-right: 10px;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.help-section {
    background-color: #f9fbff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 24, 73, 0.08);
    border-left: 3px solid #FF5400;
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.help-option {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.help-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.help-option i {
    font-size: 1.8rem;
    color: #FF5400;
    margin-bottom: 10px;
    display: block;
}

.help-option h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #001849;
}

.help-option p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #666;
    line-height: 1.4;
}

.help-option .btn-sm {
    padding: 4px 12px;
    font-size: 0.85rem;
}

.premium-help {
    background: linear-gradient(135deg, #001849, #0a2c5d);
    border-radius: 8px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.premium-help:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 84, 0, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.premium-help:after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 84, 0, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    background-color: #FF5400;
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(255, 84, 0, 0.3);
}

.premium-badge i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.premium-help h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    position: relative;
    z-index: 1;
}

.premium-help p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.premium-help .btn-primary {
    background-color: #FF5400;
    border: none;
    padding: 8px 15px;
    box-shadow: 0 4px 10px rgba(255, 84, 0, 0.3);
    position: relative;
    z-index: 1;
}

.premium-help .btn-primary:hover {
    background-color: #ff6a21;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 84, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
    }
    
    .experience-outcome-rating {
        margin-top: 1rem;
        align-items: flex-start;
    }
    
    .experience-title-container {
        margin-bottom: 0.5rem;
    }
    
    .country-list {
        max-height: 200px;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 8px 35px;
    }
}