/* stylesheet.css */

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Flex utility class for layout */
.d-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Set full height and background */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #0d1b2a, #0d1b2af6); padding: 20px;
}

/* Container styling for form and image section */
#form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    flex-direction: row;
    gap: 30px;
}

/* Styling for image and go back button */
.graphic {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.graphic img {
    max-width: 100%;
    border-radius: 8px;
}

.back-btn {
    padding: 10px 20px;
    border: none;
    background-color: #00567a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: scale(1.05);
}

/* Form styling */
.demo-form {
    flex: 2;
    flex-direction: column;
    width: 100%;
}

form {
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Title styling */
.title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

/* Input and textarea styling */
input, textarea {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #00567a;
    outline: none;
}

/* Form buttons styling */
.form-btn {
    gap: 20px;
    margin-top: 20px;
}

button[type="submit"], button[type="reset"] {
    padding: 10px 25px;
    background-color: #00567a;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover, button[type="reset"]:hover {
    background-color: #0d1b2ad5;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    #form-container {
        flex-direction: column;
        padding: 15px;
    }

    .graphic img {
        height: auto;
        width: 80%;
    }
}

/* Simple fade-in animation */
.form-animated {
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
