/* reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: var(--ff-body);
    font-weight: 500;
    display: flex;
    justify-self: start;
    flex-direction: column;
}

/* root */ 
:root {
    --dark-grey: #a4a3a3;
    --light-grey: #d7d7d7;
    --ff-body: Arial, Helvetica, sans-serif;
}

/* form */
form#busTicketForm {
    width: 800px;
}

.dark {
    background-color: var(--dark-grey);
}

.light {
    background-color: var(--light-grey);
}

.userInfo label {
    width: 100%;
    height: 100%;
}

/* text */
h1#title {
    font-size: 3rem;
}

h2.formTitle {
    font-size: 1.5rem;
}

p.formDesc {
    font-size: 0.8rem;
    font-style: italic;
}

h1, h2, p {
    margin-top: 20px;
}

/* flex */
.bussingInfo {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
}

.ageCategory, .location, .travelTime {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-direction: row;
    padding: 10px 20px;
}

.location label, .travelTime label {
    margin-right: 20px;
}

select, input[type="date"] {
    width: 200px;
}

/* grid */
.userInfo {
    display: grid;
    grid-template-columns: 1fr 4fr;
    margin-bottom: 20px;
    align-items: center;
}

.userInfo label, .userInfo input {
    padding: 5px 10px;
    height: 100%;
    width: 100%;
}

.userInfo input {
    width: 90%;
    padding: 4px;
    margin: 10px;
    border-radius: 4px;
    border: 2px solid grey;
}

.inputContainer {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.labelContainer label {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-left: 10px;
}

.labelContainer {
    width: 100%;
    height: 100%;
}

/* buttons  */ 
button[type="submit"], button[type="reset"] {
    margin: 0 10px;
    padding: 0 2px;
    font-size: 1.2rem;
}