/* Estilos para el modal de la encuesta de valoración */
.survey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.survey-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.survey-modal-content {
    background-color: #fff;
    padding: 0; /* Remove padding to allow header to be full-width */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    overflow: hidden; /* Hide overflowing corners of the header */
}

.survey-modal-header {
    background-color: #e45458; /* Corporate color */
    color: white;
    padding: 20px;
}

.survey-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.survey-modal-body {
    padding: 20px 30px 30px; /* Add padding back to the body */
}

.survey-modal-overlay.visible .survey-modal-content {
    transform: scale(1);
}

.survey-modal-body h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.survey-modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.survey-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: transparent;
}

.survey-modal-close-btn:hover {
    color: #777;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.star-rating .star {
    font-size: 2.5em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating .star:hover,
.star-rating .star.selected {
    color: #f5c518; /* Amarillo de estrella */
    transform: scale(1.1);
}

.survey-comment {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    height: 80px;
    resize: vertical;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 16px; /* Larger font size */
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.survey-comment:focus {
    border-color: #e45458;
    box-shadow: 0 0 10px rgba(228, 84, 88, 0.2);
    outline: none;
}

.survey-modal-body p {
    color: #666;
    margin-bottom: 20px;
}

.survey-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.survey-submit-btn {
    background-color: #e45458;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.survey-submit-btn:hover {
    background-color: #d43f43;
}

.survey-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.survey-skip-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
}

.survey-privacy-link {
    margin-top: 20px;
    font-size: 0.8em;
}

.survey-privacy-link a {
    color: #777;
}
