* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    word-wrap: break-word;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    header h1 {
        font-size: 2em;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
}

/* Survey Cards Grid */
.surveys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.survey-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.survey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .surveys-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .survey-card {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .survey-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .surveys-grid {
        gap: 15px;
        margin-top: 20px;
    }
    
    .survey-card {
        padding: 25px 15px;
        border-radius: 15px;
    }
}

.survey-card-1 {
    border-top: 5px solid #ff6b6b;
}

.survey-card-2 {
    border-top: 5px solid #4ecdc4;
}

.survey-card-3 {
    border-top: 5px solid #ffe66d;
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    text-align: center;
}

.survey-card h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

.card-subtitle {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.card-description {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    text-align: center;
    margin-bottom: 20px;
}

.card-footer {
    text-align: center;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: auto;
}

@media (max-width: 768px) {
    .card-icon {
        font-size: 3em;
        margin-bottom: 15px;
    }
    
    .survey-card h2 {
        font-size: 1.5em;
    }
    
    .card-subtitle {
        font-size: 0.85em;
    }
    
    .card-description {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    
    .card-footer {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .card-icon {
        font-size: 2.5em;
        margin-bottom: 12px;
    }
    
    .survey-card h2 {
        font-size: 1.3em;
    }
    
    .card-subtitle {
        font-size: 0.8em;
    }
    
    .card-description {
        font-size: 0.9em;
        line-height: 1.5;
    }
}

/* Survey Form */
.survey-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .survey-form {
        padding: 25px 20px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .survey-form {
        padding: 20px 15px;
        border-radius: 12px;
    }
}

.question-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.question-block:last-of-type {
    border-bottom: none;
}

.question-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.question-number {
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px; /* Touch-friendly target */
}

.radio-group label:hover {
    background-color: #f5f5f5;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .question-block {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .question-label {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .radio-group label {
        padding: 10px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .question-block {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .question-label {
        font-size: 0.95em;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .question-number {
        margin-right: 5px;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .radio-group label {
        padding: 12px 8px;
        font-size: 0.9em;
        min-height: 48px; /* Larger touch target on mobile */
    }
    
    .radio-group input[type="radio"] {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.submit-btn, .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-height: 48px; /* Touch-friendly */
}

.submit-btn:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Touch-friendly */
}

.cancel-btn:hover {
    background: #d0d0d0;
}

@media (max-width: 768px) {
    .form-actions {
        margin-top: 30px;
        gap: 12px;
    }
    
    .submit-btn, .btn-primary, .cancel-btn {
        padding: 12px 30px;
        font-size: 1em;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .form-actions {
        margin-top: 25px;
        gap: 10px;
        flex-direction: column;
    }
    
    .submit-btn, .btn-primary, .cancel-btn {
        padding: 14px 25px;
        font-size: 0.95em;
        width: 100%;
        border-radius: 25px;
    }
}

/* Results Page */
.results-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.score-display {
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.score-number {
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1;
}

.score-max {
    font-size: 1.2em;
    opacity: 0.9;
}

.score-label {
    font-size: 1.5em;
    font-weight: 600;
    color: #667eea;
}

@media (max-width: 768px) {
    .results-container {
        padding: 35px 25px;
    }
    
    .score-display {
        margin-bottom: 30px;
    }
    
    .score-circle {
        width: 170px;
        height: 170px;
    }
    
    .score-number {
        font-size: 3em;
    }
    
    .score-max {
        font-size: 1.1em;
    }
    
    .score-label {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .results-container {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .score-display {
        margin-bottom: 25px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .score-number {
        font-size: 2.5em;
    }
    
    .score-max {
        font-size: 1em;
    }
    
    .score-label {
        font-size: 1.1em;
    }
}

.message-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.message-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.message-box p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1em;
}

.early-access-box {
    background: linear-gradient(135deg, #ffe66d 0%, #ff6b6b 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: left;
}

.early-access-box h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.early-access-box p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.95;
}

.early-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #ff6b6b;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
}

.early-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .message-box {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .message-box h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .message-box p {
        font-size: 1em;
        line-height: 1.7;
    }
    
    .early-access-box {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .early-access-box h3 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .early-access-box p {
        font-size: 0.95em;
        margin-bottom: 18px;
    }
    
    .early-access-btn {
        padding: 10px 25px;
        font-size: 0.95em;
        width: 100%;
    }
    
    .actions {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .message-box {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .message-box h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .message-box p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    .early-access-box {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .early-access-box h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .early-access-box p {
        font-size: 0.9em;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .early-access-btn {
        padding: 12px 20px;
        font-size: 0.9em;
        width: 100%;
    }
    
    .actions {
        margin-top: 20px;
    }
    
    .actions .btn-primary {
        width: 100%;
    }
}

/* Consent Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.modal-show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 3px solid #667eea;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
}

.modal-description {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.5em;
        margin-bottom: 12px;
    }
    
    .modal-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        width: 95%;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .modal-content h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .modal-description {
        font-size: 0.9em;
        margin-bottom: 20px;
        line-height: 1.5;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="email"]:invalid {
    border-color: #ff6b6b;
}

.form-group input[type="email"]:valid {
    border-color: #4ecdc4;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.6;
    min-height: 44px; /* Touch-friendly */
    padding: 5px 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.checkbox-label input[type="checkbox"]:required:not(:checked) {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    border-radius: 3px;
}

.checkbox-label span {
    color: #555;
    font-size: 0.95em;
}

@media (max-width: 480px) {
    .checkbox-label {
        min-height: 48px;
        padding: 8px 0;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 15px;
        margin-top: 2px;
    }
    
    .checkbox-label span {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .form-group input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 15px;
    }
}

.required {
    color: #ff6b6b;
    font-weight: bold;
}

.modal-actions {
    margin-top: 30px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .container {
        width: 100%;
    }
    
    /* Prevent text selection on buttons for better mobile UX */
    .submit-btn, .btn-primary, .cancel-btn, .early-access-btn {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Improve scrolling on mobile */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}
