/* --- Base Setup --- */
body {
    background-color: #111111;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #000000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff0000;
}
.main-header h1 {
    margin: 0;
}
.main-header h1 a {
    color: #ffffff; /* CHANGED: MyWebsite text color to white */
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.main-header nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
.main-header nav a:hover {
    color: #ff0000;
}

/* --- Language Selector --- */
.lang-selector { display: flex; align-items: center; }
.lang-selector label { color: #ffffff; margin-right: 10px; font-size: 14px; }
.lang-selector select { background-color: #333; color: #ffffff; border: 1px solid #ff0000; padding: 5px; border-radius: 4px; }

/* --- Main Content & Ambient Light --- */
.content-wrapper {
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.content-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 25px 5px rgba(255, 0, 0, 0.3); /* Ambient Light */
}
.content-box h2 {
    color: #ffffff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    text-align: center;
}

/* Updated Button Grid (Vertical Layout) */
.option-grid {
    display: flex;
    flex-direction: column; /* This forces vertical stacking */
    gap: 20px; /* This creates space between the vertical buttons */
    margin-top: 30px;
}
.option-button {
    background-color: #000000; /* Black background for buttons */
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px; /* Rounder corners */
    border: 1px solid #ff0000; /* Added a red border so the button is visible */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); /* Red ambient light */
}
.option-button:hover {
    background-color: #222222; /* Dark grey on hover */
    border-color: #ffffff; /* White border on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.7); /* Stronger glow on hover */
}

/* --- Forms (UPDATED) --- */
.main-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    align-items: center; /* Center form elements horizontally */
}
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Make form group take full width */
    max-width: 400px; /* Limit max width for a professional look */
}
.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffffff;
    text-align: left; /* Align label text to the left */
}
.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
    padding: 12px;
    border: 1px solid #ffffff; /* CHANGED: White border */
    background-color: #000000; /* CHANGED: Black background */
    color: #ffffff;
    border-radius: 10px; /* CHANGED: Rounder corners */
    font-size: 16px;
}
.form-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7); /* Red ambient light on focus */
    border-color: #ff0000; /* Red border on focus */
}
fieldset { border: none; padding: 0; margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
fieldset:disabled { opacity: 0.5; }

/* --- Buttons --- */
.btn-primary {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px; /* Rounder corners */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    width: 100%; /* Make button take full width of form-group */
    max-width: 400px; /* Match input field width */
}
.btn-primary:hover { background-color: #cc0000; }
.btn-primary:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Countdown & Instructions --- */
.countdown-box {
    text-align: center;
    font-size: 18px;
    color: #ff0000;
    margin-bottom: 15px;
}
.instructions-box {
    background-color: #222;
    border-left: 3px solid #ff0000;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* --- Loading & Results --- */
.loading-message { text-align: center; padding: 30px; }
.spinner {
    border: 5px solid #555;
    border-top: 5px solid #ff0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-box { margin-top: 30px; }
.error-box { background-color: #4d0000; border: 1px solid #ff0000; color: #ffffff; padding: 15px; border-radius: 5px; margin-top: 20px; }
.success-box { background-color: #003d00; border: 1px solid #00ff00; color: #ffffff; padding: 15px; border-radius: 5px; margin-top: 20px; text-align: center; font-size: 18px; }

/* --- Email Display --- */
.email-display { margin-top: 30px; }
.email-display h3 { color: #ff0000; }
.email-divider { border: 0; border-top: 1px solid #555; margin: 20px 0; }
.email-body-container {
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}
.email-body-container a {
    color: #cc0000; /* Ensuring links within email body are also red */
}
.email-body-container img { max-width: 100%; height: auto; }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000000;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #777;
    margin-top: auto;
}