/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    background-image: url(/assets/images/success_message.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
}

:root {
    --primary-color: #c8a33c;
    --secondary-color: #7c6b15;
}

/* Container Styles */
.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-image: url(/assets/images/FP_LandingPage.jpg);
    background-color: #052b1f;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
}

/* Form Container */
.form-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.form-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.form-content h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.form-content h3 span{
    color: #900843;
}

.input-width {
    width: 100% !important;
}

.form-wrapper {
    padding: 20px;
    border-radius: 10px;
    width: 100%;
	max-width: 360px;
    background: linear-gradient(to bottom right,var(--secondary-color), var(--primary-color), var(--secondary-color));
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-container input, 
.form-container button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #656565;
}

.error-warning-padding {
    padding: 5px;
    background-color: pink;
    border: 3px solid #fd0000;
}

.error-warning-message {
    color: red;
    display: none;
    font-weight: bold;
    font-size: small;
}

.disabled-button {
    background-color: grey !important;
    color: white;
    border: none;
    cursor: not-allowed;
}

.tacbox {
    display:block;
    padding: 10px;
    margin: 10px;
    background-color: #eee;
    max-width: auto;
    max-height: auto;
}

.tacbox label {
    font-size: x-small;
}

label.cameraButton {
    display: inline-block;
    margin: 1em 0;
    /* Styles to make it look like a button */
    padding: 0.5em;
    border: 2px solid #666;
    border-color: #EEE #CCC #CCC #EEE;
    background-color: #DDD;
}

/* Look like a clicked/depressed button */
label.cameraButton:active {
    border-color: #CCC #EEE #EEE #CCC;
}

/* This is the part that actually hides the 'Choose file' text box for camera inputs */
label.cameraButton input[accept*="camera"] {
    display: none;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #ccc;
    padding: 5px;
    box-sizing: border-box;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-wrapper .file-upload-input {
    flex-grow: 1;
    padding: 8px;
    border: none;
    outline: none;
}

.file-upload-wrapper .file-upload-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    position: relative;
}

.icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        position: relative;
    }

    .form-container {
        justify-content: center;
        background-image: url(/assets/images/backdrop_mobile2.jpg);
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }

    .form-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1;
        padding-top: 60px;
    }

    .form-wrapper {
        margin-left: 0%;
        margin-top: 20%;
    }

    .poster-container {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .poster-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 390px) {
    .container {
        flex-direction: column;
        position: relative;
    }

    .form-container {
        justify-content: center;
        background-image: url(/assets/images/backdrop_mobile2.jpg);
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }


    .form-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1;
        padding-top: 60px;
    }

    .form-content h3 {
        font-size: 14px;
    }

    .form-wrapper {
        margin-left: 0%;
        margin-top: 20%;
    }

    .poster-container {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    input[type="text"]
    {
        font-size:14px;
    }

    .poster-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
