/*
Theme Name: E-waste Recycling
Theme URI: https://e-wasterecycling.com
Author: Aaron
Author URI: https://e-wasterecycling.com
Description: this is a website for e-waste recycling line
Version: 1.0
*/
/* 修复文本区域高度 - 减少高度 */
.wpcf7-form textarea.form-control {
    min-height: 120px !important; /* 减少高度 */
    height: 120px !important; /* 固定高度 */
}

/* Contact Form 7 Toast 通知样式 */
.ewaste-toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 90%;
}

.ewaste-toast {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 10px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    position: relative;
    border-left: 4px solid #28a745;
}

.ewaste-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ewaste-toast.hide {
    transform: translateY(-20px);
    opacity: 0;
}

.ewaste-toast-icon {
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.ewaste-toast-mail_sent {
    border-left-color: #28a745;
}

.ewaste-toast-mail_sent .ewaste-toast-icon {
    color: #28a745;
}

.ewaste-toast-mail_failed,
.ewaste-toast-validation_failed,
.ewaste-toast-invalid,
.ewaste-toast-spam,
.ewaste-toast-unknown {
    border-left-color: #dc3545;
}

.ewaste-toast-mail_failed .ewaste-toast-icon,
.ewaste-toast-validation_failed .ewaste-toast-icon,
.ewaste-toast-invalid .ewaste-toast-icon,
.ewaste-toast-spam .ewaste-toast-icon,
.ewaste-toast-unknown .ewaste-toast-icon {
    color: #dc3545;
}

.ewaste-toast-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    display: flex;
    align-items: center;
}

.ewaste-toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.ewaste-toast-close:hover {
    color: #6b7280;
    background-color: #f3f4f6;
}

/* 隐藏原始 CF7 响应消息 */
.wpcf7-response-output {
    display: none !important;
}

/* 修复验证错误消息样式 */
.wpcf7-not-valid-tip {
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    color: #dc3545 !important;
}

/* 修复表单提交加载动画位置 */
.wpcf7-spinner {
    margin-left: 1rem !important;
    position: relative !important;
}

/* =====================================================
   解决方案选项卡样式
   ===================================================== */

/* 选项卡导航容器 */
.solution-tabs-wrapper {
    margin-bottom: 2rem;
}

/* 自定义选项卡导航样式 */
.solution-nav-tabs {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.solution-nav-tabs .nav-item {
    flex: 1;
}

.solution-nav-tabs .nav-link {
    border: none;
    border-radius: 50px;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.solution-nav-tabs .nav-link:hover {
    color: #0d6efd;
    background: transparent;
}

.solution-nav-tabs .nav-link.active {
    background: transparent;
    color: #0d6efd;
    font-weight: 600;
}

.solution-nav-tabs .nav-link i {
    vertical-align: middle;
}

/* 选项卡内容淡入淡出效果 */
.tab-content .tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .solution-nav-tabs {
        border-radius: 12px;
        padding: 6px;
    }
    
    .solution-nav-tabs .nav-link {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .solution-nav-tabs .nav-link i {
        display: none;
    }
}

