/* 签证申请方案选择器主容器 */
.ssc-visa-application-selector {
    padding: 30px 0;
    margin-bottom: 40px;
}

.visa-application-container {
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    background-color: #fff;
}

/* 主标题区域 */
.selector-main-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.main-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 选择结果展示区域 */
.selection-result {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.result-text {
    font-size: 16px;
    font-weight: 500;
}

.result-visa,
.result-consulate {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
}

.result-separator {
    font-size: 18px;
    font-weight: bold;
}

.reset-all-selections {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-all-selections:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 步骤选择区域 */
.selection-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.selection-step {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.selection-step:hover {
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

/* 步骤头部 */
.step-header {
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.step-number {
    background-color: #2c5aa0;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
}

.step-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 步骤内容 */
.step-content {
    padding: 25px;
}

/* 行动确认区域 */
.action-confirmation {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    color: #333;
    animation: slideInUp 0.5s ease-out;
}

.action-content {
    text-align: center;
}

.action-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.action-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.action-subtitle {
    font-size: 16px;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 主要行动按钮 */
.primary-action-btn {
    display: inline-block;
    background: #2c5aa0;
    color: #fff;
    padding: 20px 30px;
    border: 2px solid #2c5aa0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    min-width: 280px;
    position: relative;
}

.primary-action-btn:hover {
    background: #fff;
    color: #2c5aa0;
    border-color: #2c5aa0;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 20px;
    margin-right: 8px;
}

.btn-text {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.btn-description {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
    font-weight: normal;
}

/* 次要行动按钮区域 */
.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.secondary-action-btn {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    color: #333;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.secondary-action-btn:hover {
    background: #e9ecef;
    border-color: #666;
    text-decoration: none;
    color: #333;
    transform: translateY(-1px);
}

.secondary-action-btn .btn-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* 自动跳转倒计时 */
.auto-redirect {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.countdown-text {
    font-size: 14px;
    color: #666;
}

.countdown-number {
    background: #e9ecef;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
    color: #333;
}

.cancel-redirect {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.cancel-redirect:hover {
    background: #e9ecef;
    border-color: #666;
    color: #333;
}

/* 滑入动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 重新出现动画 */
@keyframes reappear {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.01) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.action-reappear {
    animation: reappear 0.4s ease-out;
}

/* 选择按钮网格布局 */
.visa-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    justify-items: stretch;
}

.consulate-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    justify-items: stretch;
}

/* 选择按钮样式 */
.visa-type-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consulate-type-button {
    display: block;
    width: 100%;
    padding: 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consulate-type-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.consulate-region {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.visa-type-button:hover,
.consulate-type-button:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.visa-type-button:active,
.consulate-type-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.visa-type-button:focus,
.consulate-type-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.3);
}

/* 选中状态样式 */
.visa-type-button.selected,
.consulate-type-button.selected {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: #fff;
    transform: translateY(-1px);
}

.visa-type-button.selected:hover,
.consulate-type-button.selected:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
}

.consulate-type-button.selected .consulate-region {
    color: #fff;
}

/* 禁用状态样式 */
.visa-type-button.disabled,
.consulate-type-button.disabled {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* 淡出效果（用于筛选） */
.visa-type-button.fade-out,
.consulate-type-button.fade-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

.visa-type-code {
    font-weight: bold;
    margin-right: 8px;
}

.visa-type-name,
.consulate-type-name {
    font-weight: normal;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .visa-application-container {
        padding: 20px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .main-subtitle {
        font-size: 14px;
    }
    
    .step-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .visa-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .consulate-types-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .visa-type-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .consulate-type-button {
        padding: 15px;
        font-size: 14px;
    }
    
    .result-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-confirmation {
        padding: 20px;
        margin: 20px 0;
        border-width: 1px;
    }
    
    .action-title {
        font-size: 20px;
    }
    
    .action-subtitle {
        font-size: 14px;
    }
    
    .action-header {
        padding-bottom: 15px;
    }
    
    .primary-action-btn {
        min-width: auto;
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .secondary-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-action-btn {
        justify-content: center;
        width: 100%;
    }
    
    .countdown-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .visa-types-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .selection-steps {
        gap: 20px;
    }
    
    .step-header {
        padding: 12px;
    }
    
    .step-content {
        padding: 15px;
    }
}
