* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 1rem;
    background-image: linear-gradient( 135deg, #FFF6B7 10%, #F6416C 100%);
    display: flex;
}

.card {
    margin: auto;
    padding: 3em;
    background: #fff;
    border-radius: 3px;
    width: 100%;
    font-family: sans-serif;
    max-width: 40rem;
    box-shadow:
        0 2.8px 2.2px rgba(0, 0, 0, 0.02),
        0 6.7px 5.3px rgba(0, 0, 0, 0.028),
        0 12.5px 10px rgba(0, 0, 0, 0.035),
        0 22.3px 17.9px rgba(0, 0, 0, 0.042),
        0 41.8px 33.4px rgba(0, 0, 0, 0.05),
        0 100px 80px rgba(0, 0, 0, 0.07);
}

.loading {
    position: relative;
    pointer-events: none;
    opacity:0.5;
}

.loading::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-right-color: rgba(0,0,0,0.7);
    transform: translate(-50%, -50%) rotate(0deg);
    content:"";
    animation: rotateSingleLoading 0.3s infinite linear;
    z-index: 10;
}

@keyframes rotateSingleLoading {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

* {
    box-sizing: border-box;
}

.form {
    font-family: sans-serif;
    max-width: 40rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
}

.form-control {
    font-family: sans-serif;
    padding: 0.8rem;
    border: 1px solid #bbb;
    display: block;
    width: 100%;
    color: #666;
}

.form-control:is(textarea) {
    height: 10rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-submit {
    font-family: sans-serif;
    padding: 0.7rem 2rem;
    cursor: pointer;
    background: tomato;
    border: 0;
    border-radius: 0.2rem;
    color: #FFF;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s background-color;
}

@media screen and (max-width: 500px) {
    .form-submit {
        display: block;
        width: 100%;
    }
}


/* ---------------------------------------------------- */
/* walidacja formularza JS */
/* ---------------------------------------------------- */
.is-invalid {
    background: pink;
}


/* ---------------------------------------------------- */
/* sukces i błąd wysylania */
/* ---------------------------------------------------- */
.form-send-error {
    font-family: sans-serif;
    color: red;
    margin: 10px 0;
}

.form-send-success {
    font-family: sans-serif;
    color: red;
    margin: 10px 0;
}

.form-send-success {
    color: inherit;
}

.form-send-success strong {
    display: block;
    font-size: 1.5em;
    color: tomato;
    margin-bottom: 0.3em;
}
