/*
 Theme Name:   Rate
 Author:       Fulcro
 Author URI:   https://fulcro.pl
 Template:     generatepress
 Version:      0.1
 Text Domain:  gpc
 */

body,
button,
input,
select,
textarea {
    font-size: 16px;
}



/* Global */

.-uppercase {
    text-transform: uppercase;
}

/* color google blue #1a73e8*/

.business-template-default .site-content,
.wpcf7-sent .site-content {
    padding-top: 10vh;
}

/* FEEDBACK FORM */

.wpcf7 {
    text-align: center;
}

.wpcf7 .question {
    line-height: 1.35;
    margin-bottom: 0.75em;
}

.wpcf7-textarea {
    margin-top: 0.6em;
}


/* hide submitted form */

.wpcf7-sent .biz__wrapper {
    display: none !important;
}

.wpcf7-form.sent > * {
    display: none !important;
}

/* hide client email */
.wpcf7 .email {
    display: none !important;
}

.feedback__submit {
    margin-top: 2.25em;
}

/* submit btn */
.wpcf7-form input[type="submit"] {
    min-width: 112px;
    background: var(--accent);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 5px 20px 5px;
    border-radius: 4px;
}

.wpcf7-form input[type="submit"]:hover {
    background: #005ad1;
}

/* submit btn spinner */
.wpcf7-form.submitting input[type="submit"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white"><style>.spinner_I8Q1{animation:spinner_qhi1 .8s linear infinite}.spinner_vrS7{animation-delay:-.375s}@keyframes spinner_qhi1{0%,100%{r:1.5px}50%{r:3px}}</style><circle class="spinner_I8Q1" cx="4" cy="12" r="1.5"/><circle class="spinner_I8Q1 spinner_vrS7" cx="12" cy="12" r="3"/><circle class="spinner_I8Q1" cx="20" cy="12" r="1.5"/></svg>');
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

/* disable default spinner */
.wpcf7-spinner {
    display: none !important;
}

/* response output */
.wpcf7-form .wpcf7-response-output {
    font-size: 18px;
}

.wpcf7-form.sent .wpcf7-response-output {
    border: 0;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.wpcf7-form.sent .wpcf7-response-output:before {
    display: block;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" fill="green" class="bi bi-check-circle" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"/></svg>');
    width: 100px;
    height: 100px;
    margin-bottom: 1.5em;
}

/*** RADIO ***/

.feedback__radio input[type=radio],
.feedback__radio input[type=checkbox] {
    display: none !important;
}

.feedback__radio label span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.25em;
    background-color: var(--base-3);
    border-radius: 50%;
    border: 2px solid var(--accent);
    transition: all 0.2s;
    width: 42px;
    height: 42px;
}

.feedback__radio input:checked + span,
.feedback__radio input:checked + span {
    background-color: var(--accent);
    color: var(--base-3);
    transform: scale(1.25);
}

/* RETURN SWITCH */

.contact-details.hide {
    display: none;
}

.contact-details p {
    margin-bottom: 0;
}

.feedback__switch {
    clear: both;
    display: inline-block;
    width: 100%;
    padding: 0 10px;
    position: relative;
}

.feedback__switch .wpcf7-list-item {
    margin: 0;
    padding: 0.5em 0;
    line-height: normal;
}

.feedback__switch input {
    display: none !important;
}

.feedback__switch input + span {
    cursor: pointer;
    padding: .5em 0em;
}

/* border overvrite */

.feedback__switch .wpcf7-list-item {
    padding: 0.5em 2em;
}

.feedback__switch input + span {
    color: var(--accent);
    font-weight: 500;
    padding: .35em .0em .35em;
    color: #bbb;
}

.feedback__switch input:checked + span {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}

/* ICONS INPUT */

input[type=email].return-email,
input[type=tel].return-phone {
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 50px;
    background-size: 20px 20px;
    max-width: 388px;
    width: 100%;
    box-sizing: border-box;
}

.return-email {
    margin-bottom: 1em;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" class="bi bi-envelope" viewBox="0 0 16 16"><path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"/></svg>');
}

.return-phone {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" class="bi bi-telephone" viewBox="0 0 16 16"><path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"/></svg>');
}


/* Placeholder */


.wpcf7 input::placeholder {
    color: #bbbbbb;
}

input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 6px;
}


/** STARS **/

.star-wrapper {
    direction: rtl;
    display: flex;
    justify-content: center;
}

.star-wrapper a:hover {
    transform: scale(1.2);
    filter: grayscale(0);
}

.star-wrapper a:focus {
    transform: scale(1.3);
    filter: grayscale(0);
}

.star:hover ~ a,
.star:focus ~ a {
    filter: grayscale(0);
}

.star-wrapper div {
    text-decoration: none;
    transition: all 0.5s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gold' class='bi bi-star-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z'/%3E%3C/svg%3E");
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: cover;
    width: 24px;
    height: 24px;
    filter: grayscale(1);
    box-sizing: content-box;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: var(--base-3);
}

/* Text */

.biz__wrapper {
    text-align: center;
    margin-bottom: 2em;
}

.biz__name {
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.2em;
    text-align: center;
}

.biz__question {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 0.2em;
}

.biz__question.general {
    margin-bottom: 1em;
}

.biz__question.feedback {
    margin-bottom: 0.2em;
}


/** Footer **/

.site-info {
    font-size: 14px;
    color: var(--contrast-3);
}

/** Home **/

body.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: calc(100vh - 50px);
    width: 100vw;
}
