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

/* Banner Styles */
.banner-container {
    width: 100%;
    margin-bottom: 40px;
    display: block;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile-only: Full-width banner like original */
@media (max-width: 768px) {
    .banner-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 20px;
    }
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    line-height: 1.5;
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 80px);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0;
}

.header-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    letter-spacing: -0.02em;
}

.logo i {
    color: #ffd700; /* Yellow accent */
    font-size: 2.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.survey-description {
    font-size: 1rem;
    color: #333333;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.countdown-section {
    background: #000000;
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 0;
    margin: 32px auto;
    max-width: 500px;
    box-shadow: none;
    border: 1px solid #000000;
}

.countdown-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

#countdown {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffd700; /* Yellow accent */
}

.prediction-deadline {
    font-size: 0.95rem;
    color: #666666;
    max-width: 600px;
    margin: 24px auto 0;
    padding: 16px 20px;
    background: #f8f8f8;
    border-left: 3px solid #ffd700; /* Yellow accent */
    border-radius: 0;
    font-style: normal;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: none;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: transparent;
    transform: none;
    color: #000000;
}

.tab-btn.active {
    background: transparent;
    color: #000000;
    box-shadow: none;
    border-bottom-color: #ffd700; /* Yellow accent */
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Survey Container */
.survey-container {
    background: #ffffff;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

/* User Info Section */
.user-info-section {
    background: #f8f8f8;
    padding: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.user-info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.user-info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: none;
}

/* Questions Section */
.questions-section {
    padding: 40px;
}

.questions-header {
    margin-bottom: 40px;
}

.questions-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.questions-header p {
    color: #666666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.progress-indicator {
    background: #f8f8f8;
    padding: 16px 20px;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

.progress-indicator span {
    font-weight: 600;
    color: #000000;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 0;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ffd700; /* Yellow accent */
    border-radius: 0;
    transition: width 0.3s ease;
    width: 0%;
}

/* Questions Container */
.questions-container {
    display: grid;
    gap: 32px;
}

.question-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 32px;
    transition: all 0.2s ease;
}

.question-card:hover {
    box-shadow: 0 0 0 1px #cccccc;
}

.question-card.answered {
    border-color: #ffd700; /* Yellow accent */
    background: #fffdf0;
}

.question-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.question-number {
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.question-category {
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Category-specific colors - Keep as requested */
.question-category.technology {
    background: #4299e1; /* Blue */
}

.question-category.economy {
    background: #38a169; /* Green */
}

.question-category.us-politics {
    background: #d53f8c; /* Pink */
}

.question-category.world {
    background: #dd6b20; /* Orange */
}

.question-category.other {
    background: #805ad5; /* Purple */
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 24px;
    line-height: 1.5;
}

.question-options {
    display: grid;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #cccccc;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.option-item:hover {
    border-color: #000000;
    background: #f8f8f8;
}

.option-item.selected {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.option-item input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.option-text {
    font-size: 0.95rem;
    flex: 1;
    font-weight: 400;
}

.text-input-option {
    width: 100%;
    padding: 16px;
    border: 1px solid #cccccc;
    border-radius: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
}

.text-input-option:focus {
    outline: none;
    border-color: #000000;
    box-shadow: none;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.submit-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 48px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
}

.submit-btn:hover {
    transform: none;
    box-shadow: none;
    background: #333333;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #cccccc;
    color: #666666;
}

.submit-note {
    margin-top: 16px;
    color: #666666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Results Section */
.results-container {
    background: #ffffff;
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.results-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.results-controls select {
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 0;
    background: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
}

.refresh-btn {
    background: #ffd700; /* Yellow accent */
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.refresh-btn:hover {
    background: #ffed4e;
    transform: none;
}

.results-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.results-tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.results-tab-btn:hover {
    color: #000000;
}

.results-tab-btn.active {
    color: #000000;
    border-bottom-color: #ffd700; /* Yellow accent */
    font-weight: 600;
}

.results-view {
    display: none;
}

.results-view.active {
    display: block;
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.summary-card {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.summary-card:hover {
    transform: none;
    box-shadow: 0 0 0 1px #cccccc;
}

.summary-icon {
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700; /* Yellow accent */
    font-size: 1.2rem;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
    margin-top: 4px;
}

/* Statistics Cards */
.stat-card {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 16px;
}

.stat-question {
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.4;
}

.stat-options {
    display: grid;
    gap: 8px;
}

.stat-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

.stat-option-text {
    font-size: 0.9rem;
    color: #333333;
}

.stat-option-count {
    font-weight: 600;
    color: #000000;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-size: 1rem;
}

.loading i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
    color: #ffd700; /* Yellow accent */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 0;
    width: 90%;
    max-width: 450px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #e0e0e0;
}

.modal-content.error {
    border-top: 4px solid #000000;
}

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

.modal-header h3 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 700;
}

.success-icon {
    font-size: 2.5rem;
    color: #ffd700; /* Yellow accent */
    margin-bottom: 16px;
}

.error-icon {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 16px;
}

.modal-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-btn:hover {
    background: #333333;
    transform: none;
}

/* About Us Section */
.about-container {
    background: #ffffff;
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.01em;
}

.about-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin: 32px 0 16px 0;
    border-bottom: 2px solid #ffd700; /* Yellow accent */
    padding-bottom: 8px;
}

.about-content p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Share Section */
.share-section {
    text-align: center;
    margin: 40px auto;
    position: relative;
    max-width: 300px;
}

.share-btn {
    background: #ffd700; /* Yellow accent */
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    font-family: inherit;
}

.share-btn:hover {
    transform: none;
    box-shadow: none;
    background: #ffed4e;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 8px;
    min-width: 200px;
    z-index: 100;
    border: 1px solid #e0e0e0;
}

.share-menu.hidden {
    display: none;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333333;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}

.share-option:hover {
    background: #f8f8f8;
    color: #000000;
}

.share-option i {
    width: 16px;
    color: #ffd700; /* Yellow accent */
}

.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #000000;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 0;
    box-shadow: none;
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    border: 1px solid #000000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: transparent;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    color: #666666;
    backdrop-filter: none;
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 1px solid #e0e0e0;
}

.footer a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffd700; /* Yellow accent */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header {
        margin-bottom: 40px;
    }
    
    .logo {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .survey-container,
    .results-container,
    .about-container {
        padding: 24px;
    }
    
    .user-info-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .results-controls {
        justify-content: center;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 32px 24px;
    }
    
    .countdown-section {
        margin: 24px auto;
        padding: 16px 20px;
    }
    
    .prediction-deadline {
        margin: 16px auto 0;
        padding: 12px 16px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .questions-container {
        gap: 24px;
    }
    
    .question-card {
        padding: 24px;
    }
}