/* General Styles */
body {
    background-color: #f4f4f9; /* Subtle background for contrast */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}
* {
    box-sizing: border-box;
}

/* Form Container */
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.container:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Header */
.row.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 10px 10px 0 0;
}


/* Header Image */
.header-image {
    width: 100%; /* Ensures the image spans the container width */
    max-height: 350px; /* Increases height for a better look */
    object-fit: cover; /* Maintains aspect ratio and crops excess */
}


h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    overflow-wrap: break-word;
}


/* Form Labels and Inputs */
label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.form-control, 
.form-select {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 0.95rem;
}

textarea.form-control {
    resize: none;
}

.form-control:focus, 
.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


.error {
    font-size: 0.9em;
    color: red;
}


/* Submit Button */
button.btn {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

button.btn:hover {
    background: linear-gradient(135deg, #0056b3, #004080);
    transform: translateY(-2px);
}




/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .header-image {
        max-height: 300px; /* Medium screen adjustment */
    }

    h1 {
        font-size: 1.5rem; /* Scales down the title */
    }


    .container {
        max-width: 90%;
        padding: 15px;
    }

    button.btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
  
    .header-image {
        max-height: 250px; /* Small screen adjustment */
    }

    h1 {
        font-size: 1.2rem; /* Further scales down the title */
    }

    label {
        font-size: 0.9rem;
    }

    .form-control, 
    .form-select {
        font-size: 0.85rem;
    }

    button.btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .row.bg-primary {
        padding: 10px;
    }
}



