@import 'reset.css';
@import 'fonts.css';
@import 'footer.css';
@import 'hero.css';
@import 'explanation.css';
@import 'greeting.css';
@import 'schedule.css';

:root {

    /* Variables */
    --max-width-screen: 1280px;

    /* Colors */

    --primary-50: #FCDBDE;
    --primary-100: #F8ACB4;
    --primary-200: #F47D8B;
    --primary-300: #F14D63;
    --primary-400: #ED1E3D;
    --primary-500: #C8102E;
    --primary-600: #9D1123;
    --primary-700: #73101A;
    --primary-800: #4C0D11;
    --primary-900: #270809;

    --accent-50: #EBECF0;
    --accent-100: #D6D7DF;
    --accent-200: #B0B1BC;
    --accent-300: #878A9C;
    --accent-400: #5E637C;
    --accent-500: #3A3E57;
    --accent-600: #2C2F41;
    --accent-700: #191C30;
    --accent-800: #0D0E17;
    --accent-900: #05060A;
}

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

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    background-color: var(--accent-900);
    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 400;
    color: white;
}

h1, h2, h3 {
    color: var(--primary-400);
    font-weight: 800;
    line-height: 110%;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.25rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section {
    display: block;
    padding: 6.25rem 1.5rem;
}

.section__inner {
    max-width: var(--max-width-screen);
    width: 100%;
    margin: 0 auto;
}

.button {
    background-color: var(--primary-500);
    border-radius: 25px;
    padding: 0.5625rem 1.5625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;

    font-family: 'MADE TOMMY', sans-serif;
    font-weight: 500;
    color: white;
}

.button:hover {
    background-color: var(--primary-600);
    text-decoration: none;
}

.button__icon {
    padding-left: 0.25rem;
    vertical-align: middle;
}

.button--lg {
    padding: 0.9375rem 2.0625rem;
    border-radius: 30px;
    font-size: 1.125rem;
}

.button:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.input {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.25rem;
}

.input__label {
    display: block;
    text-align: left;
    color: var(--accent-200);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5rem;
    margin-bottom: 0.25rem;
}

.input__field {
    color: var(--accent-200);
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid var(--accent-100);
    background-color: var(--accent-600);
    outline: none;
}

.input__field:focus, .input__field:active {
    border: 2px solid var(--primary-500);
}

.input__error {
    color: var(--primary-400);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
}

.radio__input {
    background: transparent;
    opacity: 0;
}

.radio__circle {
    width: 1.375rem;
    height: 1.375rem;
    flex: 0 0 1.375rem;
    margin-left: .75rem;
    border: 4px solid #d3d4dc;
    border-radius: 50%;
    background-color: #1e1f26;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio__circle::after {
    content: "";
    width: 0.9375rem;
    height: 0.9375rem;
    background-color: #c62828;
    border-radius: 50%;
    display: none;
}

.radio__input:checked + .radio__circle::after {
    display: block;
}

.audios {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.audio {
    position: relative;
    display: flex;
    padding: 0.5rem 1rem;
    align-items: center;
    align-self: stretch;
    outline: 3px solid transparent;
    outline-offset: -3px;
    border: none;
    background: radial-gradient(231% 135.8% at 0.9% 2.98%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.00) 100%);
    backdrop-filter: blur(21px);
}

.audio:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.audio:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.audio:has(.radio__input:checked) {
    outline: 3px solid var(--primary-500);
}

.audio__play {
    cursor: pointer;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.audio__radio {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    padding-left: .75rem;

    text-align: left;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.audio__input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.submit {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 2rem;
}

.submit p {
    text-align: left;
    font-style: italic;
    color: var(--accent-200);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.875rem;
    }

    .section {
        padding: 3.75rem 1rem;
    }
}

@media screen and (max-width: 640px) {
    .submit {
        gap: 1.5rem;
        flex-flow: row wrap;
    }

    .submit p {
        order: 2;
        text-align: center;
    }
}
