/* MARATHON THEME VARIABLES */
:root {
    --primary: #ff5e62; /* Vibrant Runner's Orange */
    --primary-dark: #ff9966;
    --secondary: #1e293b; /* Slate 800 */
    --accent: #fbbf24; /* Gold for medals/highlights */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --track-grey: #cbd5e1;
    --info-link: #3b82f6; /* Blue for links */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(30, 41, 59, 0.05) 0%, transparent 20%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Common Card Styling */
.form-card {
    background: #ffffffcc;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-top: 5px solid var(--primary);
    position: relative;
}

/* Finish line check pattern decoration */
/* .form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 2rem;
    width: 3rem;
    height: 0.75rem;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%), 
        linear-gradient(-45deg, #000 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #000 75%), 
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 10px 10px;
    background-color: white;
    opacity: 0.1;
} */

/* Common button styling */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 0.3rem;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: skew(-5deg); /* Sporty skew */
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(255, 107, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary span {
    display: inline-block;
    transform: skew(5deg);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: skew(-5deg) translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.4);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Optional: blur background */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal.active {
    display: flex; /* Show the modal */
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto; /* Centered */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 90%; /* Max width for content */
    max-height: 90%; /* Max height for content */
    overflow: auto; /* Enable scrolling for content if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh; /* Adjust as needed */
    display: block; /* Remove extra space below image */
    height: auto;
}

.close-button {
    color: var(--text-main);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    background-color: var(--bg-body);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* Adjust line-height for perfect centering */
    transition: background-color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary);
    background-color: var(--border-color);
    text-decoration: none;
    cursor: pointer;
}