/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', Arial, sans-serif;
    background: white;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    min-height: 100vh;
    color: #2c3e50;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(139,0,0,0.025) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(139,0,0,0.02) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    pointer-events: none;
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.6s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quiz Card - Glassmorphism */
.quiz-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 
        0 8px 32px rgba(139, 0, 0, 0.1),
        inset 0 1px 0 rgba(139, 0, 0, 0.05);
    text-align: center;
}

/* Typography */
.tag {
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    font-size: 14px;
    color: rgba(139, 0, 0, 0.7);
    text-transform: lowercase;
    margin-bottom: 16px;
    display: block;
}

h1 {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: normal;
    font-size: 2.2em;
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: normal;
    font-size: 1.6em;
    margin-bottom: 24px;
    line-height: 1.3;
}

h3 {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: normal;
    font-size: 1.4em;
    margin-bottom: 12px;
}

p {
    font-size: 1.1em;
    line-height: 1.5;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 24px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #A0001C);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-counter {
    text-align: right;
    font-size: 0.9em;
    color: rgba(44, 62, 80, 0.6);
    margin-bottom: 24px;
}

/* Question Container */
.question-container {
    margin-bottom: 32px;
}

/* Answer Options */
.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.answer-option {
    background: rgba(139, 0, 0, 0.03);
    border: 2px solid rgba(139, 0, 0, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.1em;
    color: #2c3e50;
}

.answer-option:hover {
    background: rgba(139, 0, 0, 0.08);
    border-color: rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
}

.answer-option.selected {
    background: rgba(139, 0, 0, 0.15);
    border-color: #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-family: 'Helvetica', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
    text-decoration: none;
    display: inline-block;
    margin: 8px;
}

.btn.primary {
    background: linear-gradient(135deg, #8B0000, #A0001C);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4);
}

.btn.secondary {
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    border: 2px solid rgba(139, 0, 0, 0.2);
}

.btn.secondary:hover {
    background: rgba(139, 0, 0, 0.15);
    border-color: rgba(139, 0, 0, 0.3);
}

.btn.outline {
    background: transparent;
    color: rgba(139, 0, 0, 0.8);
    border: 2px solid rgba(139, 0, 0, 0.3);
    font-size: 1em;
    padding: 12px 24px;
}

.btn.outline:hover {
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
}

/* Results Styling */
.result-header {
    margin-bottom: 32px;
}

.cocktail-result {
    background: rgba(139, 0, 0, 0.05);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 24px 0;
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.cocktail-emoji {
    font-size: 4em;
    margin-bottom: 16px;
}

.cocktail-result h2 {
    color: #8B0000;
    margin-bottom: 16px;
}

.cocktail-result p {
    font-size: 1.2em;
    line-height: 1.6;
    color: rgba(44, 62, 80, 0.9);
}

.lead-magnet {
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.lead-magnet h3 {
    color: #8B0000;
}

.social-share {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Email Collection Screen */
.email-header {
    margin-bottom: 32px;
}

.email-header h1 {
    margin-bottom: 12px;
}

.email-collection {
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 24px 0;
}

.email-collection h2 {
    color: #8B0000;
    margin-bottom: 16px;
    font-size: 1.5em;
}

.email-form {
    margin: 24px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(139, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Helvetica', Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

.email-form .btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1.2em;
    padding: 18px 32px;
}

.privacy-note {
    margin-top: 20px;
    text-align: center;
}

.privacy-note small {
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.9em;
    line-height: 1.4;
}

/* Form Validation States */
.form-group input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.form-group input.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 8px;
    display: none;
}

.form-group input.error + .error-message {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .quiz-card {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .cocktail-emoji {
        font-size: 3em;
    }
    
    .social-share {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }
    
    .quiz-card {
        padding: 24px 20px;
    }
}