/* ========== 忘記密碼頁面樣式 - 套用 member-pass-forgot.html 設計 ========== */

/* CSS 樣式隔離 - 使用 wrapper class */
.cmm-forgot-password-wrapper {
    font-family: "Noto Sans TC", "微軟正黑體", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: transparent;
}

.cmm-forgot-password-wrapper * {
    box-sizing: border-box;
}

/* 基本重置 */
.cmm-forgot-password-wrapper h1, 
.cmm-forgot-password-wrapper h2, 
.cmm-forgot-password-wrapper h3, 
.cmm-forgot-password-wrapper h4,
.cmm-forgot-password-wrapper p {
    margin: 0 !important;
}

.cmm-forgot-password-wrapper a {
    color: #333;
    text-decoration: none;
    transition: 0.3s ease;
}

.cmm-forgot-password-wrapper a:hover {
    color: #FF6263;
}

/* 主要容器 - 高優先級覆蓋WordPress主題 */
div.cmm-forgot-password-wrapper div.main_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

div.cmm-forgot-password-wrapper div.main_wrap.member_join {
    background: transparent !important;
    padding: 40px 20px !important;
}

div.cmm-forgot-password-wrapper div.main_wrap.member_join div.group {
    max-width: 800px;
    min-width: 750px;
    width: 90%;
    padding: 20px 25px;
    background: #fff;
    border-radius: 30px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 頁面標題 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.page_title {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.page_title h1 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 40px !important;
    font-weight: bold !important;
    color: #C39F57 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.page_title h1 span {
    color: #C39F57 !important;
    text-align: center !important;
}

/* 說明文字區域 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.text {
    padding: 15px 0;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.text div.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.text div.flex_column {
    flex-direction: column;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.text h4 {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.text h4.tc {
    text-align: center !important;
}

/* 表單樣式 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.form {
    margin-bottom: 20px;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
}

/* 表單項目 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item > span {
    width: 110px;
    text-align: right;
    line-height: 1.2em;
    color: #333 !important;
    font-weight: normal !important;
    font-size: 18px !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item p {
    width: calc(100% - 130px);
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item input[type=text] {
    width: 100% !important;
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    font-size: 16px !important;
    color: #333 !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item input[type=text]::placeholder {
    font-size: 14px;
    color: #999;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item input[type=text]:focus {
    outline: none !important;
    border-color: #C39F57 !important;
    box-shadow: 0 0 5px rgba(195, 159, 87, 0.3) !important;
}

/* 表單內說明文字 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text ul li {
    position: relative;
    padding-left: 20px !important;
    margin-bottom: 8px !important;
    color: #666 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #C39F57;
    font-weight: bold;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text ul li:last-child {
    margin-bottom: 0 !important;
}

/* 按鈕樣式 */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.btn_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 20px 0;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box button.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    padding: 15px 20px;
    line-height: 1.3em;
    background: #C39F57 !important;
    border: 1px solid #C39F57 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-family: "Noto Sans TC", sans-serif !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box button.btn:hover {
    background: #f00 !important;
    border-color: #f00 !important;
    color: #fff !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box button.btn:disabled {
    background: #999 !important;
    border-color: #999 !important;
    cursor: not-allowed !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box button.btn span {
    color: #fff !important;
}

/* 功能按鈕 (返回連結) */
div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.fn_btn {
    text-align: center;
    margin-top: 20px;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.fn_btn a {
    color: #666 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.fn_btn a:hover {
    color: #C39F57 !important;
}

div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.fn_btn a span {
    color: inherit !important;
}

/* 訊息樣式 */
div.cmm-forgot-password-wrapper div.cmm-message {
    padding: 15px !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 500 !important;
}

div.cmm-forgot-password-wrapper div.cmm-message.success {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

div.cmm-forgot-password-wrapper div.cmm-message.error {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

/* 響應式設計 */
@media screen and (max-width: 450px) {
    div.cmm-forgot-password-wrapper div.main_wrap div.group {
        min-width: auto !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item > span,
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item p {
        width: 100% !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.form_item > span {
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box button.btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.page_title h1 {
        font-size: 28px !important;
    }
    
    div.cmm-forgot-password-wrapper div.main_wrap div.group div.text h4 {
        font-size: 16px !important;
    }

    div.cmm-forgot-password-wrapper div.main_wrap div.group div.form div.box div.text ul li {
        position: relative;
        padding-left: 10px !important;
        margin-bottom: 8px !important;
        color: #666 !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}