/* CF7 Popup Form 极简样式 */

/* 弹窗遮罩层 */
.cf7-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 弹窗容器 */
.cf7-popup-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 弹窗内容 */
.cf7-popup-content {
    padding: 30px;
    position: relative;
}

/* 弹窗标题 */
.cf7-popup-header {
    margin-bottom: 20px;
    text-align: center;
}

.cf7-popup-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a202c;
    font-weight: 600;
}

/* 弹窗描述 */
.cf7-popup-description {
    margin-bottom: 20px;
    text-align: center;
}

.cf7-popup-description p {
    margin: 0;
    font-size: 16px;
    color: #4a5568;
}

/* 关闭按钮 */
.cf7-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: 300;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}

.cf7-popup-close:hover {
    color: #2d3748;
}

/* 弹出按钮样式 */
.cf7-popup-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cf7-popup-button:hover {
    background-color: #0056b3;
}

/* Contact Form 7 样式优化 */
.cf7-popup-body .wpcf7-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a5568;
}

.cf7-popup-body .wpcf7-form input[type="text"],
.cf7-popup-body .wpcf7-form input[type="email"],
.cf7-popup-body .wpcf7-form input[type="tel"],
.cf7-popup-body .wpcf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

.cf7-popup-body .wpcf7-form input[type="text"]:focus,
.cf7-popup-body .wpcf7-form input[type="email"]:focus,
.cf7-popup-body .wpcf7-form input[type="tel"]:focus,
.cf7-popup-body .wpcf7-form textarea:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.cf7-popup-body .wpcf7-form input[type="submit"] {
    background-color: #0078ff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
}

.cf7-popup-body .wpcf7-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .cf7-popup-container {
        width: 95%;
    }
    .cf7-popup-content {
        padding: 20px;
    }
}

/* 成功消息样式 */
.cf7-success-message {
    text-align: center;
    color: #38a169;
    padding: 30px 0;
}

.cf7-success-message svg {
    margin: 0 auto 15px;
    display: block;
}

.cf7-success-message p {
    font-size: 18px;
    margin: 0;
    color: #2f855a;
}
