@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');

:root {
    --primary-color: #00ff00;
    --background-color: #000;
    --text-color: #fff;
    --container-bg: rgba(0, 0, 0, 0);
    --adult-swim-font: "Helvetica Neue", "Helvetica Neue Condensed Bold", "Roboto Condensed", Helvetica, Arial, sans-serif;
}

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

html, body {
    height: 100%; /* Ensure full height for centering */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--adult-swim-font);
    font-weight: 700;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
}

.container {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.form-container {
    background-color: var(--container-bg);
    padding: 0;
    border: none;
    width: 100%;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    text-align: center;
    font-size: clamp(0.8rem, 4vw, 0.9rem);
}

input {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--background-color);
    border: none; /* Remove border */
    border-bottom: 1px solid var(--primary-color); /* Underline style */
    color: var(--text-color);
    font-family: var(--adult-swim-font);
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    border-radius: 0;
    text-align: center;
    outline: none; /* Remove focus outline */
}

input:focus {
    border-bottom-color: var(--text-color); /* Change underline on focus */
}

button {
    background-color: transparent; /* Transparent background */
    color: var(--primary-color);
    border: none; /* Remove border */
    padding: 0.7rem 1.2rem;
    font-family: var(--adult-swim-font);
    font-weight: 700;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    cursor: pointer;
    transition: color 0.2s ease; /* Only transition color */
    text-transform: uppercase;
    border-radius: 0;
    margin-top: 1rem; /* Increased space above button */
}

button:hover {
    background-color: transparent;
    color: var(--text-color); /* Change text color on hover */
    transform: none;
}

/* Loading animation */
.loading {
    display: none;
    margin-top: 1rem;
    color: var(--primary-color);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Message styles */
.message {
    margin-top: 1rem;
    padding: 0.7rem;
    border-radius: 0;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    animation: fadeIn 0.5s ease;
    border: none; /* Remove border from messages too */
    background-color: transparent;
}

.message.success {
    color: var(--primary-color);
}

.message.error {
    color: #ff0000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        max-width: 90%;
    }
    
    button {
        width: 100%;
    }
}

/* Success page styles */
.success-container {
    text-align: center;
    max-width: 700px;
    margin: 2rem auto; /* Add some margin top/bottom */
    width: 100%;
    padding: 1rem; /* Add padding to success page */
}

.download-section, .note-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    text-align: left;
}

.download-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--primary-color);
}

.download-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.download-button {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    margin-top: 0.7rem;
    font-family: var(--adult-swim-font);
    text-decoration: none;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    transition: all 0.2s ease;
    border-radius: 0;
    font-weight: 700;
}

.download-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: none;
}

h2 {
    color: var(--primary-color);
    font-size: clamp(1rem, 4vw, 1.1rem);
    margin-bottom: 0.7rem;
    font-weight: 700;
}

p {
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    line-height: 1.5;
    margin-bottom: 0.7rem;
}

.step {
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
}

.step-number {
    color: var(--primary-color);
    display: inline-block;
    width: 20px;
}

.note-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.note-section p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}