/* ---  Global Styles & Variables --- */
:root {
    --midnight-blue-bg: #0b0c1d;
    --crisp-white-text: #f0f0f0;
    --silver-accent: #c0c0c0;
    --input-bg: #1c1d2e;
    --button-bg: #2a2b3f;
    --button-hover-bg: #3c3d52;
}

body {
    background-color: var(--midnight-blue-bg);
    background-image: url('https://cdn.midjourney.com/b21fe4a1-120d-4901-bffc-74e848053f4a/0_3.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--crisp-white-text);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* --- Main Content Container --- */
.container {
    max-width: 600px;
    width: 90%; /* NEW: Ensures better spacing on small screens */
    padding: 2rem;
    z-index: 1;
    position: relative;
    background: rgba(11, 12, 29, 0.65); /* MODIFIED: Slightly less transparent for readability */
    backdrop-filter: blur(8px); /* MODIFIED: Increased blur for more focus */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---  Header & Logo --- */
.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    color: var(--crisp-white-text);
}

/* ---  Main Content & Tagline --- */
.tagline {
    font-size: 1.5rem;
    color: var(--silver-accent);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.status {
    font-size: 1.1rem;
    color: var(--crisp-white-text);
    margin-bottom: 2.5rem;
}

.cta {
    font-size: 1rem;
    color: var(--silver-accent);
    margin-bottom: 1.5rem;
    line-height: 1.6; /* MODIFIED: Improved line spacing for readability */
}

/* ---  Email Signup Form --- */
.signup-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
}

/* MODIFIED: Unified styles for all input types for a consistent, non-robotic look */
input[type="email"],
input[type="text"],
textarea {
    font-family: 'Montserrat', sans-serif; /* KEY FIX: Ensures inputs use the main font */
    background-color: var(--input-bg);
    border: 1px solid var(--button-bg);
    color: var(--crisp-white-text);
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%; /* MODIFIED: Let the parent control the width */
    box-sizing: border-box; /* NEW: Ensures padding doesn't break layout */
    transition: border-color 0.3s, box-shadow 0.3s; /* NEW: Added shadow transition */
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--silver-accent);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2); /* NEW: Adds a glow effect on focus */
}

.signup-form input {
    width: 60%;
}

.signup-form button {
    background-color: var(--button-bg);
    color: var(--crisp-white-text);
    border: 1px solid var(--button-bg);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.signup-form button:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--silver-accent);
}

#success-message {
    font-size: 1.2rem;
    color: var(--silver-accent);
    font-weight: bold;
}

/* ---  Footer --- */
footer {
    margin-top: 4rem;
    color: var(--silver-accent);
    font-size: 0.8rem;
    opacity: 0.7;
}


/* --- MODIFIED: Questionnaire Specific Styles --- */
.questionnaire-form { text-align: left; }
.form-section { margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 1.5rem; }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: 1.2rem; color: var(--crisp-white-text); margin-bottom: 1.5rem; font-weight: 700; }
.form-section .question-label { display: block; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 400; line-height: 1.5; }
.form-section .radio-label { display: flex; align-items: center; margin-bottom: 0.75rem; cursor: pointer; padding: 10px; border-radius: 8px; transition: background-color 0.2s; } /* NEW: Added padding and transition for hover */
.form-section .radio-label:hover { background-color: rgba(255, 255, 255, 0.05); } /* NEW: Hover effect for options */
/* KEY FIX: Proper alignment for checkboxes/radios on all screen sizes */
.form-section input[type="radio"],
.form-section input[type="checkbox"] {
    margin-right: 12px;
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
}
.form-section textarea { min-height: 100px; resize: vertical; margin-top: 0.5rem; }

/* KEY FIX: A much better submit button */
.submit-button {
    width: 100%;
    background: #5D5FEF; /* NEW: A vibrant, confident color */
    color: var(--crisp-white-text);
    border: none;
    padding: 18px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1rem; /* NEW: Spacing from the email field */
}

.submit-button:hover:not(:disabled) {
    background-color: #4a4cc7;
    transform: translateY(-2px); /* NEW: Adds a subtle lift effect */
}

.submit-button:disabled {
    background-color: #2a2b3f;
    cursor: not-allowed;
    opacity: 0.7;
}

.final-cta { display: none; }


/* --- Entrance Animations --- */
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo, .tagline, .status, .cta, .signup-form, footer, .questionnaire-form {
  animation: fadeInSlideUp 0.8s ease-out forwards;
  opacity: 0;
}

.tagline { animation-delay: 0.2s; }
.status { animation-delay: 0.4s; }
.cta { animation-delay: 0.6s; }
.signup-form { animation-delay: 0.8s; }
.questionnaire-form { animation-delay: 0.3s; }
footer { animation-delay: 1.0s; }


/* --- Responsive (Mobile) Styles --- */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
    .logo { font-size: 2.5rem; letter-spacing: 3px; }
    .tagline { font-size: 1.2rem; }
    .signup-form { flex-direction: column; align-items: center; gap: 15px; }
    .signup-form input, .signup-form button { width: 100%; max-width: 400px; }
    .container { padding: 1.5rem; }
}