@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");
@import url("https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color */
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Allow header, main, footer stacking */
    min-height: 100vh;
    /* Removed padding: 20px; to allow full-width header/footer */
}

html {
    scroll-behavior: smooth;
}

.container { /* Utility container */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2em; /* Adjusted for form title */
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.2em; /* Adjusted margin */
}

p {
    margin-bottom: 1em;
    color: #b0b0b0; /* Slightly dimmer text for paragraphs */
}

a {
    color: #ff4a57; /* Accent color */
    text-decoration: none;
}

a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Header Styles */
.site-header {
    background-color: #1f1f1f; /* Dark card background, consistent */
    padding: 15px 0;
    border-bottom: 1px solid #333;
    width: 100%;
    position: sticky; /* Keep header at top */
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
}
.logo:hover {
    color: #ff4a57;
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 25px;
}

.navbar .nav-links a {
    color: #e0e0e0;
    font-weight: 400;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #ff4a57;
    text-decoration: none;
}

.navbar .nav-links a.active::after,
.navbar .nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4a57;
}


.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.8em;
    cursor: pointer;
}
.hamburger-menu:hover {
    color: #ff4a57;
}

/* Main Content Area */
main.form-wrapper {
    flex-grow: 1; /* Take remaining vertical space */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px; /* Increased padding */
}


/* Form Styles */
.form-container {
    background-color: #1f1f1f; /* Dark card background */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px; /* Max width for the form */
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c0c0c0; /* Slightly brighter label */
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"], /* Added file input */
.form-group select { /* Combined select styling */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #383838; /* Subtle border */
    background-color: #2a2a2a; /* Darker input background */
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Specific styling for file input button (browser-dependent) */
.form-group input[type="file"]::file-selector-button {
    background-color: #ff4a57; /* Accent color */
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #e03845; /* Darker accent */
}

/* Specific styles for select */
.form-group select {
    appearance: none; /* Remove default dropdown arrow */
    /* Custom arrow using SVG - updated fill color to accent */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff4a57'%3E%3Cpath fill-rule='evenodd' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;
    cursor: pointer;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="file"]:focus, /* Added file input */
.form-group select:focus {
    outline: none;
    border-color: #ff4a57; /* Accent color on focus */
    box-shadow: 0 0 0 2px rgba(255, 74, 87, 0.3); /* Subtle glow */
}

.form-group input::placeholder {
    color: #666;
}

/* Style for placeholder option */
.form-group select:required:invalid {
  color: #666;
}
.form-group option[value=""][disabled] {
  display: none; /* Hide placeholder in dropdown */
}
.form-group option {
  color: #e0e0e0; /* Ensure options have light text */
  background-color: #2a2a2a; /* Match background */
}
/* Attempt to style selected option background (might not work everywhere) */
.form-group select option:checked {
     background-color: #ff4a57; /* Button color */
     color: #ffffff; /* White text for contrast */
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ff4a57; /* Style checkbox color */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #b0b0b0;
    font-weight: 400;
}

.checkbox-group label a {
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px; /* Slightly more rounded */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1em; /* Base font size */
}

.btn-primary {
    background-color: #ff4a57; /* Accent color */
    color: #fff;
}

.btn-primary:hover {
    background-color: #e03845; /* Darker accent */
    color: #fff;
    transform: translateY(-2px);
}

.btn-full-width {
    width: 100%;
    padding: 14px; /* Slightly larger padding for full width button */
    font-size: 1.05em;
}

.form-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: #b0b0b0;
}

.form-footer-text a {
    font-weight: 600;
}

/* jQuery UI Autocomplete Dark Theme Styles */
.ui-autocomplete {
    background-color: #2a2a2a; /* Dark background */
    border: 1px solid #383838; /* Subtle border */
    color: #e0e0e0; /* Light text */
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    z-index: 1002; /* Ensure it's above other elements */
    max-height: 200px; /* Add max height for scrollability */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #e0e0e0; /* Default item text color */
}

/* Style for focused/hovered item in autocomplete */
.ui-autocomplete .ui-menu-item.ui-state-focus,
.ui-autocomplete .ui-menu-item:hover {

    color: #ffffff; /* White text for contrast */
    border: none; /* Remove default jQuery UI border */
    margin: 0; /* Remove default margin */
    border-radius: 0; /* Keep corners sharp within dropdown */
}

/* jQuery UI Datepicker Dark Theme Styles */
.ui-datepicker {
    background-color: #2a2a2a; /* Dark background */
    border: 1px solid #383838; /* Subtle border */
    color: #e0e0e0; /* Light text */
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: auto; /* Auto width based on content */
    display: none; /* Hidden by default */
    z-index: 1003 !important; /* Ensure it's above other elements, including autocomplete */
}

.ui-datepicker .ui-datepicker-header {
    background-color: #1f1f1f; /* Slightly darker header */
    color: #ffffff;
    border-bottom: 1px solid #383838;
    padding: 8px 0;
    border-radius: 4px 4px 0 0;
    position: relative; /* For prev/next button positioning */
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
    text-align: center;
    margin: 0 2.3em; /* Make space for prev/next buttons */
}
.ui-datepicker .ui-datepicker-title select { /* Style for month/year dropdowns */
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 2px 5px;
    margin: 0 2px;
    font-size: 0.9em;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8em;
    height: 1.8em;
    cursor: pointer;
    color: #e0e0e0; /* Icon color */
    background: none;
    border: none;
}
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: #333; /* Slight hover effect */
    border-radius: 4px;
}

.ui-datepicker .ui-datepicker-prev {
    left: 6px;
}
.ui-datepicker .ui-datepicker-next {
    right: 6px;
}

.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
    background-image: none; /* Remove default jQuery UI icon sprite */
    text-indent: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* Using Font Awesome for prev/next icons */
.ui-datepicker .ui-datepicker-prev .ui-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f053"; /* fa-chevron-left */
}
.ui-datepicker .ui-datepicker-next .ui-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054"; /* fa-chevron-right */
}

.ui-datepicker table {
    width: 100%;
    font-size: 0.9em;
    border-collapse: collapse;
    margin: 10px 0 0 0;
}

.ui-datepicker th {
    padding: 8px 5px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #383838;
    color: #b0b0b0; /* Dimmer color for day names */
}

.ui-datepicker td {
    padding: 2px;
    border: 1px solid transparent; /* For hover effect alignment */
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 8px 5px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ui-datepicker .ui-state-default {
    /* Default day style (already covered by td a) */
}
.ui-datepicker .ui-state-disabled span {
    color: #555; /* Disabled days */
    cursor: default;
}

.ui-datepicker .ui-state-hover,
.ui-datepicker .ui-state-focus { /* Hover/focus on a day */
    background-color: #383838; /* Darker grey hover */
    color: #ffffff;
    border-color: #444;
}

.ui-datepicker .ui-state-active, /* Selected day */
.ui-datepicker .ui-state-highlight { /* Today's date or special highlight */
    background-color: #ff4a57; /* Accent color */
    color: #ffffff;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-current-day .ui-state-active {
    /* Ensure current day selected has priority */
}

/* Footer Styles */
.site-footer {
    background-color: #1f1f1f; /* Dark card background, consistent */
    color: #b0b0b0;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    width: 100%;
    font-size: 0.9em;
    margin-top: auto; /* Push footer down */
}

.site-footer p {
    margin-bottom: 0;
}
.vnotify-container{
        z-index: 9999;
            opacity: 1;
}
.vnotify-container .vnotify-item{
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) { /* Tablet and mobile breakpoint */
     .header-content {
        position: relative; /* Needed for absolute positioning of navbar */
    }
    .navbar {
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background-color: #1f1f1f; /* Same as header */
        border-top: 1px solid #333;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
        padding: 0; /* No padding when closed */
        z-index: 999; /* Below header but above content */
    }

    .navbar.active {
        max-height: 400px; /* Adjust as needed */
        opacity: 1;
        padding: 15px 0; /* Padding when open */
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-links li {
        margin: 10px 0;
        margin-left: 0; /* Reset margin */
        width: 100%;
        text-align: center;
    }
    .navbar .nav-links li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }
    .navbar .nav-links a.active::after,
    .navbar .nav-links a:hover::after {
        width: 50%;
        left: 25%;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    main.form-wrapper {
        padding: 30px 15px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="file"],
    .form-group select {
        padding: 10px 12px;
         font-size: 0.95em;
    }
     .form-group select {
        background-position: right 10px center; /* Adjust arrow pos */
     }

    .btn-full-width {
        padding: 12px;
        font-size: 1em;
    }

    .logo {
        font-size: 1.5em;
    }
     .hamburger-menu {
        font-size: 1.5em;
    }
}