/* =========================================
   WEB RATING FRONTEND
   CLIENT REVIEW FORM
========================================= */

.web-rating-form-wrapper{
    width:100%;
    max-width:760px;
    margin:0 auto;

    font-family:Roboto, sans-serif;
}


.web-rating-form{
    background:#ffffff;

    border:1px solid #e8ecf2;

    border-radius:18px;

    padding:40px;

    box-sizing:border-box;

    box-shadow:
        0 15px 45px
        rgba(20,30,50,.07);
}


/* =========================================
   FORM HEADER
========================================= */

.web-rating-form-header{
    margin-bottom:32px;
}


.web-rating-form-label{
    display:inline-flex;

    padding:6px 12px;

    background:#eef3ff;

    color:#3b67d8;

    border-radius:20px;

    font-size:10px;

    font-weight:700;

    letter-spacing:1px;

    margin-bottom:12px;
}


.web-rating-form-header h3{
    margin:0 0 8px;

    color:#18233b;
font-family:roboto;
    font-size:27px;

    font-weight:700;

    line-height:1.3;
}


.web-rating-form-header p{
    margin:0;

    color:#748094;

    font-size:14px;
font-family:Roboto;
    line-height:1.7;
}


/* =========================================
   FORM FIELD
========================================= */

.web-rating-field{
    margin-bottom:23px;
}


.web-rating-field label{
    display:block;

    margin-bottom:8px;

    color:#25324a;

    font-size:13px;

    font-weight:600;
}


.web-rating-field label span{
    color:#d9534f;

    margin-left:2px;
}


.web-rating-field label small{
    display:inline-block;

    margin-left:6px;

    color:#9099a8;

    font-size:10px;

    font-weight:400;
}


/* =========================================
   INPUT
========================================= */

.web-rating-field input[type="text"],
.web-rating-field input[type="email"],
.web-rating-field select,
.web-rating-field textarea{
    width:100%;

    border:1px solid #dfe4ec;

    background:#ffffff;

    color:#25324a;

    padding:13px 15px;

    border-radius:8px;

    font-family:Roboto, sans-serif;

    font-size:13px;

    line-height:1.5;

    box-sizing:border-box;

    outline:none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}


.web-rating-field input[type="text"]:focus,
.web-rating-field input[type="email"]:focus,
.web-rating-field select:focus,
.web-rating-field textarea:focus{
    border-color:#3b67d8;

    box-shadow:
        0 0 0 3px
        rgba(59,103,216,.08);
}


.web-rating-field input::placeholder,
.web-rating-field textarea::placeholder{
    color:#a7afbb;
}


.web-rating-field textarea{
    resize:vertical;

    min-height:130px;
}


.web-rating-field select{
    cursor:pointer;

    appearance:auto;
}


.web-rating-field-note{
    display:block;

    margin-top:7px;

    color:#929bab;

    font-size:10px;
}


/* =========================================
   STAR RATING
========================================= */

.web-rating-stars-field{
    padding:20px;

    background:#f8faff;

    border:1px solid #e6ebf4;

    border-radius:12px;
}


.web-rating-star-selector{
    display:flex;

    flex-direction:row-reverse;

    justify-content:flex-end;

    gap:5px;

    margin-top:10px;
}


.web-rating-star-selector input{
    display:none;
}


.web-rating-star-selector label{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:38px;

    height:38px;

    margin:0;

    color:#d9dee7;

    font-size:30px;

    cursor:pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}


/* SELECTED STAR */

.web-rating-star-selector input:checked ~ label{
    color:#f5ad32;
}


/* HOVER STAR */

.web-rating-star-selector label:hover,
.web-rating-star-selector label:hover ~ label{
    color:#f5ad32;

    transform:scale(1.08);
}


.web-rating-selected-rating{
    margin-top:10px;

    color:#8a94a5;

    font-size:11px;
}


/* =========================================
   FILE UPLOAD
========================================= */

.web-rating-upload-box{
    position:relative;

    width:100%;

    min-height:150px;

    border:1.5px dashed #ccd5e3;

    border-radius:12px;

    background:#fafbfd;

    overflow:hidden;

    transition:
        border-color .25s ease,
        background .25s ease;
}


.web-rating-upload-box:hover{
    border-color:#3b67d8;

    background:#f5f8ff;
}


.web-rating-upload-box input[type="file"]{
    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    opacity:0;

    cursor:pointer;

    z-index:2;
}


.web-rating-upload-content{
    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    pointer-events:none;
}


.web-rating-upload-icon{
    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:10px;

    border-radius:50%;

    background:#eaf0fb;

    color:#3b67d8;

    font-size:22px;

    font-weight:600;
}


.web-rating-upload-content strong{
    color:#35415a;

    font-size:12px;

    margin-bottom:5px;
}


.web-rating-upload-content small{
    color:#929bab;

    font-size:10px;
}


/* =========================================
   IMAGE PREVIEW
========================================= */

.web-rating-image-preview{
    position:relative;

    margin-top:15px;

    padding:12px;

    border:1px solid #e4e9f0;

    border-radius:10px;

    background:#fafbfd;
}


.web-rating-image-preview img{
    display:block;

    width:70px;

    height:70px;

    object-fit:cover;

    border-radius:50%;

    margin-bottom:10px;
}


.web-rating-remove-image{
    border:none;

    background:#fff0f0;

    color:#cc4c4c;

    padding:7px 12px;

    border-radius:6px;

    font-family:Roboto, sans-serif;

    font-size:10px;

    font-weight:600;

    cursor:pointer;
}


/* =========================================
   SUBMIT AREA
========================================= */

.web-rating-submit-area{
    padding-top:5px;

    text-align:center;
}


.web-rating-submit-button{
    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    border:none;

    background:#18233b;

    color:#ffffff;

    padding:15px 22px;

    border-radius:9px;

    font-family:Roboto, sans-serif;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


.web-rating-submit-button:hover{
    background:#30425f;

    transform:translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(24,35,59,.18);
}


.web-rating-submit-button:active{
    transform:translateY(0);
}


.web-rating-submit-arrow{
    font-size:18px;

    transition:transform .25s ease;
}


.web-rating-submit-button:hover
.web-rating-submit-arrow{
    transform:translateX(4px);
}


.web-rating-submit-area small{
    display:block;

    margin-top:12px;

    color:#929bab;

    font-size:10px;

    line-height:1.6;
}


/* =========================================
   SUCCESS / ERROR MESSAGE
========================================= */

.web-rating-form-message{
    display:flex;

    align-items:flex-start;

    gap:14px;

    padding:18px;

    margin-bottom:22px;

    border-radius:12px;

    font-family:Roboto, sans-serif;
}


.web-rating-message-icon{
    width:35px;

    height:35px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    font-size:17px;

    font-weight:700;

    flex-shrink:0;
}


.web-rating-form-message strong{
    display:block;

    margin-bottom:4px;

    font-size:13px;
}


.web-rating-form-message p{
    margin:0;

    font-size:11px;

    line-height:1.6;
}


/* SUCCESS */

.web-rating-form-success{
    background:#effaf3;

    border:1px solid #ccebd7;

    color:#287145;
}


.web-rating-form-success
.web-rating-message-icon{
    background:#d9f3e3;

    color:#2c9a57;
}


/* ERROR */

.web-rating-form-error{
    background:#fff4f4;

    border:1px solid #f2d0d0;

    color:#a84343;
}


.web-rating-form-error
.web-rating-message-icon{
    background:#ffe0e0;

    color:#cc4c4c;
}


/* =========================================
   TABLET
========================================= */

@media(max-width:768px){

    .web-rating-form{
        padding:30px 25px;
    }


    .web-rating-form-header h3{
        font-size:24px;
    }


    .web-rating-star-selector label{
        width:34px;

        height:34px;

        font-size:27px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media(max-width:480px){

    .web-rating-form{
        padding:24px 18px;

        border-radius:14px;
    }


    .web-rating-form-header{
        margin-bottom:25px;
    }


    .web-rating-form-header h3{
        font-size:21px;
    }


    .web-rating-form-header p{
        font-size:12px;
    }


    .web-rating-field{
        margin-bottom:20px;
    }


    .web-rating-field input[type="text"],
    .web-rating-field input[type="email"],
    .web-rating-field select,
    .web-rating-field textarea{
        padding:12px;

        font-size:13px;
    }


    .web-rating-stars-field{
        padding:16px;
    }


    .web-rating-star-selector{
        gap:2px;
    }


    .web-rating-star-selector label{
        width:30px;

        height:34px;

        font-size:25px;
    }


    .web-rating-upload-box{
        min-height:130px;
    }


    .web-rating-submit-button{
        padding:14px 18px;
    }


    .web-rating-form-message{
        padding:15px;

        gap:10px;
    }


    .web-rating-message-icon{
        width:30px;

        height:30px;
    }

}

/* =========================================
   FORM LOADING STATE
========================================= */

.web-rating-submit-button:disabled{
    opacity:.75;

    cursor:not-allowed;

    transform:none;
}


.web-rating-submit-button.web-rating-loading{
    pointer-events:none;
}


/* =========================================
   IMAGE PREVIEW LAYOUT
========================================= */

.web-rating-image-preview{
    display:flex !important;

    align-items:center;

    gap:15px;
}


.web-rating-image-preview img{
    margin-bottom:0;
}

/* =========================================
   WEB RATING DISPLAY
   FINAL SLIDER FIX
========================================= */

.web-rating-display{
    width:100%;
    max-width:900px;
    margin:0 auto;

    font-family:Roboto, sans-serif;

    position:relative;

    /*
    IMPORTANT:
    Hide previous and next cards completely
    */

    overflow:hidden;

    box-sizing:border-box;
}


/* =========================================
   SLIDER TRACK
========================================= */

.web-rating-display-inner{

    display:flex;

    width:100%;

    /*
    IMPORTANT:
    NO GAP
    Gap causes neighbouring slide problems
    */

    gap:0;

    transition:
        transform .5s cubic-bezier(
            .22,
            .61,
            .36,
            1
        );

    will-change:transform;

}


/* =========================================
   REVIEW CARD / SLIDE
========================================= */

.web-rating-card{

    /*
    Each card occupies exactly one viewport
    */

    flex:0 0 100%;

    width:100%;

    min-width:100%;

    box-sizing:border-box;

    position:relative;


    /*
    Shadow-safe space INSIDE slide
    */

    margin:20px 0 25px;

    padding:34px;


    background:#ffffff;

    border:1px solid #e8ecf2;

    border-radius:18px;


    box-shadow:
        0 18px 50px
        rgba(20,30,50,.08);

}


/* =========================================
   CARD TOP
========================================= */

.web-rating-card-top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    margin-bottom:25px;

}


/* =========================================
   STARS
========================================= */

.web-rating-stars{

    display:flex;

    align-items:center;

    gap:3px;

    font-size:20px;

    line-height:1;

}


.web-rating-stars span{

    display:inline-block;

}


.star-filled{

    color:#f4b13c;

}


.star-empty{

    color:#dfe4eb;

}


/* =========================================
   SERVICE CATEGORY
========================================= */

.web-rating-service{

    padding:6px 11px;

    background:#f1f4f9;

    color:#66738a;

    border-radius:20px;

    font-size:10px;

    font-weight:600;

    white-space:nowrap;

}


/* =========================================
   COMMENT AREA
========================================= */

.web-rating-comment{

    position:relative;

    min-height:130px;

    margin-bottom:30px;

    padding-left:30px;

}


.web-rating-quote-mark{

    position:absolute;

    top:-10px;

    left:0;

    color:#dce4f0;

    font-family:Georgia, serif;

    font-size:60px;

    line-height:1;

}


.web-rating-comment-text{

    color:#435069;

    font-size:16px;

    line-height:1.8;

}


.web-rating-comment-text p{

    margin:0;

}


/* =========================================
   CLIENT SECTION
========================================= */

.web-rating-client{

    display:flex;

    align-items:center;

    gap:13px;

    padding-top:22px;

    border-top:1px solid #edf0f4;

}


/* =========================================
   AVATAR
========================================= */

.web-rating-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    overflow:hidden;

    flex-shrink:0;

    background:#edf1f7;

}


.web-rating-avatar-image{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}


.web-rating-avatar-initial{

    width:100%;

    height:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#eaf0fb;

    color:#3b67d8;

    font-size:17px;

    font-weight:700;

}


/* =========================================
   CLIENT INFORMATION
========================================= */

.web-rating-client-info{

    display:flex;

    flex-direction:column;

    gap:3px;

}


.web-rating-client-info strong{

    color:#26334b;

    font-size:13px;

    font-weight:700;

}


.web-rating-client-info span{

    color:#8a95a7;

    font-size:11px;

}


/* =========================================
   CONTROLS
========================================= */

.web-rating-controls{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:18px;

    margin-top:0;

    padding-top:5px;

    position:relative;

    z-index:10;

}

/* =========================================
   ARROW BUTTONS
========================================= */

.web-rating-prev,
.web-rating-next {
    width: 38px;
    padding:10px;
height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50px;

    background: #ffffff;

    color: #65738a;

    font-size: 18px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    flex-shrink: 0;

    box-shadow:
        0 4px 12px rgba(30, 45, 70, 0.06);

    transition:
        all 0.25s ease;
}


/* HOVER */

.web-rating-prev:hover,
.web-rating-next:hover {

    background: #18233b;

    

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(24, 35, 59, 0.18);

}


/* CLICK */

.web-rating-prev:active,
.web-rating-next:active {

    transform: translateY(0) scale(0.96);

}
/* =========================================
   DOTS
========================================= */

.web-rating-dots{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

}


.web-rating-dot{

    width:7px;

    height:7px;

    padding:0;

    border:none;

    border-radius:20px;

    background:#d5dbe5;

    cursor:pointer;

    transition:
        width .25s ease,
        background .25s ease;

}


.web-rating-dot.active{

    width:22px;

    background:#3b67d8;

}


/* =========================================
   EMPTY MESSAGE
========================================= */

.web-rating-empty{

    padding:35px;

    text-align:center;

    background:#fafbfd;

    border:1px dashed #dce2eb;

    border-radius:14px;

    color:#8b95a6;

    font-family:Roboto, sans-serif;

    font-size:13px;

}


/* =========================================
   TABLET
========================================= */

@media(max-width:768px){

    .web-rating-card{

        margin:15px 0 20px;

        padding:28px;

    }


    .web-rating-comment{

        min-height:auto;

    }


    .web-rating-comment-text{

        font-size:14px;

    }

}


/* =========================================
   MOBILE
========================================= */

@media(max-width:480px){

    .web-rating-display{

        width:100%;

    }


    .web-rating-card{

        margin:12px 0 18px;

        padding:22px 18px;

        border-radius:14px;

        box-shadow:
            0 12px 35px
            rgba(20,30,50,.08);

    }


    .web-rating-card-top{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

        margin-bottom:20px;

    }


    .web-rating-stars{

        font-size:18px;

    }


    .web-rating-comment{

        padding-left:22px;

        margin-bottom:24px;

    }


    .web-rating-quote-mark{

        font-size:48px;

    }


    .web-rating-comment-text{

        font-size:13px;

        line-height:1.75;

    }


    .web-rating-client{

        padding-top:18px;

    }


    .web-rating-avatar{

        width:42px;

        height:42px;

    }

}



