*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width:  100%;
}

body {
    margin: 0;
    color: white;
    background: #131417;
    font-family: sans-serif;

    overscroll-behavior: none;
}

/* Section */

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.c-section {
    padding: 20px 0;
}
.c-section--title {
    background: #1e1f26;
}
.c-section--hidden {
    display: none;
}

/* Container */

.container {
    flex: auto;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
}

.container--tiny {
    max-width: 760px;
}

/* Title */

h1 {
    margin: 0;
    text-transform: uppercase;
    font-size: 48px;
    line-height: 1;
}

h1 > small {
    display: block;

    font-size: 32px;
    color: rgb(183, 187, 200);
}

.as-link {
    background: none;
    border: 0;

    font: inherit;
    color: magenta;
    text-decoration: underline;
    cursor: pointer;
}

/* FOOTER */

.footer {
    padding-top: 50px;

    text-align: center;
    color: #aaa;
}

.footer a {
    color: #666;
}

.footer a:hover,
.footer a:focus {
    color: white;
}

.footer__image {
    width: 150px;
    filter: grayscale(0.5);
    transition: 0.3s filter;
}

.footer__image:hover,
:focus > .footer__image {
    filter: grayscale(0);
}

.footer__copy {
    font-size: 12px;
}

/* FORM */

.c-form {
    margin-top: 20px;
    background: #1e1f26;
    border-radius: 0.5em;
    padding: 0 20px;
}
.c-form::before {
    content: '';
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
}
.c-form::after {
    content: '';
    display: block;
    margin-top: 30px;
    overflow: hidden;
}

.c-form__control {
    display: block;
    margin-top: 30px;

    color: white;
    font-size: 16px;
}
.c-form__control:focus-within {
    color: magenta;
}
.c-form__label {
    display: block;
    padding-bottom: 10px;

    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
}
.c-form__input {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.75em;
    border: 1px solid #181b1c;
    border-radius: 0.25em;
    background: #444857;

    color: inherit;
    font: inherit;
    line-height: 1.25;
    text-align: left;

    overflow: hidden;
    outline: 0;
}
.c-form__input:hover {
    background: #010101;
}
.c-form__input:focus {
    color: magenta;
    border-color: magenta;
    background: #010101;
    box-shadow: 0 0 0 0.2em rgba(255, 0, 255, 0.3);
}
.c-form__input-details {
    padding-top: 10px;
    display: block;
    font-size: 13px;
    color: #8890AA;
}
.c-form__input-details--error {
    color: #ae8e35;
}
.c-form__input-details:empty {
    display: none;
}
.c-form__input-details:not(:empty) + .c-form__input-details {
    display: none;
}
.c-form__input--empty ~ .c-form__input-details--empty {
    display: none;
}
.c-form__actions {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}
.c-form__action-item {
    flex: auto;
}
.c-form__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 1em 0.5em;
    border: 3px solid transparent;
    border-radius: 0.25em;
    background: #444857;

    color: inherit;
    font: inherit;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;

    overflow: hidden;
    outline: 0;
    cursor: pointer;
}
.c-form__button:hover {
    border-color: transparent;
    background: magenta;
}
.c-form__button--secondary {
    border-color: #444857;
    background: transparent;
}
.c-form__button--secondary:hover {
    border-color: transparent;
    background: #5a5f73;
}

/* OUTPUT */

.c-output {
    margin-top: 20px;
    background: #1e1f26;
    border-radius: 0.5em;
    padding: 0 20px;
}
.c-output::before {
    content: '';
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
}
.c-output::after {
    content: '';
    display: block;
    margin-top: 30px;
    overflow: hidden;
}

.c-output__label {
    display: block;
    margin-bottom: 0.5em;
    padding-bottom: 10px;

    text-align: center;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
}

.c-output__content {
    text-align: center;
    line-height: 1.5;
    text-wrap: balance;
    color: #8890AA;
}

.c-output__content strong:not([class]) {
    color: white;
}

.c-output__narrow {
    margin: 0 auto;
    min-width: 200px;
}

.c-output__frame {
    position: relative;
    overflow: hidden;
}

.c-output__image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.c-output__frame > .c-output__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform-origin: top left;
}

/* UTILS */

.u-txt-orange {
    color: #ae8e35;
}