:root {
    --brand-color-start: #a6c5cb;
    --brand-color-end: #c5e0dc;
    --brand-color: #a6c5cb;
    --border-width: 2px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    --spacing: 12px;
    --spacing-lg: 20px;
    --star-size: 2rem;
    --star-color: rgb(255, 179, 0);
    --star-empty-color: #ccc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
        env(safe-area-inset-bottom) env(safe-area-inset-left);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 360px;
    padding: var(--spacing);
}

.card {
    padding: var(--border-width);
    background: linear-gradient(
        45deg,
        var(--brand-color-start),
        var(--brand-color-end)
    );
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing);
}

.logo {
    max-width: 60%;
    margin-top: var(--spacing);
}

.logo-container {
    text-align: center;
    width: 100%;
}

.heading {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: var(--spacing) 0;
    color: #333;
}

.message {
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
    white-space: pre-line;
    margin: 0 0 var(--spacing);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--spacing);
}

.star {
    font-size: var(--star-size);
    color: var(--star-empty-color);
    cursor: pointer;
    transition: color 0.2s;
}

.star.filled {
    color: var(--star-color);
}

.rievio .btn-primary,
.rievio .btn-submit {
    width: 100%;
    background: linear-gradient(
        45deg,
        var(--brand-color-start),
        var(--brand-color-end)
    );
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}

.back-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: var(--spacing);
}

.feedback-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: var(--spacing);
}

.feedback-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.feedback-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--radius-md);
    font-size: 1rem;
    resize: vertical;
}

.check-container {
    width: 4rem;
    margin-left: auto;
    margin-right: auto;
    height: 4rem;
    margin-bottom: var(--spacing);
}

.check-container svg {
    width: 100%;
    height: 100%;
}

.check-circle {
    fill: none;
    stroke: var(--brand-color);
    stroke-width: 4;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: draw-circle 0.6s ease-out forwards;
}

.check-mark {
    fill: none;
    stroke: var(--brand-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw-mark 0.4s 0.6s ease-out forwards;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-mark {
    to {
        stroke-dashoffset: 0;
    }
}

.help-text {
    font-size: 0.9rem;
    text-align: center;
    margin-top: var(--spacing-lg);
}

.help-text a {
    text-decoration: underline;
    color: #666;
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
}

/* google */
.google .card {
    padding: var(--border-width);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    /* box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07); */
}

.google .btn-primary,
.google .btn-submit {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}
.google .check-mark, .google .check-circle {
    stroke: #1a73e8;
}
.google .btn-primary:not(:disabled):hover,
.google .btn-submit:not(:disabled):hover {
    background-color: #1558b0;
}

/* trustpilot */

.trustpilot .card {
    padding: var(--border-width);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07); */
}
.trustpilot .btn-primary,
.trustpilot .btn-submit {
    background-color: #04DA8D;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}
.trustpilot .check-mark, .trustpilot .check-circle {
    stroke: #04DA8D;
}

.trustpilot .btn-primary:not(:disabled):hover,
.trustpilot .btn-submit:not(:disabled):hover {
    background-color: #126849;
    color: #ffffff;
}

/* tripadvisor */

.tripadvisor .card {
    padding: var(--border-width);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07); */
}
.tripadvisor .btn-primary,
.tripadvisor .btn-submit {
    background-color: #000;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}
.tripadvisor .check-mark, .tripadvisor .check-circle {
    stroke: #000;
}

.tripadvisor .btn-primary:not(:disabled):hover,
.tripadvisor .btn-submit:not(:disabled):hover {
    background-color: rgb(0 0 0 / 69%);
    color: #fff;
}

/* jameda */

.jameda .card {
    padding: var(--border-width);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07); */
}
.jameda .btn-primary,
.jameda .btn-submit {
    background-color: #00C4A6;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}
.jameda .check-mark, .jameda .check-circle {
    stroke: #00C4A6;
}
.jameda .btn-primary:not(:disabled):hover,
.jameda .btn-submit:not(:disabled):hover {
    background-color: #126849;
    color: #ffffff;
}
/* docfinder */
.docfinder .card {
    padding: var(--border-width);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07); */
}
.docfinder .btn-primary,
.docfinder .btn-submit {
    background-color: #0078B5;
    color: #ffffff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing) 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin: var(--spacing) 0;
    text-decoration: none;
    display: block;
}
.docfinder .check-mark, .docfinder .check-circle {
    stroke: #0078B5;
}

.docfinder .btn-primary:not(:disabled):hover,
.docfinder .btn-submit:not(:disabled):hover {
    background-color: #006294;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.message p{
    margin: 0 !important;
}
.btn-primary:disabled{
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-mark {
    to {
        stroke-dashoffset: 0;
    }
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
}

.loader {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}
.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--brand-color);
    animation: prixClipFix 2s linear infinite;
}

.google .loader::before{
    border-color: #1a73e8;
}

.tripadvisor .loader::before{
    border-color: #000;
}

.jameda .loader::before{
    border-color: #00C4A6;
}

.docfinder .loader::before{
    border-color: #0078B5;
}

.trustpilot .loader::before{
    border-color: #04DA8D;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}
