/* General Body Styling */
body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Header Styling */
#header {
    background-image: url('https://www.qrc.ac.nz/wp-content/uploads/2020/09/logo-qrc-03-1-130x130.png');
    background-repeat: no-repeat;
    background-position: center top;
    padding-top: 50px; /* Adds padding at the top for better spacing */
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    background-size: 80px auto; /* Adjust the size of the logo */
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#header h1 {
    margin-top: 80px; /* Push the title down further */
    font-size: 2rem; /* Adjust font size */
    font-weight: bold; /* Keep the font bold */
    color: #d50000; /* Maintain the red color */
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #header {
        background-position: center top;
        background-size: 50px auto; /* Reduce the logo size on smaller screens */
        padding-top: 30px;
        padding-bottom: 20px;
        flex-direction: column;
    }

    #header h1 {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 15px;
    }
}

/* Page Title Styling */
h1, h2, h3 {
    color: #d50000; /* QRC Red */
    text-align: center;
}

/* Subtext Styling */
p {
    color: #555;
    text-align: center;
    line-height: 1.5;
}

/* Form Container Styling */
form {
    max-width: 600px;
    margin: auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input Field Styling */
input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* List Styling */
ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

ul li {
    margin-bottom: 10px;
}

/* Submit Button Styling */
input[type="submit"] {
    background-color: #d50000; /* QRC Red */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, input[type="submit"]:focus {
    background-color: #333333; /* Black on hover and focus */
    color: #ffffff;
}

/* Alert Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-danger:before {
    content: "\f071"; /* FontAwesome exclamation-triangle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
    margin-right: 10px;
}

.alert-danger .close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a94442;
    font-size: 1.2rem;
    cursor: pointer;
}

.alert-danger:hover {
    background-color: #f1c3c3;
    border-color: #eab4b4;
}

/* Icon and Label Styling */
.icon {
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Center the button within the form */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary {
    width: auto; /* Adjust width as necessary */
    padding: 10px 20px;
    background-color: #d50000; /* QRC Red */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.primary:hover, .primary:focus {
    background-color: #333333; /* Black on hover and focus */
    color: #ffffff;
}

/* Center-align the Yes/No buttons */
.button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.button-group button {
    margin: 0 10px;
}

/* NZQA Message Styling */
#nzqaMessage {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
}

#nzqaMessage p {
    margin: 0;
    padding: 5px 0;
}

#nzqaMessage a {
    color: #d50000; /* QRC Red */
    text-decoration: none;
}

#nzqaMessage a:hover {
    text-decoration: underline;
}

/* Date Picker Styling */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    color: #333;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #333;
    cursor: pointer;
}