/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}
body {
    margin: 0;
    padding: 0;
    background-image: url(background.jpg); /* Replace with the path to your image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
}
/* Page Header */
h2 {
    text-align: center;
    color: #C70039;
    margin-top: 20px;
}
h2 {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #fff; /* White text color for contrast */
    padding: 10px 20px; /* Adds spacing inside the element */
    border-radius: 8px; /* Slightly rounded corners */
    text-align: center; /* Centers the text */
    width: fit-content; /* Ensures the background fits the text */
    margin: 20px auto; /* Centers the <h2> horizontally */
    font-size: 1.8rem; /* Adjust font size for emphasis */
    font-weight: bold; /* Makes the text stand out */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Adds a shadow for depth */
}
/* Form Container */
form {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Input and Label Styling */
label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #555;
}

input[type="text"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}
  #generate-pdf-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  #generate-pdf-btn:hover {
    background-color: darkorange;
  }

/* Button Styling */
button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #023d00;
}

/* Textarea Styling */
textarea {
    height: 100px;
    resize: none;
}

/* Style for the label */
label[for="capturePhotoInput"] {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    cursor: pointer;
}

/* Style for the file input, make it hidden */
#capturePhotoInput {
    display: none; /* Hide the default file input */
}

/* Style for a custom button that will trigger the file input */
#customFileButton {
    background-color: #4CAF50; /* Green background */
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#customFileButton:hover {
    background-color: #45a049; /* Darker green on hover */
}

#customFileButton:focus {
    outline: none; /* Remove focus outline */
}

#customFileButton:active {
    background-color: #3e8e41; /* Darker green when clicked */
}


/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button {
        font-size: 14px;
    }
}
