/* 表单容器样式 */
.mlcf-form-container,
.mlcf-email-form-container {
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 20px;
}

/* 邮件表单样式 */
.mlcf-email-form {
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mlcf-email-form-promo {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
}

.mlcf-email-form-input-row {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.mlcf-email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    margin-bottom: 15px;
}

.mlcf-email-submit {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    width: auto;
}

.mlcf-email-submit:hover {
    background-color: #1d4ed8;
}

.mlcf-email-privacy {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mlcf-email-privacy input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
}

.email-privacy-policy-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
    font-weight: 500;
}

.email-form-status {
    margin-top: 15px;
}

.email-form-status .success-message {
    padding: 10px;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 4px;
    color: #065f46;
}

.email-form-status .error-message {
    padding: 10px;
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 4px;
    color: #b91c1c;
}

/* 表单样式 */
.mlcf-form {
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* 阴影和悬浮效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mlcf-form-promo {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
}

/* 移除悬浮互动效果 */
/* .mlcf-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
} */

/* 表单行样式 */
.mlcf-form-row {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .mlcf-form-row.inline-fields {
        display: flex;
        gap: 15px;
    }
    
    .mlcf-form-row.inline-fields .mlcf-form-group {
        flex: 1;
    }
}

/* 表单组样式 */
.mlcf-form-group {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .mlcf-form-row.inline-fields .mlcf-form-group {
        margin-bottom: 0;
    }
}

/* 标签样式 */
.mlcf-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1e293b;
}

/* 输入框样式 */
.mlcf-form-input,
.mlcf-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

/* 移除输入框焦点效果 */
/* .mlcf-form-input:focus, .mlcf-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
} */

/* 错误状态样式 - 浏览器原生验证会使用这些样式 */
.mlcf-form-input:invalid:not(:focus):not(:placeholder-shown),
.mlcf-form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #cbd5e1;
}

/* 文本区域样式 */
.mlcf-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 联系方式选项卡 */
.contact-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-tab {
    padding: 10px 20px;
    background-color: #f1f5f9;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.contact-tab:hover:not(.active) {
    background-color: #e2e8f0;
    color: #475569;
}

.contact-tab.active {
    color: #2563eb;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.contact-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px 3px 0 0;
}

/* 联系字段区域 */
.contact-field {
    margin-bottom: 15px;
}

/* 电话号码输入容器 */
.phone-input-container {
    display: flex;
    gap: 10px;
}

/* 国家代码容器 */
.country-code-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

#mlcf_country_code {
    width: 60px;
    flex-shrink: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 国家名称 */
#country-name {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

/* 错误消息 */
.ad-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* 提交按钮样式 */
.mlcf-form-submit {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* 移除按钮悬停效果 */
/* .mlcf-form-submit:hover {
    background-color: #1d4ed8;
} */

/* 提交按钮加载状态 */
.mlcf-form-submit.loading {
    background-color: #60a5fa;
    cursor: wait;
    position: relative;
}

.mlcf-form-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐私政策区域样式 */
.mlcf-privacy {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mlcf-privacy input {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.mlcf-privacy label {
    font-size: 14px;
    color: #475569;
    flex-grow: 1;
}

/* 隐私政策链接 */
.privacy-policy-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: default;
}

/* 已移除的旧联系方式选择器样式 */
/* 联系方式选择器 */
/* .contact-type-selector {
    display: flex;
    margin-bottom: 0;
    justify-content: flex-start;
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-type-option {
    text-align: center;
    padding: 4px 8px;
    background-color: #e2e8f0;
    cursor: default;
    font-size: 12px;
}

.contact-type-option:first-child {
    border-radius: 4px 0 0 4px;
}

.contact-type-option:last-child {
    border-radius: 0 4px 4px 0;
}

.contact-type-option.active {
    background-color: #2563eb;
    color: white;
} */

/* 弹窗样式 */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

.modal-title {
    margin-top: 0;
    color: #1e293b;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal-footer {
    text-align: right;
}

.modal-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* 表单状态提示样式 */
.form-status {
    margin-top: 15px;
}

.success-message {
    padding: 15px;
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 4px;
    color: #059669;
}

.error-message {
    padding: 15px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
}

/* 必填标记 */
.required-mark {
    color: #dc3232;
}
    