/* ================================
   REVIEW FORM WRAPPER
================================ */

.enc-review-form {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: "Segoe UI", Roboto, sans-serif;
    text-align: center;
}
/* General message container */
.enc-message {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    border-left: 5px solid;
}

/* Success message */
.enc-message.enc-success {
    background-color: #e6f9f0;
    color: #2f855a;
    border-color: #2f855a;
}

/* Error message */
.enc-message.enc-error {
    background-color: #ffe6e6;
    color: #c53030;
    border-color: #c53030;
}
.enc-form-footer-field-wrap {
    padding: 20px 20px;
}
.enc-form-header .enc-form-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    max-width: 540px;
    margin: 12px auto 0;
    font-weight: 400;
}
.enc_email {
    background: #d4d4d4 !important;
}
/* ================================
   FORM HEADER STRIP
================================ */
.enc-form-header {
    background: #FBB03A;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    color: #fff;
}

.enc-header-heading {
    font-size: 22px;
    margin: 10px 0 0;
    font-weight: 700;
    color: #000;
}

.enc-review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.enc-review-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.enc-review-header img:hover {
    transform: scale(1.1);
}

/* ================================
   HEADER LOGO STRIP
================================ */
.enc-review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.enc-review-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.enc-review-header img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* ================================
   FORM FIELDS
================================ */
.enc-review-form h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1f2937;
}

.enc-review-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 6px;
    text-align: left;
    color: #374151;
}

.enc-review-form input[type="email"],
.enc-review-form input[type="url"],
.enc-review-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    margin-bottom: 10px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.enc-review-form input:focus {
    outline: none;
    border-color: #FBB03A;
    box-shadow: 0 0 0 3px rgba(251,176,58,0.25);
}

.enc-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ================================
   SUBMIT BUTTON
================================ */
.enc-review-form button {
    background: #FBB03A;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    width: 100%;
}

.enc-review-form button:hover {
    background: #e09d32;
    transform: translateY(-2px);
}

/* Reward message box */
.enc-reward-message {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border: 2px solid #38a169;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    animation: encFadeIn 0.8s ease;
}

/* Trophy icon */
.enc-reward-icon {
    font-size: 40px;
    margin-right: 15px;
    color: #2f855a;
}

/* Text style */
.enc-reward-text {
    font-size: 18px;
    font-weight: 600;
    color: #22543d;
}

/* Entry animation */
@keyframes encFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   GRID WRAPPER
================================ */
.enc-rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 10px;
}

/* ================================
   RANK CARD BASE
================================ */
.enc-rank-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    background: #ffffff;
}
.enc-rank-card img {
    width: 200px;
}

/* ================================
   STATE VARIATIONS
================================ */
.enc-rank-card.current-rank {
    background: #fff;
}
.enc-rank-card.user-has-not-earned {
    border: 1px solid #d1d5db;
    background: #fff;
    opacity: 0.85;
    list-style: none;
}

.enc-rank-card.user-has-not-earned::marker {
    display: none;
}

/* ================================
   TITLE & IMAGE
================================ */
.enc-rank-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #111827;
}

.enc-rank-thumb {
    max-width: 120px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ================================
   MESSAGES
================================ */
.enc-rank-msg {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-has-earned .enc-rank-msg {
    background: #dcfce7;
    color: #166534;
}

.user-has-not-earned .enc-rank-msg {
    background: #fef2f2;
    color: #991b1b;
}

/* ================================
   REQUIREMENTS LIST
================================ */
.enc-rank-req {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.enc-rank-req li {
    font-size: 14px;
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* ================================
   EARNED RANK HEADING
================================ */
.enc-rank-earned-heading {
    font-size: 15px;
    font-weight: 700;
    color: #166534;
    margin: 10px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ================================
   EARNED DETAILS LIST
================================ */
.enc-rank-earned-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.enc-rank-earned-list li {
    font-size: 14px;
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.enc-rank-earned-list li:hover {
    background: #d1fae5;
}

/* ================================
   GAMIPRESS USER POINTS CARD
================================ */
.gamipress-user-points {
    max-width: 320px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gamipress-user-points:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* ================================
   IMAGE
================================ */
.gamipress-user-points-image img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    object-fit: cover;
    transition: transform 0.3s ease;
}
/* ================================
   DESCRIPTION
================================ */
.gamipress-user-points-description {
    flex: 1;
}

/* Points amount */
.gamipress-user-points-amount {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #FBB03A;
    margin-bottom: 4px;
    line-height: 1;
}

/* Points label */
.gamipress-user-points-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}
.wc-new-ps-form .woocommerce-Button.button {
    background: black !important;
}

/* Minimal Media Query for smaller screens */
@media (max-width: 640px) {
    .enc-review-form {
        font-size: 15px;
    }
    .enc-form-footer-field-wrap {
        padding: 20px 20px;
    }
    .enc-review-form h2 {
        font-size: 20px;
    }

    .enc-review-form label,
    .enc-review-form input[type="text"],
    .enc-review-form textarea,
    .enc-review-form button[type="submit"] {
        font-size: 15px;
    }

    .enc-message {
        font-size: 15px;
    }
}
