/* Corporate Fonts */
/*@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,900;1,400;1,500&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary-green: #72AA69;
    --primary-yellow: #FEC432;
    --primary-yellow-darken:#F3AE00;
    --medium-grey: #D9D9D9;
    --dark-text: #202020;
    --light-text: #8F8F8F;
    --white: #ffffff;
    --border-grey: #e5e7eb;
    --link-color:var(--dark-text);

    --border-color-default:#CCCCCC;
    --border-color-dark:#000;

    --border-radius-circle:999px;
    --border-radius-md:10px;
    --border-radius-xs:3px;

    --surface-disabled:#E3E3E3;
    --surface-light:#f5f5f5;

    --btn-primary:#B16AFF;
    --btn-primary-hover:#9C44FF;

    --input-shadow:2px 2px 4px 0 rgba(0, 0, 0, 0.1);
    
    --font-family-headings:"Nunito", sans-serif;
    --font-family-body:'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    /*background: var(--surface-light);*/
    background-color:rgba(245,235,211);
    min-height: 100vh;
    letter-spacing:-0.25px;
}

h1 {
    font-family:var(--font-family-headings);
    font-weight:900;
    font-size:36px;
    line-height:40px;
    letter-spacing:0.5px;
    color:var(--dark-text);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    /*background: var(--surface-light);*/
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
/* Main content */
.main-content {
    flex: 1;
    /* padding: 24px; */
    background: transparent;
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
}

.message-success {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.message-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.card-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.5;
}

.form-error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.form-help {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-family-body);
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-link {
    font-size: 24px;
    font-weight: 400 !important;
    padding: 0;
    box-shadow: unset;
    border-radius: unset;
    background-color: transparent;
    min-height: unset;
    color: #202020;
}

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

.question-header {
    margin-bottom: 24px;
}

.question-title {
    font-family:var(--font-family-headings);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 32px;
    margin-bottom: 8px;
}

.question-meta {
    font-family: 'Uniform Pro Con Med', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-content {
    font-size: 20px;
    color: #374151;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Code input */
.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.code-input {
    width:100%;
    height: 96px;
    border: 1px solid var(--border-color-default);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-family: var(--font-family-body);
    font-size: 32px;
    font-weight: 500;
    background-color: white;
    transition: all 0.2s ease;
    box-shadow:var(--input-shadow);
}

.code-input:focus {
    border-color: #72AA69;
    outline: none;
    box-shadow: 0 0 0 4px rgba(114, 170, 105, 0.1);
    transform: scale(1.05);
}

.code-input.filled {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #166534;
}

/* File upload */
.file-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: #72AA69;
    background: #f0f9f0;
    transform: translateY(-2px);
}

.file-upload-area.drag-over {
    border-color: #72AA69;
    background: #e8f5e8;
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.file-upload-text {
    font-family: 'Uniform Pro Xcon Ult', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-upload-hint {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

/* Footer */
.footer {
    display:none;
    padding: 24px;
    background: transparent;
    border-top: none;
}

.footer-content {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-link {
    color: white;
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Audio recorder */
.audio-recorder {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.audio-recorder-button {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.audio-recorder-button.recording {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    animation: pulse 1.5s infinite;
    transform: scale(1.1);
}

.audio-recorder-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1.1); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.15); box-shadow: 0 8px 40px rgba(239, 68, 68, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); }
}

.audio-recorder-time {
    font-family: 'Uniform Pro Xcon Ult', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 8px;
}

.audio-recorder-hint {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}



.btn-close {
    width:58px;height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border-color-dark);
    border-radius:var(--border-radius-circle);
    
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #72AA69;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .main-content {
        padding:0.5rem;
    }
    
    .card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .code-input-container {
        gap: 8px;
    }
    
    .code-input {
        width: 48px;
        height: 56px;
        font-size: 24px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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

.slide-up {
    animation: slideUp 0.4s ease-out;
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.code-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(114, 170, 105, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #374151;
    }
}

/* Homepage Hero Section */
.homepage-hero {
    position: relative;
    width: 100%;
    height:100vh;
    min-height:860px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background-image:url('/static/images/hero-illustration-clear.webp');
    background-size:cover;
    background-position:top right;
    background-repeat:no-repeat;
}
.hero-cta-overlay {
    /*position: absolute;
    bottom: 12px;
    left:0;
    padding:0 16px;
    z-index: 10;
    width:100%;*/
    z-index:10;
    padding:0 16px;
    position:relative;
    top:610px;
}
.hero-title {
    display:flex;
    gap:0.5rem;
    align-items:center;
    justify-content:center;
    font-family:var(--font-family-headings);
    font-size:24px;
    font-weight:900;
    color:#000;
}

.hero-title__text {
    font-family:var(--font-family-headings);
    font-size:32px;
    font-weight:800;
    line-height:1.1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    column-gap:1rem;
    flex-wrap:wrap;
    text-align:center;
    gap:1rem;
    text-shadow:3px 3px 2px #ece2c8;
}
.herot-title__img {
    max-height:95px;
}
@media(max-width:400px) {
    .herot-title__img {
        max-height:80px;
    }
}
.hero-btn {
    display:flex;
    justify-content:center;
    margin:16px 0 8px;
}
.btn-hero {
    width:100%;
    height:69px;
    padding:2px;
    color:var(--white);
    background-color:#000;
    border-radius:var(--border-radius-circle);
    font-family: var(--font-family-body);
    font-size:24px;
    font-weight:500;
    border:4px solid #000;
    background-clip:content-box;
}

.btn-hero:hover {
    animation: pulse 0.6s ease-in-out;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.hero-partner-logo {
    display:block;
    max-width:100%;
    margin: 0 auto;
}

/* Phone Verification Card */
.phone-verification-card {
    background: white;
    border-radius: 0;
    padding:2rem;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.phone-verification-title {
    font-family: var(--font-family-headings);
    font-size: 33px;
    font-weight: 900;
    color:var(--dark-text);;
    line-height: 40px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing:0.5px;
}

.phone-verification-subtitle {
    font-family: var(--font-family-body);
    font-size: 22px;
    font-weight: 500;
    color:var(--dark-text);
    line-height: 32px;
    margin-bottom: 32px;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    margin-bottom:24px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background:var(--surface-disabled);
    border: 1px solid var(--border-color-default);
    border-top-left-radius: var(--border-radius-circle);
    border-bottom-left-radius: var(--border-radius-circle);
    border-right-width:0;
    font-family: var(--font-family-body);
    font-weight: 400;
    color: var(--light-text);
    font-size: 24px;
    line-height: 32px;
    justify-content: center;
}

.latvia-flag {
    width: 22px;
    height: 22px;
    border-radius: var(--border-radius-circle);
    background: linear-gradient(to bottom, #9e1b32 33%, white 33%, white 66%, #9e1b32 66%);
    flex-shrink: 0;
}

.phone-number-input {
    width:100%;
    padding: 16px 24px;
    border: 1px solid var(--border-color-default);
    border-top-right-radius:var(--border-radius-circle);
    border-bottom-right-radius:var(--border-radius-circle);
    border-left-width:0;
    font-family: var(--font-family-body);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    background: white;
    transition: all 0.2s ease;
}
.phone-number-input::placeholder {
    font-weight:400;
}

.phone-number-input:focus {
    outline: none;
    border-color: #72AA69;
    box-shadow: 0 0 0 4px rgba(114, 170, 105, 0.1);
}

/* Terms Checkbox */
.terms-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    text-align: left;
}

/*
.terms-checkbox {
    width: 28px;
    height: 28px;
    accent-color: var(--primary-yellow);
    flex-shrink: 0;    
}
*/

.terms-checkbox {
    flex:1 0 auto;
    width: 28px;
    height: 28px;
    accent-color: var(--btn-primary);
    flex-shrink: 0;
    /*zoom: 1.5;*/
}

.terms-label {
    font-family:var(--font-family-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.5;
}

.terms-link {
    color:var(--link-color);
    text-decoration: underline;
}

.terms-link:hover {
    color: #333333;
}

/* Continue Button for Phone Page */
.btn-continue {
    background:var(--btn-primary);
    color: var(--dark-text);
    font-family:var(--font-family-body);
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    padding: 12px 24px;
    border-radius: var(--border-radius-circle);
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    width: 100%;
    transition:background-color 0.3s ease-in-out;
}

.btn-continue:hover {
    background-color:var(--btn-primary-hover);
}

.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background-color: #d1d5db;
}



/* Mobile adjustments for phone verification */
@media (max-width: 480px) {
    .phone-verification-card {
        min-height:calc(100vh - 1rem);
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
    }
    
    .terms-checkbox-group {
        margin-top:auto;
    }
}

/* Verification Steps */
.verification-step {
    transition: opacity 0.3s ease;
}
@media(max-width:480px) {
    .verification-step {
        display:flex;
        flex-direction:column;
        min-height:calc(100vh - 4rem);
    }
}

/* Phone Illustration */
.phone-illustration {
    margin-bottom:16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-illustration-small {
    width: 200px;
    height: 120px;
    margin: 0 auto 24px;
}

.phone-illustration-img {
    width: 376px;
    height: 240px;
    display: block;
    object-fit: contain;
}

.phone-illustration-small .phone-illustration-img {
    width: 200px;
    height: 120px;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-family: 'Uniform Pro Con Med', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

/* Question Page Design */
.question-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
}

/* Question Card */
.question-card {
    background: white;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 20px;
}
.question-card--rules {
    text-align:left;
}

.rules-title {
    margin-bottom:32px;
    text-align:left;
}
.rules-list {
    display:flex;
    flex-direction:column;
    gap:16px;
    margin:0 0 32px;
    padding:0;
    list-style:none;
}
.rule-item {
    display:flex;
    gap:16px;
    align-items:flex-start;
    text-align:left;
}
.rule-number {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:32px;height:32px;
    background-color:#FFA504;
    color:var(--white);
    font-size:18px;
    font-weight:700;
    border-radius:var(--border-radius-circle);
}
.rule-item p {
    margin:0;
    font-size:18px;
    
}

    
table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
}

thead tr {
    display: none;
}

tr {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
}

td {
    border: none;
    position: relative;
    padding-left: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;         
    word-break: break-word;      
    hyphens: auto;               
}

td:before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: normal;         
    word-break: break-word;
    font-weight:600;
}

/* Question Page Progress Indicator */
.progress-indicator {
    display: flex;
    width: 100%;
    margin-bottom: 16px;
    gap: 8px;
}

.progress-dot {
    width:100%;
    height: 8px;
    border-radius: var(--border-radius-xs);
}

.current_dot {
    background-color: transparent;
    border: 1px solid var(--primary-yellow);
}

.submitted_dot {
    background-color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.unsubmitted_dot {
    background-color: var(--medium-grey);
    border: 2px solid var(--medium-grey);
}

/* Skip Task Link */
.skip-task-container {
    font-family: var(--font-family-body);
    margin-bottom: 24px;
    text-align: center;
    color:var(--dark-text);
    font-size: 24px;
    font-weight: 500;
}

.skip-task-link {
    display:inline-flex;
    align-items:center;
    gap:0.5rem;    
    color:#FFA504;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Question Illustration */
.question-illustration {
    width: 100%;
    max-width: 376px;
    height: auto;
    margin: 0 auto 32px;
}

.question-illustration svg {
    display: block;
    width: 100%;
    height: auto;
    max-height:190px;
}

/* Question Title */
.question-title {
    font-family: var(--font-family-headings);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 32px;
    margin-bottom: 16px;
}

/* Question Content */
.question-content {
    font-family: var(--font-family-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-text);
    line-height: 32px;

}

/* Answer Container */
.answer-container {
    margin-bottom: 16px;
}

/* Text Input */
.answer-input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--border-color-default);
    border-radius: 16px;
    font-family: var(--font-family-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    background: white;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 120px;
}

.answer-input:focus {
    outline: none;
    border-color: #72AA69;
    box-shadow: 0 0 0 4px rgba(114, 170, 105, 0.1);
}

/* Upload Button */
.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 24px;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family-headings);
    font-size: 24px;
    font-weight: 500;
    color: #6b7280;
}

.upload-button:hover {
    border-color: #72AA69;
    background: #f0f9f0;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 32px;
}

.file-input {
    display: none;
}

.upload-button-content {
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:center;
    width:100%;
    height:58px;
    padding:0 24px;
    border:1px solid var(--border-color-dark);
    color:var(--dark-text);
    font-size:24px;
    font-weight:600;
    line-height:1;
    border-radius:var(--border-radius-circle);
    cursor:pointer;
}
/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Uniform Pro Con Med', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    background: #FFD44C;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #ffca28;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #E0E0E0;
    color: #9E9E9E;
}
/* Audio Recording UI Styles */
.audio-answer-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items like canvas, buttons */   
}

#audioRecordingUI,
#audioPlaybackContainer {
    width:100%;
}
#audioPlaybackContainer {
    display:flex;
    gap:0.5rem;
}

.record-audio-btn,
.stop-audio-btn,
.rerecord-audio-btn {
    width:100%;
    padding:0 24px;
    border: none;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    font-size: 24px;
    display:flex;
    height:58px;
    line-height:1;
    align-items: center;
    justify-content:center;
    gap: 8px;
    border:2px solid var(--border-color-dark);
    font-weight:600;
    background-color:var(--white);
    color: var(--dark-text);
}

.btn-audio-play {
    display: flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width: 58px;
    height: 58px;
    border: 2px solid var(--border-color-dark);
    border-radius: var(--border-radius-circle);
    background-color: var(--white);
}
.btn-audio-play img {
    width:24px;
    height:24px;
}
.btn-audio-play .ico-stop {
    display:none;
}
.btn-audio-play--pause .ico-stop {
    display:block;
}
.btn-audio-play--pause .ico-play {
    display:none;
}

.audio-instructions {
    margin-bottom:16px;
    font-size:18px;
    color: var(--light-text);
    text-align: center;
}

/* Ensure file input is truly hidden for audio questions if not already handled by HTML structure */
.question-form[data-question-type="audio"] .file-input,
.question-form[data-question-type="audio"] .upload-button-label {
    display: none !important; 
}

.question-form .submit-btn {
    width: 100%;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Uniform Pro Con Med', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    background: #FFD44C;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-form .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #ffca28;
}

.question-form .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #E0E0E0;
    color: #9E9E9E;
}

#recordingTimerDisplay {
    font-family: var(--font-family-headings);
    font-size: 1rem; 
    color: var(--light-text, #6b7280);
    margin-top: 8px;
    margin-bottom: 8px; 
    height: 20px; 
    text-align: center;
}

/* Success message popover */
.form-success {
    position: fixed;
    top: 32px; 
    left: 32px; 
    right: 32px; 
    width: auto; 
    transform: translateY(-150%); 
    background-color: #C8E6C9; 
    color: #1f2937; 
    padding: 14px 20px; 
    border-radius: 12px; 
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 0.4s;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0); 
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
}

/* Question Card Specifics */
.question-card {
    background: white;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 20px;
} 

.terms-content {
    position:relative;
}
.terms-content h3,
.terms-content p {
    margin-bottom:16px;
}
.terms-content ol,
.terms-content ul {
    margin-left:1rem;
    margin-bottom:1rem;
}


/* Mobile Responsive */
@media (max-width: 480px) {
    #phoneForm {
        display:flex;
        flex-direction:column;
        flex:1 1 100%;
    }
    .question-page {
        padding:0;
    }
    .terms-checkbox-group {
        margin-top:auto;
    }
    .question-card {
        display:flex;
        flex-direction:column;
        height:calc(100vh - 1rem);
        margin:0;
        padding: 24px;
        overflow:auto;
    }
    
    .question-illustration {
        width: 100%;
        height: auto;
        margin-bottom: 24px;
    }
    
    .question-illustration svg {
        max-width: 100%;
        height: auto;
    }
    
    .question-form {
        margin-top:auto;
    }
}

.complete-text p {
    margin-top:1rem;
    font-size:24px;
    line-height:1.3;
}

/* Video hero */
.brand {
    position:absolute;
    top:30px;right:26px;
    z-index:10;        
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05), 2px 0px 4px rgba(0, 0, 0, 0.05);
    border-radius: 220px;
}

.hero-video {
    display:block;
    max-width:100%;
    border-radius:24px;
    }
.hero-illustration {
    min-height:840px;
}
.homepage-hero .hero-illustration  img {
    max-width:100%;
}

/* Modal */
.modal {
    position:fixed;
    top:0;left:50%;
    width:100%;height:100%;
    background-color:#fff;
    z-index:99;
    overflow:auto;
    transition:opacity 0.3s ease-in;
    max-width: 480px;
    transform: translateX(-50%);
    border-radius: 0;
    scrollbar-width: thin;
}
.modal.open {
    opacity:1;
    display:block;
}
.modal.close {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display:none;
}
.modal-header,
.modal-body {
    padding:16px;
}
.modal-header {
    position:sticky;
    top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0;
    background-color:#fff;
    z-index:3;
}

.modal-body h3 {
    margin-top:1.5rem;
}
.modal-body h3:first-child {
    margin-top:0;
}
.modal-body ol,
.modal-body ul {
    margin-left:1.5rem;
    margin-top:1rem;
}
.modal-body p {
    margin-top:1rem;
}

/* Added Waveform and Audio Recording Styles */
.waveform {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;    
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px; /* Adjust height as needed */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    border-bottom-left-radius:24px;
    border-bottom-right-radius:24px;
    overflow:hidden;
}

.recording-active .waveform {
    opacity: 1;
}

.waveform .bar {
    flex: 1;
    max-width: 12px;
    min-width: 4px;
    background-color: var(--success-green, rgba(114, 170, 105, 0.8));
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    transition: height 0.1s ease-out;
    min-height: 5px;
    margin: 0 1px;
}

.audio-actions-group {
    width:100%;
    display: none;
    z-index:3;
}

.audio-actions-group.active {
    display: block;
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.button-group .btn {
    width: auto;
    flex-grow: 1;
}

.button-group .btn.icon-only {
    flex-grow: 0;
    width: 58px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn .ico-play,
.btn.playing .ico-stop {
    display: inline-block;
}

.btn .ico-stop,
.btn.playing .ico-play {
    display: none;
}

.audio-instructions {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 15px;
    text-align: center;
}

#recordingTimerDisplay {
    font-size: 1rem;
    color: var(--light-text);
    margin-top: 5px;
    text-align: center;
}

.record-audio-btn .ico,
.rerecord-audio-btn .ico {
    margin-right: 8px;
}

.btn-audio-play {
    cursor: pointer;
}

/* --- Messages & Banners --- */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
}

.sun-energy {
    margin:24px 0;
    padding: 32px;
    background-color: #FFF8E6;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 100%;
    max-width: 420px;
    pointer-events: none;
}

.toast-message {
    background-color: #2c3e50;
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: toastSlideIn 0.3s ease-out, fadeOut 0.5s ease-in-out 2.5s forwards;
    width: 100%;
}

.toast-message.success {
    background-color: #2ecc71; /* Green */
}

.toast-message.info {
    background-color: #3498db; /* Blue */
}

.toast-message.error {
    background-color: #e74c3c; /* Red */
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.heropage-external-cta {
    position:absolute;
    top:30px;right:30px;
    max-width:50%;
    text-align:right;
    font-weight:900;
    /*font-family:var(--font-family-headings);*/
    font-size:18px;
    line-height:1.3;
    color:#000;
    z-index:3;
}
.btn-sm {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:22px;
    border-radius:var(--border-radius-circle);
    border:1px solid #000;
    background-color:rgba(255,201,52, 0.8);
    font-size:14px;
    margin-top:0.5rem;
    padding:0 20px;
    font-weight:400;
    color:#000;
    text-decoration:none;
    line-height:1;
    transition:all 0.3s ease-in;    
}

.btn-sm:hover {
    transition:all 0.3s ease-in;
    color:rgb(255, 201, 52);
    background-color:rgba(0, 0, 0, 0.8);
}

@media(max-width:340px) {
    .heropage-external-cta {
        right:1rem;
        top:1rem;
        font-size:14px;
        font-weight:500;
    }
}

.tickets-earned {
    display:inline-flex;
    width:78px;height:78px;
    margin-top:1rem;
    background-color:var(--primary-yellow);
    color:var(--dark-text);
    font-size:32px;
    line-height:1;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:900;
}

.frc-captcha {
    margin-bottom:1rem;
}