* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 32px;
}

body.started {
    padding-bottom: 150px;
}

h1 {
    letter-spacing: .03em;
    font-weight: 900;
    font-size: 2em;
    margin: 0 auto 40px;
    padding: 0;
    text-align: center;
}

h2 {
    letter-spacing: .03em;
    font-weight: 900;
    font-size: 1.5em;
    margin: 0 auto 30px;
    padding: 0;
    text-align: center;
}

input {
    display: block;
    width: 100%;
    height: 59px;
    line-height: 32px;
    padding: 8px 18px;
    border: 3px solid #000;
    border-radius: 6px;
    font-size: inherit;
    outline: none;
    transition: border-color .2s ease;
}

input:hover {
    border-color: #737373;
}
input:focus,
input:focus:hover {
    border-color: #2BB12E;
}

input::placeholder {
    opacity: 0.5;
}

section {
    max-width: 1000px;
    padding: 50px 24px 70px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 24px 0;
}

.header img {
    width: 100%;
    max-width: 170px;
}

#county[data-package=brand] h2,
#county[data-package=professional] h2 {
    max-width: 462px;
}

#county[data-package=referral] h2 {
    max-width: 760px;
}

#input {
    position: relative;
    margin-bottom: 30px;
}

#input .btn {
    font-size: .8em;
    color: #000;
    text-decoration: none;
    display: flex;
    padding: 4px 18px;
    background-color: #ededed;
    border-radius: 40px;
    position: absolute;
    top: 0.4em;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
}

#input .btn:hover {
    background-color: #d4d4d4;
}

#input input,
#input .btn {
    opacity: 0;
    visibility: hidden;
    transition: background-color .2s ease, opacity .2s ease, visibility .2s ease;
}

#input[data-state="input"] input {
    opacity: 1;
    visibility: visible;
}

#input[data-state="btn"] .btn {
    opacity: 1;
    visibility: visible;
}

#selected .location {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#selected .location:last-child {
    margin-bottom: 30px;
}

#selected .del {
    width: 1.1em;
    height: 1.1em;
    background-color: #ededed;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background-color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#selected .del:hover {
    background-color: #d4d4d4;
}

#selected .del:before,
#selected .del:after {
    content: "";
    display: block;
    width: 66%;
    height: 3px;
    background-color: #000;
    position: absolute;
}
#selected .del:before {
    transform: rotate(45deg);
}
#selected .del:after {
    transform: rotate(-45deg);
}

.total {
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.doing {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    width: 100%;
    height: 58px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: .8em;
    opacity: 0;
    visibility: hidden;
    transition: color .2s ease, opacity .2s ease, visibility .2s ease, background-color .2s ease;
}

.doing:hover {
    color: #81ec84;
}

.doing.secondary {
    background-color: #ededed;
    color: #000;
}

.doing.secondary:hover {
    background-color: #d4d4d4;
    color: #000;
}

.total.show,
.doing.show {
    opacity: 1;
    visibility: visible;
}

.focus {
    margin-left: auto;
    margin-right: auto;
    max-width: 462px;
}

.tiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tiles > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    width: 280px;
    border: 3px solid #ededed;
    border-radius: 12px;
    margin: 0;
    padding: 20px;
    font-size: 0.8em;
    transition: border-color .2s ease;
    cursor: pointer;
}

.tiles > div.active {
    border-color: #000;
}

.tiles:hover > div {
    border-color: #ededed;
}

.tiles > div:hover,
.tiles > div.active:hover {
    border-color: #000;
}

.tiles img {
    display: block;
    margin: 0 auto 20px;
    width: 70%;
}

.tiles .desc {
    font-size: 0.8em;
    margin-top: 0.4em;
    opacity: 0.6;
}

.title-info {
    text-align: center;
}

.step {
    display: none;
}

.step.show {
    display: block;
    animation: fadeIn .2s ease;
}

.ui-autocomplete {
    margin-top: 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 40px 0 rgba(66, 68, 90, .2);
    max-height: 300px;
    max-width: 462px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 8px !important;
}

.ui-autocomplete .ui-state-active {
    margin: 0 !important;
    background: #ededed;
    border-radius: 4px;
}

.yn-widget {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.yn-widget > div {
    display: flex;
    gap: 0.3em;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    padding: 15px 40px;
    border: 3px solid #ededed;
    border-radius: 100px;
    cursor: pointer;
    transition: border-color .2s ease;
}

.yn-widget > div.active {
    border-color: #000;
}

.yn-widget:hover > div {
    border-color: #ededed;
}

.yn-widget > div:hover,
.yn-widget > div.active:hover {
    border-color: #000;
}

.yn-widget > div img {
    display: block;
    height: 1em;
}

.number-widget {
    max-width: 300px;
    margin: 50px auto 0;
    position: relative;
}

.number-widget input {
    -webkit-appearance: none;
    text-align: center;
    border-radius: 100px;
    border-color: #ededed;
}

.number-widget input:hover {
    border-color: #000;
}

.number-widget input[type=number]::-webkit-inner-spin-button,
.number-widget input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-widget .minus,
.number-widget .plus {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background-color: #ededed;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease;
}

.number-widget .minus:hover,
.number-widget .plus:hover {
    background-color: #d4d4d4;
}

.number-widget .minus:after,
.number-widget .plus:after {
    content: "";
    display: block;
    position: absolute;
    left: -7px;
    right: -7px;
    top: -7px;
    bottom: -7px;
    border-radius: 50%;
}

.number-widget .minus {
    top: 6px;
    left: 6px;
}

.number-widget .plus {
    top: 6px;
    right: 6px;
}

.number-widget .doing {
    margin-top: 20px;
}

.price-widget {
    margin-top: 70px;
}

.price-widget .doing {
    margin-top: 50px;
}


.mailus {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px;
    border-radius: 20px;
    background: #fff;
    border: 3px dotted #fac1a5;
    color: #000;
}

.mailus.show {
    display: flex;
    animation: fadeIn .2s ease;
}

.mailus img {
     width: 3em;
     margin-bottom: 0.8em;
     margin-top: 0.2em;
 }

.mailus a {
    color: inherit;
    text-decoration: none;
}

.mailus a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1500px) {
    body {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    body {
        font-size: 24px;
    }
}

@media (max-width: 750px) {
    .tiles {
        max-width: 462px;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header {
        justify-content: center;
    }
}

@media (max-width: 440px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 388px) {
    h1 {
        font-size: 1.5em;
    }
}