/*
Theme Name: paper-plastic
Theme URI: https://paper-plastic.com
Author: Aaron
Author URI: https://paper-plastic.com
Description: this is a website for paper-plastic recycling line
Version: 1.0
*/
/* 修复文本区域高度 - 减少高度 */
.wpcf7-form textarea.form-control {
    min-height: 120px !important; /* 减少高度 */
    height: 120px !important; /* 固定高度 */
}

/* ==========================================
   Contact Form 7 Toast 通知样式
   ========================================== */

/* Toast 容器 */
.cf7-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%;
}

/* Toast 基础样式 */
.cf7-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;
}

/* Toast 显示状态 */
.cf7-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Toast 隐藏状态 */
.cf7-toast.hide {
    transform: translateY(-20px);
    opacity: 0;
}

/* Toast 图标 */
.cf7-toast-icon {
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

/* 成功状态图标颜色 */
.cf7-toast-mail_sent .cf7-toast-icon {
    color: #10b981;
}

/* 错误状态图标颜色 */
.cf7-toast-mail_failed .cf7-toast-icon,
.cf7-toast-validation_failed .cf7-toast-icon,
.cf7-toast-invalid .cf7-toast-icon,
.cf7-toast-spam .cf7-toast-icon,
.cf7-toast-unknown .cf7-toast-icon {
    color: #ef4444;
}

/* Toast 内容 */
.cf7-toast-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    display: flex;
    align-items: center;
}

/* Toast 关闭按钮 */
.cf7-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;
    transition: color 0.2s ease;
}

.cf7-toast-close:hover {
    color: #6b7280;
}

/* 隐藏原始 Contact Form 7 响应消息 */
.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;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .cf7-toast-container {
        top: 60px;
        max-width: 90%;
    }
    
    .cf7-toast {
        padding: 12px;
    }
    
    .cf7-toast-content {
        font-size: 13px;
    }
    
    .cf7-toast-icon {
        font-size: 18px;
        margin-right: 10px;
    }
}

