/*
=================================================================
STYLESHEET FOR MALTA QUEST - HUNTER REGISTRATION FORM
VERSION: 1.0
DESCRIPTION: Modernized styles based on the Ulys Quest theme.
=================================================================
*/

/* --- 0. IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* --- 1. FOUNDATION & CORE STYLES --- */
:root {
    --primary: #ed1c24;   /* Malta Red - Vibrant Accent */
    --secondary: #ffffff; /* White - For text and highlights */
    --dark: #b31217;      /* Darker Red - For hover states */
    --bg-dark: #121212;   /* Main dark background */
    --bg-light: #1a1a1a;  /* Lighter dark for card backgrounds */
    --text-light: #e0e0e0;/* Light gray for body text */
    --border-color: rgba(255, 255, 255, 0.1); /* Standard border color */
    --error-color: #ff4d4d; /* Error color */
}

/* General Body Styles */
body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0% 0%;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Modern Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(237, 28, 36, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- 2. NAVIGATION (GLASSMORPHISM) --- */
#main-nav {
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-nav ul li { margin: 0 15px; }

#main-nav ul li a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* Responsive Navigation */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 1001;
}

/* --- 3. MAIN CONTENT & FORM --- */
.container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.2), rgba(26, 26, 26, 0.5));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    padding: 40px;
    margin: 50px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

h1 {
    font-family: 'DM Sans', sans-serif;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(237, 28, 36, 0.5);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    display: block;
    font-weight: 500;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

label.required::after {
    content: '*';
    color: var(--primary);
    margin-left: 5px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: rgba(18, 18, 18, 0.5);
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.5);
}

input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e0e0e0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
}

/* Form Validation Styles */
input.invalid, select.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

small.error-message {
    color: var(--error-color);
    display: none;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Optional info paragraph */
form p {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    margin: -4px 0 0 0;
    line-height: 1.4;
}

/* Submit Button */
button[type="submit"] {
    font-family: 'Space Mono', monospace;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--dark));
    color: white;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(237, 28, 36, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

button[type="submit"]:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

button[type="submit"]:hover {
    box-shadow: 0 0 40px rgba(237, 28, 36, 0.8), 0 0 60px rgba(237, 28, 36, 0.5);
    transform: translateY(-3px);
}

button[type="submit"]:active {
    transform: translateY(1px);
}

/* --- 4. FOOTER --- */
footer {
    background: rgba(18, 18, 18, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--secondary);
    margin-top: 60px;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- 5. RESPONSIVENESS --- */
@media (max-width: 768px) {
    .menu-icon { display: block; }

    #main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    #main-nav ul.active { display: flex; }
    #main-nav ul li { margin: 10px 0; }
    #main-nav ul li a { justify-content: flex-start; }

    .container {
        margin: 30px 15px;
        padding: 30px 20px;
    }

    h1 { font-size: 2rem; }
}