/**
 * Plugin Name: Service Rating
 * Description: Styles for the Service Rating Plugin.
 * Version: 1.1.2
 * Author: Nacho Macías
 */

/* ==========================================================================
   Estilos Base del Contenedor del Plugin
   ========================================================================== */

#service-rating-wrapper {
    box-sizing: border-box; /* Buena práctica para controlar el modelo de caja */
    margin-top: 5rem;
}

#service-rating-wrapper *,
#service-rating-wrapper *::before,
#service-rating-wrapper *::after {
    box-sizing: inherit; /* Hereda el box-sizing a todos los elementos internos */
}

#service-rating-wrapper #service-rating-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 2rem;
}


/* ==========================================================================
   Estilos de los Campos del Formulario
   ========================================================================== */

#service-rating-wrapper #service-rating-form label.text__label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: #555555;
    font-size: 1.2rem;
}

#service-rating-wrapper #service-rating-form label.text__label span {
    font-size: 1.2rem;
    font-weight: 700;
}

#service-rating-wrapper #service-rating-form input[type="text"],
#service-rating-wrapper #service-rating-form input[type="email"],
#service-rating-wrapper #service-rating-form input[type="tel"],
#service-rating-wrapper #service-rating-form input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #555555;
    font-weight: 500;
    font-size: 1.2rem;
}

#service-rating-wrapper #service-rating-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 4rem;
    margin-bottom: 20px;
    border: 2px solid #6aad79;
    border-radius: 5px;
    background-color: #d9d9d9;
    color: #555555;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

#service-rating-wrapper #service-rating-form input[type="submit"]:hover {
    background-color: #ffffff;
    color: #5abe8c;
    border-color: #6aad79;
}

#service-rating-wrapper #service-rating-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #555555;
    font-weight: 500;
    font-size: 1.2rem;
}

/* ==========================================================================
   Estilos de las Valoraciones con Imágenes
   ========================================================================== */


#service-rating-wrapper .rating-section-heading {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

#service-rating-wrapper .rating-section-heading .title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #555555;
}   


#service-rating-wrapper .rating-section {
    margin-top: 2rem;
}

#service-rating-wrapper .rating-options {
    display: flex;
    justify-content: space-around; /* space-around da un poco más de aire */
    align-items: center;
    margin-bottom: 20px;
}

#service-rating-wrapper .rating-options label {
    cursor: pointer;
    margin: 0 0.5rem;
    position: relative;
    display: inline-block;
}

#service-rating-wrapper .rating-options input[type="radio"] {
    /* Ocultamos el radio button de forma accesible */
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

#service-rating-wrapper .rating-options img {
    height: 5rem; /* Tamaño base */
    width: 5rem;
    border: 3px solid transparent; /* Borde invisible para evitar saltos */
    border-radius: 50%;
    transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}

/* Selector corregido y mejorado para el estado :checked */
#service-rating-wrapper .rating-options input[type="radio"]:checked + img {
    transform: scale(1.15);
    border-color: #74a55b;
}

#service-rating-wrapper .rating-options input[type="radio"]:focus + img {
    /* Añadimos un feedback visual para la accesibilidad con teclado */
    box-shadow: 0 0 0 3px rgba(116, 165, 91, 0.5);
}














/* ==========================================================================
   Mensajes de Feedback y Enlace de Google
   ========================================================================== */

#service-rating-wrapper #sr-message {
    text-align: center;
    color: #555555;
    font-size: 1.4rem;
    margin-top: 1rem;
    padding: 10rem 1rem;
    border-radius: 5px;
}

#service-rating-wrapper #google-review-prompt {
    display: none; /* Se mostrará con JS */
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #e8f5e9; /* Un fondo suave para destacarlo */
    border: 1px solid #a5d6a7;
    border-radius: 10px;
}

#service-rating-wrapper #google-review-prompt p {
    color: #333;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0; /* Ajuste de márgenes */
}

#service-rating-wrapper #google-review-prompt a.google-rate-button {
    display: inline-block; /* Mejor que block para el centrado */
    text-decoration: none;
    background-color: #4285f4;
    color: #fff;
    border: 2px solid #4285f4;
    width: auto; /* Ancho automático */
    padding: 1rem 2rem; /* Más padding horizontal */
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.2;
    transition: background-color 0.3s, transform 0.2s;
}

#service-rating-wrapper #google-review-prompt a.google-rate-button:hover {
    background-color: #357ae8;
    transform: translateY(-2px); /* Pequeño efecto al pasar el ratón */
}


/* ==========================================================================
   Media Queries para Adaptabilidad (Responsive Design)
   ========================================================================== */
 
@media only screen and (min-width: 30em) { /* 480px */
    #service-rating-wrapper #service-rating-form label.text__label,
    #service-rating-wrapper #service-rating-form label.text__label span {
        font-size: 1.5rem;
    }

    #service-rating-wrapper #service-rating-form label.text__label {
        margin-bottom: 0.8rem;
    }

    #service-rating-wrapper #service-rating-form input[type="text"],
    #service-rating-wrapper #service-rating-form input[type="email"],
    #service-rating-wrapper #service-rating-form input[type="date"],
    #service-rating-wrapper #service-rating-form input[type="tel"],
    #service-rating-wrapper #service-rating-form input[type="submit"] {
       font-size: 1.5rem;
    }

    #service-rating-wrapper .rating-section {
        margin-top: 3rem;
        margin-bottom: 4rem;
    }
    
    #service-rating-wrapper .rating-options img {
        height: 6rem; /* Hacemos las caras un poco más grandes */
        width: 6rem;
    }

    #service-rating-wrapper .rating-options label {
        margin: 0 1.5rem;
    }
}
 
@media only screen and (min-width: 37.5em) { /* 600px */
    #service-rating-wrapper #sr-message {
        font-size: 1.7rem;
    }

    #service-rating-wrapper #google-review-prompt p {
        font-size: 1.7rem;
    }

    #service-rating-wrapper #google-review-prompt a.google-rate-button {
        font-size: 1.6rem;
    }
}
 
 @media (min-width: 43.75em) {     
 }
 
 @media (min-width: 48em) {     
     
 
 }
  
 @media (min-width: 60em) {       
     
     
 }
  
 @media (min-width: 64em) {   
      
 
 
 }
 
 
     
   @media (min-width: 75em) {     
      
 
      
   }
  
  @media (min-width: 81.25em) {         
 }
 
 
   
 @media (min-width: 85em) {    
         
   
 
 }
 
  
 @media (min-width: 100em) {         
 }
  
  @media (min-width: 120em) {     
     
 
 }
