/* Resetting margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 2% 10% 5% 10%; /* Responsive margins */
    background-image: url('assetZ/BG.webp'); /* Path to a relevant background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fixed background for parallax effect */
    color: #333;
}

textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff; /* White background for clarity */
    color: #333; /* Dark text for contrast */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Soft shadow for depth */
}

textarea {
    height: 200px; /* Adequate height for text areas */
}

pre {
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    margin-top: 10px;
    overflow: auto;
}

button {
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

label {
    display: block;
    margin-top: 5px; /* Reduced from previous larger spacing */
    color: #000;
}

/* Styling adjustments for dynamic sections */
.attachmentsContainer, #itemsContainer > div {
    padding: 5px; /* Reduced padding inside containers */
    margin-top: 5px; /* Smaller margin above each container */
    border: 1px dashed #ccc;
    border-radius: 4px; /* Visual distinction for nested elements */
    background-color: rgba(255, 255, 255, 0.9);
}

h1, h2, p {
    color: #fff; /* White text for headings and paragraphs */
    text-shadow: 2px 2px 4px #d2b48c; /* Tan glow effect */
}

h3, h4 {
    margin-top: 5px; /* Reduced top margin for headers */
    margin-bottom: 0px; /* Reduced bottom margin to pull sections closer */
    color: #000000; /* Ensuring headers are clearly visible */
}

.form-container {
    padding: 10px; /* Reduced overall padding inside the form container */
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8); /* Light background for form area */
    border-radius: 8px; /* Rounded corners for the form */
}

/* Placeholder styling for further clarity */
input::placeholder, textarea::placeholder {
    color: #aaa; /* Light gray placeholder text */
}

/* Input and focus enhancements */
input[type='text']:focus, input[type='number']:focus, select:focus, textarea:focus {
    border-color: #0056b3; /* Highlight focus with a blue border */
    box-shadow: 0 0 8px rgba(0,86,179,0.5); /* More prominent shadow on focus */
}
