:root {
    --bg-color: #0f1115;
    --container-bg: #1a1d24;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --error-red: #ef4444;
    --success-green: #10b981;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    background-color: var(--container-bg);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.org-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.1s;
    font-size: 0.95rem;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid #374151;
    margin-bottom: 2rem;
}

.btn-secondary:hover {
    background-color: #374151;
}

.submission-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="text"] {
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #374151;
    background-color: #111827;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

input[type="text"]:focus {
    border-color: var(--accent-gold);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #111827;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
}

.btn-success {
    background-color: var(--success-green);
    color: #ffffff;
    margin-top: 1.5rem;
}

.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
    }
}
/* --- Updated Framed Image Display Styles --- */

.image-preview {
    background-color: #050505; /* Deep black to create a strong contrast for the frame */
    padding: 1rem; /* Acts as the 'matting' inside the frame */
    border-radius: var(--border-radius);
    border: 2px solid #374151; /* Thicker outer frame border */
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 4px 6px rgba(0, 0, 0, 0.3); /* Inner and outer shadows for depth */
}

.image-comment {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.challenge-img {
    width: 100%;
    height: 500px; /* Fixed height so large images don't stretch the page */
    object-fit: cover; /* Zooms/crops to fill the 220px height perfectly without distortion */
    object-position: center;
    border-radius: 4px;
    border: 1px solid #1f2937; /* Subtle inner border resting directly on the image */
    display: block;
    box-sizing: border-box;
}