html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#formPage, .container {
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 40px;
    max-width: 70%;
    background: #ffffff;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1); 
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Gotham-BlackItalic';
    src: url('/fonts/Gotham-BlackItalic.otf');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Gotham', sans-serif;
    background-color: #FFF; 
    margin: 0;
    justify-content: center;
    height: 100vh;
    background-image: url('images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}

header {
    width: 100vw;  
    background-color: #2d6aae;  
    padding: 10px 0px; 
    display: flex;
    height: 90px;
    justify-content: center; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);  
    z-index: 2;
    position: relative;
}

.logo-container {
    text-align: center;
}

.logo {
    width: 270px;  
    height: auto;
    float: right;
    padding-top: 10px;
}


.container {
    background: #ffffff;
    padding-bottom: 10px;
    padding-left: 7vw;
    padding-right: 7vw;
    padding-top: 20px;
    max-width: 70%;
    margin: 0 auto; 

}

/* Heading Styling */
h1 {
    font-size: 4vw;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    margin-top: 0px;
    color: #BA102C;
    font-family: 'Gotham-BlackItalic', sans-serif;
}

p {
    color: #3f3f3f;
}

li {
    color: #3f3f3f;
    padding-bottom: 3px;
}

/* Form Elements */
label, input, textarea, button {
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 5px;
}

label{
    padding-bottom: 10px;
}

input, textarea {
    padding: 12px;
    font-size: 14px;
    border: 1px solid #BA102C;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
  
    background: #fff;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #BA102C;
    outline: none;
    background: #fff;
}

input:valid, textarea:valid {
    border-color: #BA102C;
    background: #fff;
}

button {
    background-color: #2d6aae;
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #BA102C;
    transform: translateY(-3px);
}

h2{
    color: #BA102C;;
}

button:active {
    transform: translateY(1px);
}

#loadingPage, #previewPage {
    text-align: center;
    padding-top: 10px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.button-row button {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #2d6aae;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-row button:hover {
    background-color: #BA102C;
    transform: translateY(-3px);
}

.button-row button:active {
    transform: translateY(1px);
}

#previewPage{
    max-width: 70%;
    height: 100%;
    padding-left: 7vw;
    padding-right: 7vw;
    padding-top: 20px;
    max-width: 70%;
    margin: 0 auto; 
}


/* Smartphones (portrait) ----------- */
@media only screen and (max-width: 600px) {
    .container,
    #previewPage {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    h1 {
        font-size: 9vw;
    }

    h2 {
        font-size: 9vw;
    }

    .button-row {
        flex-direction: column;
        gap: 15px;
    }

    .button-row button {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }

    .logo {
        width: 200px;
        padding-top: 5px;
    }

    canvas#pdfCanvas {
        width: 100% !important;
    }
}

/* Tablets (landscape & portrait) ----------- */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .container,
    #previewPage {
        padding-left: 5vw;
        padding-right: 5vw;
        max-width: 90%;
    }

    h1 {
        font-size: 5vw;
    }

    .logo {
        width: 230px;
    }

    canvas#pdfCanvas {
        width: 80% !important;
    }
}
