@font-face {
    font-family: "Norse-Bold";
    src: url(assets/Norse-Bold.otf);
}
*{
    /* outline: 2px solid red; */
    box-sizing: border-box;
    margin:0;
    padding: 0;
}
:root{
    --bg-main: #f4f1ea;
    --bg-form: #ffffff;
    --btn-color: #2881d5;
    --btn-hover: #1e69b3;
    --text-color: #2c3e50;
    --accent: #e65d38; 
}

body{
    display: flex;
    height: 100vh;
    width: 100vw;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--bg-main);
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
}

aside{
    position: relative;
    height: 100vh;
}
.title{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:5px;
    position: absolute;
    top: 15%;
    background-color: rgba(0, 0, 0, 60%);
    font: 4rem "Norse-Bold";
    color : white;
    width: 100%;
}
.title > img {
    margin: 15px 0;
    height: 90px;
}

.banner{
    height: 100%;
    width: auto;
    display: block;
}

main{
    width: 100%;
}
fieldset{
    background-color: white;
    padding: 25px 4rem;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    margin: 30px auto;
    font-size: 0.9rem;
    width: 100%;
}
label{
    display: flex;
    flex-direction: column;
    gap:4px;
    /* width: 32%; */
}
form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
legend{
    font-weight: 700;
    font-size: 1.2rem;
}
form > h2,
form > button,
form > div{
    margin-left: 4rem;
}
span{
    font-weight: 600;
    color: var(--btn-color);
    cursor: pointer;
}
span:hover{
    color:var(--btn-hover)
}
button{
    align-self: flex-start;
    padding: 10px 45px;
    background-color: var(--btn-color);
    font-size: 1rem;
    color: white;
    border-radius: 8px;
    border: 0;
}
button:hover{
    background-color: var(--btn-hover);
}

input{
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 0.9rem;
    appearance: none;
    outline: none;
}
input:focus, input:user-valid{
    border-color: var(--btn-color);
}
input:user-invalid{
    border-color: var(--accent);
}

fieldset > div{
    display: flex;
    padding: 10px;
    gap: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal */
.modal-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.modal-overlay.active{
    display: flex;
}
.modal-box{
    background: white;
    padding: 2rem;
    border-radius: 12px;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-box h3{
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.modal-box ul{
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.modal-box ul li{
    font-size: 0.95rem;
}
.field-name{
    font-weight: 700;
    color: var(--btn-color);
}
#modal-close{
    margin-top: 0.5rem;
    align-self: flex-start;
    background-color: var(--accent);
    cursor: pointer;
}
#modal-close:hover{
    background-color: hsl(13, 78%, 48%);
}