/* EC Registration Plugin Styles */
 
/* 重置和基础样式 */
.regs-tabs .reg-title{
    display: none;
}
.reg-title{
  margin-bottom: 24px;
}
.ec-registration-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-left: auto;
    border-radius: 16px;
    padding: 40px 24px;
    background: #FFF;
    stroke-width: 1px;
    stroke: #E0E0E0;
}
html[dir="rtl"] .ec-registration-wrapper{
    margin-left: unset;
    margin-right: auto;
}
.ec-registration-wrapper.form-error-msg:before,.regs-tabs.form-error-msg:before {
    content: '';
    background: rgba(255, 255, 255, 0.80);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 16px;
    z-index: 3;
}

/* 表单样式 */

.ec-form-group {
    margin-bottom: 16px;
}

.ec-form-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    margin-bottom: 4px;
    position: relative;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

html[dir="rtl"] .ec-form-label {
    text-align: right;
}

.ec-form-input,
.ec-form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #EDF1F3;
    border-radius: 8px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    color: #000;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 0;
}

.ec-form-input::placeholder {
    color: #9ca3af;
}

.ec-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* 密码输入框样式 */
.ec-password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-password-toggle:hover {
    color: #374151;
}

.ec-eye-icon {
    width: 18px;
    height: 18px;
}

.ec-password-input .ec-form-input {
    padding-right: 40px;
}

/* 密码强度指示器 */
.ec-password-strength {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ec-password-strength.weak {
    color: #eb0b00;
}

.ec-password-strength.medium {
    color: #f39c12;
}

.ec-password-strength.strong {
    color: #27ae60;
}

/* 验证码组样式 */
.ec-verification-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-verification-group .ec-form-input {
    width: 100%;
    padding-left: 180px; /* 为按钮留出空间 */
}

.ec-send-code-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #003AF5;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: underline;
    min-width: auto;
    height: auto;
    line-height: 1.4;
    z-index: 2;
    text-align: left;
}

/* .ec-send-code-btn:hover {
    color: #059669;
    text-decoration: underline;
} */

.ec-send-code-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

/* 邀请码：label 仅占复选框+文字宽度，避免整行可点 */
.ref-code .ec-checkbox-label {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
}

/* 复选框样式 */
.ec-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.ec-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ec-checkbox-custom {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ACB5BB;
    background: transparent;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
html[dir="rtl"] .ec-checkbox-custom{
    margin-left: 10px;
    margin-right: 0;
}
.ec-checkbox:checked + .ec-checkbox-custom {
    border: 0;
}

.ec-checkbox:checked + .ec-checkbox-custom::after {
    content: url(../imgs/select_check_box.svg);
    position: absolute;
    left: -3px;
    top: -3px;
}

.ec-checkbox-text {
    color: #000;
    font-weight: 400;
    font-size: 12px;
    text-align: left;
    line-height: 16px;
}

html[dir="rtl"] .ec-checkbox-text{
    text-align: right;
}

.ec-checkbox-text a {
    color: #003AF5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: underline;
}


/* 提交按钮样式 */
.ec-submit-btn {
    width: 100%;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.ec-submit-btn:hover {
    background: #dc2626;
}

.ec-submit-btn:active {
    background: #b91c1c;
}

.ec-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.ec-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误信息样式 */
.ec-form-error {
    color: #eb0b00;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    text-align: left;
    min-height: 14px;
    margin-top: 5px;
}

/* .ec-form-error:not(:empty)::before {
    content: '⚠ ';
    margin-right: 4px;
} */

/* 底部样式 */
.ec-registration-footer {
    text-align: center;
    margin-bottom: 15px;
}
/* 合并页已有顶部 Tab / 入口，Register 下 Login 行隐藏 */
.regs-tabs .ec-registration-footer,
.ec-third-party-register .ec-registration-footer {
    display: none !important;
}
.ec-login-link {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: 0;
    margin-top: 12px;
}

.ec-login-link a {
    color: #003AF5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}


/* 协议部分样式：位于邀请码与注册按钮之间 */
.ec-agreement-section {
    text-align: left;
    padding-top: 0;
    margin-bottom: 8px;
}

html[dir="rtl"] .ec-agreement-section {
    text-align: right;
}

.ec-agreement-section .ec-checkbox-text {
    flex: 1;
    min-width: 0;
}

/* 未勾选协议时的确认弹窗（Notes） */
.ec-agreement-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ec-agreement-modal.is-open {
    display: flex;
}

.ec-agreement-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.ec-agreement-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 28px 20px;
    width: 100%;
    max-width: 520px;
    max-height: min(80vh, 560px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ec-agreement-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #B0B0B0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

html[dir="rtl"] .ec-agreement-modal-close {
    right: auto;
    left: 16px;
}

.ec-agreement-modal-close:hover {
    color: #888888;
}

.ec-agreement-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-right: 28px;
}

html[dir="rtl"] .ec-agreement-modal-header {
    padding-right: 0;
    padding-left: 28px;
}

.ec-agreement-modal-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F5A623;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    font-family: inherit;
}

.ec-agreement-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.ec-agreement-modal-body {
    overflow-y: auto;
    font-size: 14px;
    line-height: 22px;
    color: #4A4A4A;
    text-align: left;
    margin-bottom: 24px;
}

html[dir="rtl"] .ec-agreement-modal-body {
    text-align: right;
}

.ec-agreement-modal-body a {
    color: #003AF5;
    text-decoration: underline;
    font-weight: 500;
}

.ec-agreement-modal-footer {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ec-agreement-modal-agree {
    width: auto;
    min-width: 88px;
    background: #E33A32;
    color: #ffffff;
    border: none;
    padding: 8px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.ec-agreement-modal-agree:hover {
    background: #c92f28;
}

body.ec-agreement-modal-open {
    overflow: hidden;
}

/* 成功消息样式 */
.ec-success-message {
    background: #d4edda;
    color: #333333;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ec-success-message::before {
    content: '✓';
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    background: #28a745;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 错误提示弹窗样式 */
.ec-error-popup {
    position: absolute;
    top: 50%;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    text-align: left;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    text-align: center;
    flex-direction: column;
    transform: translate(0%, -50%);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.ec-error-popup-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #eb0b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ec-error-popup-icon::before {
    content: '×';
    color: #E33A32;
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
}

.ec-error-popup-content {
    flex: 1;
}

.ec-error-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ec-error-popup-message {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* 弹窗动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.ec-error-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}
.ec-registration-container{
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
}
.regs-tabs .ec-registration-container{
    position: unset;
}
/* 成功提示弹窗样式 */
.regs-tabs .ec-error-popup{
    left:0;
}
.ec-success-popup {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    left:0;
    width: 100%;
    background: #d4edda;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px 20px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.ec-success-popup-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-success-popup-icon::before {
    content: '✓';
    color: #28a745;
    font-size: 24px;
    line-height: 1;
}

.ec-success-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.ec-success-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

#terms_error{
    padding-left: 26px;
}
@media (max-width:1024px) {
    .ec-registration-wrapper {
        padding: 34px 24px 18px;
    }
    /* 移动端提示框样式 */
   .ec-password-tooltip {
       	top:102px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100%;
        text-align: left;
    }
    .ec-tooltip-arrow {
        display: none;
    }
    .ec-registration-container{
        margin: 0 auto;
    }
}
/* 响应式设计 */
@media (max-width: 768px) {
   
    
    .ec-registration-wrapper {
        max-width: 100%;
    }
    
    .ec-verification-group .ec-form-input {
        padding-left: 140px; /* 移动端减少按钮空间 */
    }
    
    .ec-send-code-btn {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    
    
    .ec-tooltip-arrow {
        display: none;
    }
    
    /* 移动端错误提示弹窗样式 */
   
    .ec-error-popup-title {
        font-size: 15px;
    }
    
    .ec-error-popup-message {
        font-size: 13px;
    }
    
    /* 移动端成功提示弹窗样式 */
    .ec-success-popup {
        padding: 12px 16px;
    }
    
    .ec-success-popup-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    
    .ec-form-input,
    .ec-form-select {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .ec-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* 加载状态 */
.ec-loading {
    pointer-events: none;
    opacity: 0.7;
}

.ec-loading .ec-btn-text {
    display: none;
}

.ec-loading .ec-btn-loading {
    display: inline-flex !important;
}

/* 错误状态样式 */
.ec-form-input.error,
.ec-form-select.error {
    border-color: #eb0b00;
}
input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important; /* text color */
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important; /* background color */
  box-shadow: 0 0 0px 1000px #fff inset !important;
  transition: background-color 5000s ease-in-out 0s; /* prevent yellow flash */
}

/* 成功状态样式 */
/* .ec-form-input.success,
.ec-form-select.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
} */

/* 禁用状态 */
.ec-form-input:disabled,
.ec-form-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 占位符样式 */
.ec-form-input::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* 选择框选项样式 */
.ec-form-select option {
    padding: 10px;
    background: #ffffff;
    color: #2c3e50;
}

/* 工具提示样式 */
.ec-tooltip {
    position: relative;
    display: inline-block;
}

.ec-tooltip .ec-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
}

.ec-tooltip:hover .ec-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 进度条样式 */
.ec-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.ec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e33935, #ff6b6b);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 密码提示框样式 */
.ec-password-tooltip {
    position: absolute;
    top: 68px;
    left:0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 280px;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: left;
}
html[dir="rtl"] .ec-password-tooltip {
    left: calc(100% + 15px);
    right: unset;
}
.ec-password-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ec-tooltip-arrow {
    position: absolute;
    right: -6px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #ffffff;
}

html[dir="rtl"] .ec-tooltip-arrow{
    right: unset;
    left: -6px;
    top: 20px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffffff;
    border-left: 0;
}
/* 
.ec-tooltip-arrow::before {
    content: '';
    position: absolute;
    left: 1px;
    top: -6px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #e5e7eb;
} */

.ec-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-tooltip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ec-tooltip-icon {
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 1px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ec-tooltip-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* 满足条件时的样式 */
.ec-tooltip-item.satisfied .ec-tooltip-icon {
    color: #10b981;
    background-color: #10b981;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ec-tooltip-item.satisfied .ec-tooltip-text {
    color: #10b981;
}


/* 验证码输入框特殊样式 */
#verification_code {
    text-align: right;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    font-family: inherit;
}



/* 国家选择框样式 */
.ec-country-select-container {
    position: relative;
}

.ec-country-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
html[dir="rtl"] .ec-country-search-icon{
    left: 12px;
    right: unset;
}
.ec-country-search-icon svg {
    width: 16px;
    height: 16px;
    margin-top: -1px;
}

.ec-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 4;
    display: none;
    scroll-behavior: auto;
}

.ec-country-dropdown.show {
    display: block;
}

.ec-country-list {
    padding: 0;
    margin: 0;
}

.ec-country-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #000000;
}

.ec-country-item:hover,
.ec-country-item.selected {
    background-color: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

.ec-country-item:last-child {
    border-bottom: none;
}

.ec-country-loading {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.ec-country-no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* 滚动条样式 */
.ec-country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ec-country-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ec-country-dropdown::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 3px;
}

.ec-country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* 国家选择框优化 */
.ec-form-select option[value=""] {
    color: #adb5bd;
    font-style: italic;
} 

/* 注册成功页面样式 */
.ec-success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}
.ec-success-icon {
  width: 80px;
  height: 80px;
  background: #34a853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.ec-success-icon span {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}
.ec-success-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 40px;
  text-align: center;
}
.ec-success-btn {
  width: 100%;
  max-width: 340px;
  background: #d64541;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 16px 0;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.ec-success-btn:hover {
  background: #b8322f;
}
.ec-success-skip {
  color: #d64541;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
} 

/* 手机号输入组样式 */
.ec-phone-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ec-phone-code-select-container {
    position: relative;
    flex-shrink: 0;
}

.ec-phone-code-input {
    width: 145px;
    min-height: 44px;
    height: 44px;
    padding: 13px 30px 13px 16px;
    border: 1px solid #EDF1F3;
    border-radius: 8px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #000;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 0;
    cursor: pointer;
    vertical-align: middle;
}

.ec-phone-code-input.error {
    border-color: #eb0b00;
}

.ec-phone-code-input:focus {
    border-color: #003AF5;
}

.ec-phone-code-dropdown-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

.ec-phone-code-dropdown-icon svg {
    width: 16px;
    height: 16px;
}

.ec-phone-code-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 4;
    display: none;
    min-width: 200px;
}

.ec-phone-code-dropdown.show {
    display: block;
}

.ec-phone-code-list {
    padding: 0;
    margin: 0;
}

.ec-phone-code-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #000000;
    display: flex;
    align-items: center;
}

.ec-phone-code-item .phone-code-number {
    display: inline-block;
    width: 50px;
    text-align: left;
    flex-shrink: 0;
}

.ec-phone-code-item .phone-code-country {
    flex: 1;
    text-align: left;
}

.ec-phone-code-item:hover,
.ec-phone-code-item.selected {
    background-color: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

.ec-phone-code-item:last-child {
    border-bottom: none;
}

.ec-phone-input {
    flex: 1;
    min-height: 44px;
    height: 44px;
    padding: 13px 16px;
    border: 1px solid #EDF1F3;
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #000;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 0;
    vertical-align: middle;
    width: 100%;
}

.ec-phone-input.error {
    border-color: #eb0b00;
}

.ec-phone-input:focus {
    border-color: #003AF5;
}

.ec-phone-input::placeholder {
    color: #9ca3af;
}

html[dir="rtl"] .ec-phone-group {
    flex-direction: row-reverse;
}

html[dir="rtl"] .ec-phone-code-dropdown-icon {
    left: 8px;
    right: unset;
}

/* 响应式设计 - 手机号 */
@media (max-width: 768px) {
    .ec-phone-code-input {
        width: 95px;
        padding: 12px 26px 12px 14px;
    }
}

@media (max-width: 480px) {
    .ec-phone-code-input,
    .ec-phone-input {
        padding: 12px 15px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .ec-phone-code-input {
        width: 90px;
        padding-right: 26px;
    }
}

#ec-registration-form.ec-no-verification-code .ec-verification-form-group {
    display: none;
}

@media screen and (min-width: 800px) {
    #ec-registration-form{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
    #ec-registration-form.ec-no-verification-code > .ec-form-group:first-of-type {
        grid-column: 1 / 3;
    }
    .reg-btn-form,.ref-code,.ec-agreement-section,.ec-form-group:nth-of-type(5), .ec-form-group:nth-of-type(6){
        grid-column: 1/3;
    }
    .ec-submit-btn{
        max-width: 200px;
        margin: 0 auto;
    }
    
}