* {
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 16px;
}

body {
    color: #444;
    background: #F7F7F7;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

a  {
    color: #ff6954;
}

p {
    line-height: 1.5rem;
}

@media (min-width: 760px) {
    .container {
        width: 500pt;
        margin: 20px auto;
    }
    p {
        width: 95%;
    }
}

.logo {
    margin: 0.5rem 0;
}

.intro {
    margin: 2rem 0;
}

.intro p {
    line-height: 160%;
    margin-top: 0;
}

.main-form {
    position: relative;
}

.section-label {
    margin-top: 2rem;
    font-weight: bold;
}

.radios {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 1rem 0;
}

.radios > span {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    flex-direction: column;
}

.radios-label:before {
    content: "— ";
    color: #ff6954;
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.box-radios {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 0 0 1rem;
    height: 50px;
}
.box-radios span {
    flex: 1;
    align-content: stretch;
}

/* TODO: super by byly responzivní čtverce, natvrdo je to teď nejrychlejší */
.box-radios label {
    display: flex;
    background-color: #fff;
    align-items: center;
    height: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 1.5vw;
    border: 1px solid #ddd;
    transition: 100ms ease-in;
    margin: 1px;
}

@media (min-width: 570px) {
    .box-radios label {
        padding: 10px;
    }
}


.box-radios label:hover {
    border: 1px solid #ff6954;
    cursor: pointer;
}

.box-radios input[type="radio"] {
    display: none;
}

.box-radios input[type="radio"]:checked + label {
    border: 1px solid #ff6954;
    background-color: #ff6954;
    color: white;
}

.scale-labels {
    display: flex;
    align-items: stretch;
}

.scale-labels span:nth-child(2) {
    margin-left: auto;
}

.scale-label {
    font-size: 0.8rem;
    color: #777;
    margin: 0 0 1rem;
    /* padding: 0.5rem; */
}

input[type="radio"]:checked+label {
    font-weight: bold;
}

textarea, input[type="text"] {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    padding: 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

textarea:hover, input:hover {
    border-color: #ff6954;
    transition: 300ms ease-in;
}

textarea:focus, input:focus {
    border: 1px solid #ff6954;
    transition: 100ms ease-in;
    outline: none;
}

button {
    padding: 1rem 2rem;
    margin: 1rem 0;
    background: #ff6954;
    color: white;
    font-weight: bold;
    font-family: inherit;
    font-size: 1.2rem;
    border: none;
}

@media (max-width: 476px) {
    button {width: 100%;}
}

button:hover {
    transform: translateY(-0.3rem);
    transition: 100ms ease-in;
    box-shadow: 0px 20px 20px #eee;
}

button:disabled {
    background: #ccc;
}

button:disabled:hover {
    border: 1px solid #eee;
    background-color: #eee;
}

button:focus {
    outline: 1px dotted #ccc;
}

.header-logo {
    color: #683539;
    display: block;
    width: 200px;
    height: 60px;
}

.header-logo:hover {
    color: #ff6954;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
  }
  .spinner {position: relative; left: 20px; margin-right: 20px;}
  .spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 90%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top-color: transparent;
    animation: spinner .6s linear infinite;
  }