/* Review Form Styling */
.product_review .ec-registerRole {
    width: 100%;
    margin: 0 auto 60px;
    padding: 20px;
}

.product_review .ec-pageHeader {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product_review .ec-pageHeader::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #525263;
    border-radius: 1.5px;
}

.product_review .ec-pageHeader h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.05em;
    margin: 0;
}

.product_review .ec-para-nomal {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
}

.product_review .ec-off1Grid {
    width: 100%;
    max-width: 100%;
}

.product_review .ec-off1Grid__cell {
    width: 100%;
    max-width: 100%;
}

.product_review .ec-borderedDefs {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    width: 100%;
}

.product_review .ec-borderedDefs dl {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}

.product_review .ec-borderedDefs dl:last-child {
    border-bottom: none;
}

.product_review .ec-borderedDefs dt {
    width: 20%;
    padding: 20px;
    background-color: #f8f8f8;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.product_review .ec-borderedDefs dd {
    width: 80%;
    padding: 20px;
    margin: 0;
    background-color: #fff;
}

.product_review .ec-input,
.product_review .ec-halfInput,
.product_review .ec-numberInput,
.product_review .ec-zipInput,
.product_review .ec-telInput,
.product_review .ec-select,
.product_review .ec-radio {
    margin-bottom: 0;
}

.product_review .ec-input input,
.product_review .ec-halfInput input,
.product_review .ec-numberInput input,
.product_review .ec-zipInput input,
.product_review .ec-telInput input,
.product_review .ec-select select {
    border-radius: 4px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 800px;
}

.product_review .ec-input input:focus,
.product_review .ec-halfInput input:focus,
.product_review .ec-numberInput input:focus,
.product_review .ec-zipInput input:focus,
.product_review .ec-telInput input:focus,
.product_review .ec-select select:focus {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    outline: none;
}

.product_review .ec-radio label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.product_review .ec-radio input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #1DA1F2;
}

.product_review .ec-input textarea {
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: all 0.3s;
    min-height: 120px;
    width: 100%;
    max-width: 800px;
}

.product_review .ec-input textarea:focus {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    outline: none;
}

.product_review .ec-label {
    display: inline-block;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.product_review .ec-label:after {
    content: '必須';
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background-color: #EA352D;
    border-radius: 3px;
    display: inline-block;
    font-weight: 400;
    line-height: 1;
    vertical-align: middle;
}

.product_review .ec-label.not-required:after {
    content: '任意';
    background-color: #999;
}

.product_review .ec-input.error input,
.product_review .ec-halfInput.error input,
.product_review .ec-numberInput.error input,
.product_review .ec-zipInput.error input,
.product_review .ec-telInput.error input,
.product_review .ec-select.error select,
.product_review .ec-textarea.error textarea {
    border-color: #EA352D;
}

.product_review .ec-errorMessage {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #EA352D;
}

/* Star rating styling */
#product_review_recommend_level {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#product_review_recommend_level .form-check {
    display: flex;
    align-items: center;
    margin: 0;
}

#product_review_recommend_level input[type="radio"] {
    margin-right: 6px;
}

#product_review_recommend_level label {
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
}

#product_review_recommend_level label::after {
    content: '';
    color: #FFB800;
    font-size: 16px;
    margin-left: 6px;
}

/* Action buttons */
.product_review .ec-registerRole__actions {
    margin-top: 40px;
}

.product_review .ec-off4Grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.product_review .ec-off4Grid__cell {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.product_review .ec-blockBtn--action,
.product_review .ec-blockBtn--cancel {
    width: auto;
    min-width: 200px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product_review .ec-blockBtn--action {
    background-color: #525263;
    border: none;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product_review .ec-blockBtn--action::before {
    content: '\f044';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.product_review .ec-blockBtn--action:hover {
    background-color: #3E3E4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product_review .ec-blockBtn--cancel {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
}

.product_review .ec-blockBtn--cancel::before {
    content: '\f053';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.product_review .ec-blockBtn--cancel:hover {
    background-color: #f1f1f1;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 767px) {
    .product_review .ec-borderedDefs dl {
        flex-direction: column;
    }

    .product_review .ec-borderedDefs dt,
    .product_review .ec-borderedDefs dd {
        width: 100%;
        padding: 15px;
    }

    .product_review .ec-borderedDefs dt {
        border-bottom: 1px solid #f0f0f0;
    }

    #product_review_recommend_level {
        flex-direction: column;
        gap: 8px;
    }

    .product_review .ec-pageHeader h1 {
        font-size: 20px;
    }

    .product_review .ec-off4Grid__cell {
        flex-direction: column;
    }

    .product_review .ec-blockBtn--action,
    .product_review .ec-blockBtn--cancel {
        width: 100%;
    }
}

/* Enhanced Review Styling */

/* Improved Radio Button Styling */
.product_review .ec-radio {
    margin-bottom: 10px;
}

.product_review .ec-radio label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    margin-right: 20px;
}

/* Gender radio buttons */
.product_review .ec-radio input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product_review .ec-radio input[type="radio"]:checked {
    border-color: #1DA1F2;
}

.product_review .ec-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #1DA1F2;
    border-radius: 50%;
}

.product_review .ec-radio input[type="radio"]:hover {
    border-color: #1DA1F2;
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

/* Star rating styling - specifically for the review form */
#product_review_recommend_level {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

#product_review_recommend_level .form-check {
    display: flex;
    align-items: center;
    margin: 0;
}

#product_review_recommend_level input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

#product_review_recommend_level input[type="radio"]:checked {
    border-color: #FFB800;
}

#product_review_recommend_level input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #FFB800;
    border-radius: 50%;
}

#product_review_recommend_level input[type="radio"]:hover {
    border-color: #FFB800;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

#product_review_recommend_level label {
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
}

#product_review_recommend_level label::after {
    content: '';
    color: #FFB800;
    font-size: 16px;
    margin-left: 6px;
}

/* Media queries */
@media (max-width: 767px) {
    #product_review_recommend_level {
        gap: 10px;
    }

    #product_review_recommend_level .form-check {
        width: 100%;
    }
}

/* Confirmation page styling */
.product_review_confirm .ec-registerRole {
    width: 100%;
    margin: 0 auto 60px;
    padding: 20px;
}

.product_review_confirm .ec-pageHeader {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product_review_confirm .ec-pageHeader::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #525263;
    border-radius: 1.5px;
}

.product_review_confirm .ec-pageHeader h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.05em;
    margin: 0;
}

.product_review_confirm .ec-para-nomal {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
}

.product_review_confirm .ec-borderedDefs {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.product_review_confirm .ec-borderedDefs dl {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}

.product_review_confirm .ec-borderedDefs dl:last-child {
    border-bottom: none;
}

.product_review_confirm .ec-borderedDefs dt {
    width: 20%;
    padding: 20px;
    background-color: #f8f8f8;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.product_review_confirm .ec-borderedDefs dd {
    width: 80%;
    padding: 20px;
    margin: 0;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.product_review_confirm .ec-label:after {
    content: '';
    display: none;
}

.product_review_confirm .ec-registerRole__actions {
    margin-top: 40px;
}

.product_review_confirm .ec-off4Grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.product_review_confirm .ec-off4Grid__cell {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.product_review_confirm .ec-blockBtn--action,
.product_review_confirm .ec-blockBtn--cancel {
    width: auto;
    min-width: 200px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product_review_confirm .ec-blockBtn--action {
    background-color: #525263;
    border: none;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product_review_confirm .ec-blockBtn--action::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.product_review_confirm .ec-blockBtn--action:hover {
    background-color: #3E3E4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product_review_confirm .ec-blockBtn--cancel {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
}

.product_review_confirm .ec-blockBtn--cancel::before {
    content: '\f053';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.product_review_confirm .ec-blockBtn--cancel:hover {
    background-color: #f1f1f1;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for confirmation page */
@media (max-width: 767px) {
    .product_review_confirm .ec-borderedDefs dl {
        flex-direction: column;
    }

    .product_review_confirm .ec-borderedDefs dt,
    .product_review_confirm .ec-borderedDefs dd {
        width: 100%;
        padding: 15px;
    }

    .product_review_confirm .ec-borderedDefs dt {
        border-bottom: 1px solid #f0f0f0;
    }

    .product_review_confirm .ec-pageHeader h1 {
        font-size: 20px;
    }

    .product_review_confirm .ec-off4Grid__cell {
        flex-direction: column;
    }

    .product_review_confirm .ec-blockBtn--action,
    .product_review_confirm .ec-blockBtn--cancel {
        width: 100%;
    }
}

/* Completion page styling */
.product_review_complete .ec-role {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px;
}

.product_review_complete .ec-pageHeader {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product_review_complete .ec-pageHeader::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #525263;
    border-radius: 1.5px;
}

.product_review_complete .ec-pageHeader h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.05em;
    margin: 0;
}

.product_review_complete .ec-registerCompleteRole {
    margin: 0 auto 60px;
    padding: 30px 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    max-width: 900px;
}

.product_review_complete .ec-off3Grid {
    width: 100%;
}

.product_review_complete .ec-off3Grid__cell {
    width: 100%;
    padding: 20px;
}

.product_review_complete .ec-text-ac {
    text-align: center;
}

.product_review_complete .ec-reportHeading {
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.product_review_complete .ec-reportHeading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #525263;
    border-radius: 1px;
}

.product_review_complete .ec-reportHeading h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product_review_complete .ec-reportDescription {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.product_review_complete .ec-off4Grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.product_review_complete .ec-off4Grid__cell {
    width: auto;
}

.product_review_complete .ec-blockBtn--cancel {
    min-width: 250px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
}

.product_review_complete .ec-blockBtn--cancel::before {
    content: '\f053';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.product_review_complete .ec-blockBtn--cancel:hover {
    background-color: #f1f1f1;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for completion page */
@media (max-width: 767px) {
    .product_review_complete .ec-pageHeader h1 {
        font-size: 20px;
    }

    .product_review_complete .ec-reportHeading h2 {
        font-size: 24px;
    }

    .product_review_complete .ec-reportDescription {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .product_review_complete .ec-blockBtn--cancel {
        width: 100%;
    }
}