/**
 * 邮件反馈表单样式
 * Version: 2.0.0 - 简约现代风格
 */

/* ========== 容器 ========== */
.wp-extension-email-feedback-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
}

.wp-extension-email-feedback-form-container *,
.wp-extension-email-feedback-form-container *::before,
.wp-extension-email-feedback-form-container *::after {
    box-sizing: border-box;
}

/* ========== 标题 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-title {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    border: none;
}

/* ========== 描述 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== 响应消息 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-response {
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-response.success {
    background: #f0f9f0;
    color: #2e7d32;
    display: block;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-response.error {
    background: #fef2f2;
    color: #c62828;
    display: block;
}

/* ========== 表单字段组 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group {
    margin: 0 0 16px 0;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group label {
    display: block;
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ========== 输入框 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="text"],
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="email"],
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="tel"],
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
    line-height: 1.5;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="text"]:focus,
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="email"]:focus,
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group input[type="tel"]:focus,
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group textarea:focus {
    border-color: #333;
    outline: none;
}

/* ========== 下拉框 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group select:focus {
    border-color: #333;
    outline: none;
}

/* ========== 文本域 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== 必填标记 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group .required {
    color: #c62828;
    margin-left: 2px;
}

/* ========== 提交按钮 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-submit {
    margin: 24px 0 0 0;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-submit-button:hover {
    background: #555;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-submit-button:active {
    transform: scale(0.97);
}

/* ========== 验证码 ========== */
.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group.captcha-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group.captcha-group .captcha-question {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    background: #f8f8f8;
    padding: 8px 14px;
    border-radius: 8px;
    color: #333;
    margin: 0;
}

.wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group.captcha-group input {
    width: 80px;
    text-align: center;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 600px) {
    .wp-extension-email-feedback-form-container {
        padding: 16px;
    }
    
    .wp-extension-email-feedback-form-container .wp-extension-email-feedback-submit-button {
        width: 100%;
    }
    
    .wp-extension-email-feedback-form-container .wp-extension-email-feedback-field-group.captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }
} 