/* var */
:root {
    --font-size-xxxl: clamp(2rem, 5vw, 4.5rem); /* Min: 32px, Fluid: 5vw, Max: 72px */
    --font-size-xxl: clamp(1.5rem, 4vw, 2.75rem); /* Min: 24px, Fluid: 4vw, Max: 44px */
    --font-size-xl: clamp(1.25rem, 3.5vw, 2.5rem); /* Min: 20px, Fluid: 3.5vw, Max: 40px */
    --font-size-l: clamp(1.125rem, 3vw, 2.125rem); /* Min: 18px, Fluid: 3vw, Max: 34px */
    --font-size-m: clamp(1rem, 2.5vw, 1.75rem); /* Min: 16px, Fluid: 2.5vw, Max: 28px */
    --font-size-s: clamp(0.875rem, 2vw, 1.5rem); /* Min: 14px, Fluid: 2vw, Max: 24px */
    --font-size-xs: clamp(0.875rem, 1.75vw, 1.375rem); /* Min: 14px, Fluid: 1.75vw, Max: 22px */
    --font-size-xxs: clamp(0.875rem, 1.5vw, 1.125rem); /* Min: 14px, Fluid: 1.5vw, Max: 18px */
    --font-size-xxxs: clamp(0.875rem, 1.25vw, 1rem); /* Min: 14px, Fluid: 1.25vw, Max: 16px */
  }

/* Global */
#agency-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: Poppins, sans-serif;
    max-width: 1440px;
    margin: 0 auto;
}

#agency-panel p {
    margin: 0;
}

#agency-panel ul {
    list-style-type: none;
    margin: 0;
}

/* Panel Header */

.panel-header {
    border-radius: 30px;
    background: #1F2138;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.10);
    color: #fff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: left;
}

.header-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header-stats-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    width: 100%;
}

.stats-title {
    font-size: var(--font-size-l);
    font-weight: 600;
    margin-left: 1.85rem !important;
}

.stats-subtitle {
    color: rgba(255, 255, 255, 0.70);
    font-size: var(--font-size-s);
    font-weight: 400;
    margin-left: 1.85rem !important;
}

.header-progress {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
    margin-left: 2rem;
    margin-top: 3rem;
    flex: 0 0 40%;
}

.progress-title {
    background: rgba(255, 255, 255, 0.10);
    padding: 30px;
    font-size: var(--font-size-m);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.progress-list {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.valid-reviews {
    margin-left: 0;
}

.progress-item {
    font-size: var(--font-size-xxs);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.70);
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-item img {
    max-width: 22px;
    height: 100%;
    object-fit: contain;
}

.progress-data {
    color: #FFF;
}

.header-summary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 5rem;
    margin-left: 1.85rem;
}

.summary-stats {
    display: flex;
    align-items: center;
    gap: 50px;
}

.summary-total-points,
.summary-total-reviews {
    display: flex;
    flex-direction: column;

}

.summary-label {
    color: rgba(255, 255, 255, 0.70);
    font-size: var(--font-size-s);
    font-weight: 400;
}

.summary-value {
    font-size: var(--font-size-s);
    font-weight: 600;
    text-align: center;
}

.points-unit,
.reviews-unit {
    font-size: var(--font-size-xxxl);
    font-weight: 600;
}

.separator {
    width: 1px;
    height: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.70);
}

.summary-progress {
    display: flex;
    align-items: end;
}

.progress-label {
    font-size: var(--font-size-xxs);
    font-weight: 600;
}

/* Panel Content */

.panel-content {
    display: flex;
    gap: 20px;
    text-align: left;
}

.content-left {
    flex: 0 0 60%;
    border-radius: 30px;
    background: #FFF;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.10);
    padding: 50px 50px 50px 150px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.megaphone-character-img {
    position: absolute;
    max-width: 30% !important;
    height: 90%;
    transform: translateX(-50%);
    bottom: 0;
    left: 0;
}

.content-title {
    font-size: var(--font-size-l);
    font-weight: 600;
    padding-bottom: 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.news-item {
    font-size: var(--font-size-xxxs);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-date {
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.news-description {
    font-size: var(--font-size-xs);
    font-weight: 400;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-google-rating-container,
.right-timer {
    border-radius: 30px;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.10);
    padding: 40px;
}

.rating-title,
.timer-title {
    font-size: var(--font-size-s);
    font-weight: 600;
}

.rating-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.right-google-rating-container {
    background: #FFF;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-google-rating-img {
    max-width: 125px !important;
}

.rating-percent-text {
    color: #5d5d5d;
    font-size: var(--font-size-xxxs);
    font-weight: 400;
    text-align: left;
}

.right-google-rating-percent, .right-google-reviews-needed {
    color: #E2002B;
    font-size: var(--font-size-xs);
    font-weight: 400;
}

.right-google-stars-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding-bottom: 20px;
    border-bottom: 1px solid #b3b3b3;
}

.right-google-stars-wrapper p {
    font-size: var(--font-size-m);
    font-weight: 400;
}

.right-google-stars-container .stars-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.right-google-stars-container svg {
    width: 35px;
    fill: #F3D101;
}

.right-google-stars-container svg.empty {
    fill: none;
    width: 33px;
}

.right-google-stars-container svg.empty path {
    stroke-width: 3;
}

.right-google-stars-container svg path {
    stroke: #F3D101;
}

.right-timer {
    background: #1F2138;
    color: #FFF;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timer-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-title-container img {
    max-width: 27px;
    height: 100%;
    object-fit: contain;
}

.right-timer #timer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-timer #timer p {
    font-size: var(--font-size-m);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
}

.right-timer #timer p span {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    color: #FFF;
}

/* PROGRESS STEP CLASS */

.step-container {
    display: flex;
    gap: 50px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    max-width: 150px;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.70);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-s);
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
}

.step-circle-middle {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.70);
    position: absolute;
}

.step-title {
    margin-top: 5px;
    font-size: var(--font-size-xs);
    font-weight: 400;
    text-align: center;
}

.step-description {
    color: rgba(255, 255, 255, 0.70);
    text-align: center;
    font-size: var(--font-size-xxxs);
    font-weight: 400;
}

.step.completed .step-circle {
    background-color: #FDE85B;
    color: #1F2138;
    border-color: transparent;
}

.step.current .step-circle {
    border: 2px solid #FDE85B;
}

.step-connector {
    height: 2.5px;
    background-color: rgba(255, 255, 255, 0.70);
    transition: background-color 0.3s ease;
    width: 100%; /* Étend le connecteur à 100% */
    max-width: 140px;
    position: absolute;
    top: 23px;
    transform: translateX(71%);
}

.step-connector.completed {
    background-color: #FDE85B;
}

.review-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 1rem;
}

.reviews-list {
    max-height: 20rem; /* Adjust for ~2 reviews */
    overflow-y: auto;
    padding-right: 0.5em;
}

/* Chrome, Safari, Edge */
.reviews-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #00000000;
    border-radius: 10px;
    margin: 4px 0;
}

.reviews-list::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease-in-out;

}

.reviews-list::-webkit-scrollbar-corner {
    background: transparent;
}

.review-item {
    margin-bottom: 1em;
    background-color: rgba(221, 221, 221, 0.1);
    align-items: start;
}

.review-date {
    align-self: end;
}

.review-text {
    color: white;
}
@media (max-width: 1650px){
    .content-left {
        padding: 50px 50px 50px 170px;
    }
    .megaphone-character-img {
        height: 50%;
        transform: translateX(-20%);
        bottom: auto;
    }
}

@media (max-width: 1280px){
    .step {
        max-width: 100px;
    }
    .step-connector {
        max-width: 80px;
        transform: translateX(93%);
    }
}

@media (max-width: 1024px){
    .summary-stats {
        gap: 20px;
    }
    .step-connector {
        max-width: 60px;
        transform: translateX(110%);
    }
}

@media (max-width: 768px){
    .panel-content, .header-stats, .step-container, .panel-header {
        flex-direction: column;
    }
    .panel-header {
        gap: 40px;
    }
    .header-summary {
        flex-direction: column-reverse; 
        align-items: normal;
    }
    .header-stats {
        gap: 40px;
    }
    .summary-progress {
        padding-left: 20px;
    }
    .step-connector {
        max-width: 40px;
        transform: rotate(90deg);
        left: 0px;
        top: 64px;
    }
    .step {
        flex-direction: row;
        max-width: 100%;
        gap: 20px;
    }
    .step-circle {
        width: 35px;
        height: 35px;
    }
    .step-circle-middle {
        width: 15px;
        height: 15px;
    }
    .step-title {
        margin: 0;
        text-align: start;
        margin-bottom: 5px;
    }
    .step-description {
        text-align: start;
    }
    .step-container {
        gap: 50px;
    }
    .megaphone-character-img {
        display: none;
    }
    .content-left, .panel-header, .progress-title, .right-google-rating-container, .right-timer {
        padding: 20px;
    }
    .progress-list {
        padding: 20px;
    }
    .right-google-rating-img {
        max-width: 90px;
    }
    .right-google-stars-container svg {
        width: 25px;
    }
    .right-google-stars-container svg.empty {
        width: 23px;
    }
    .timer-title-container {
        gap: 10px;
    }
    .timer-title-container img {
        max-width: 20px;
    }
    .header-progress {
        margin: 0;
    }
    .header-summary {
        margin: 0;
    }
    .summary-progress {
        justify-content: center;
    }
    .summary-stats {
        justify-content: start;
        margin-top: 2rem;
    }
}

form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

form input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

form button:active {
    background-color: #00408d;
}

@media only screen and (min-width: 1200px){
    form#gmb-challenge-form{
        transform: translate(-333px, -255px);
        margin-bottom: -13rem;
    }
}

form#gmb-challenge-form {
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form#gmb-challenge-form label {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

form#gmb-challenge-form input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

form#gmb-challenge-form button {
    max-width: 50%;
    padding: 0.8rem;
    background-color: #E2002B;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 32px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form#gmb-challenge-form button:hover,
form#gmb-challenge-form button:active {
    background-color: #BD0024;
}