* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'F37 Blanka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: rgb(255, 255, 255);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 40px;
}

.container {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 0 auto;
}

.screen {
    display: none !important;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    overflow: visible;
    animation: slideIn 0.3s ease-out;
}

.screen.active {
    display: block !important;
}

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

.content {
    padding: 40px;
    overflow: visible;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: left;
}

p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 32px;
}

/* Left align results screen text */
#results-screen h2,
#results-screen p {
    text-align: left;
}

.btn {
    background: #001149;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
}

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

.btn:disabled {
    background: #a0aec0;
    cursor: default;
    transform: none;
    pointer-events: none;
}

.btn:disabled:hover {
    background: #a0aec0;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: #001149;
    color: white;
}

.btn-primary:hover {
    background: #002266;
}

.btn-secondary {
    background: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
}

#start-quiz, #start-over, #restart-quiz {
    display: block;
    margin: 0 auto;
}

#prev-btn {
    background: white !important;
    color: #AAAAAB !important;
    border: 1px solid #AAAAAB !important;
}

#prev-btn:hover {
    background: #f8f9fa !important;
    color: #AAAAAB !important;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    align-items: center;
}

.step-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.step-bar.completed {
    background: #4ABC78;
}

.step-bar.uncompleted {
    background: #e2e8f0;
}

.deduction-counter {
    background: #EFE5FF;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    animation: slideIn 0.3s ease-out;
}

.counter-content {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
}

.counter-number {
    font-size: 2rem;
    font-weight: 600;
    color: #6F4CB0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.counter-text {
    font-size: 1rem;
    color: #6F4CB0;
    font-weight: 500;
}

.question-container {
    margin-bottom: 40px;
}

.question-subheader {
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
    margin: 12px 0 24px 0;
    text-align: left;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.option {
    padding: 16px 20px;
    border: 1px solid #AAAAAB;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    text-align: left;
}

.option:hover {
    border-color: #AAAAAB;
    background: #F2F6FF;
}

.option.selected {
    border-color: #001149;
    background: #f2f6ff;
    color: #001149;
}

.email-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-top: 16px;
}

.email-input:focus {
    outline: none;
    border-color: #001149;
}

/* Job Selection Styles */
.job-select-container {
    position: relative;
    margin-top: 16px;
}

.job-search-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #AAAAAB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-search-input:focus {
    outline: none;
    border-color: #001149;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.job-search-input::placeholder {
    color: #AAAAAB;
}

.job-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #001149;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
}

.job-dropdown::-webkit-scrollbar {
    width: 8px;
}

.job-dropdown::-webkit-scrollbar-track {
    background: #f2f6ff;
    border-radius: 0 0 12px 0;
}

.job-dropdown::-webkit-scrollbar-thumb {
    background: #001149;
    border-radius: 4px;
}

.job-dropdown::-webkit-scrollbar-thumb:hover {
    background: #f2f6ff;
}

.job-option {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f7fafc;
    font-size: 1rem;
    color: #2d3748;
    position: relative;
}

.job-option:hover {
    background-color: #f2f6ff;
    color: #AAAAAB;
    padding-left: 24px;
}

.job-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.job-option.highlighted {
    background-color: #f2f6ff;
    color: #001149;
    border-left: 3px solid #001149;
    padding-left: 21px;
}

.job-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

.job-dropdown-label {
    padding: 8px 16px 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.selected-job {
    margin-top: 12px;
    padding: 16px 20px;
    background: #f2f6ff;
    border: 1px solid #001149;
    border-radius: 8px;
    color: #001149;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-job::before {
    content: "";
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z' fill='%23001149'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.job-count {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #001149;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10000;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* Image Styling */
.logo {
    max-width: 100px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.welcome-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 24px auto;
}

/* Exit Screen Specific */
.exit-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 24px;
}

#exit-screen .content {
    text-align: center;
}

#exit-screen .content p {
    text-align: left;
}

/* Results Screen */
#results-screen {
    position: relative;
}

.deductions-container {
    text-align: left;
    margin-bottom: 32px;
    position: relative;
}

/* Response Tags */
.response-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.response-tag {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.tag-yes {
    background: #C9EED8;
    color: #001149;
}

.tag-no {
    background: #E2A2A2;
    color: #001149;
}

.upsell-block {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 280px;
    background: white;
    border: 2px solid #001149;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 17, 73, 0.15);
    z-index: 1000;
}

.upsell-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.upsell-block h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #001149;
    margin-bottom: 12px;
    text-align: center;
}

.upsell-block p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.upsell-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    padding: 16px 20px;
    line-height: 1.2;
}

.upsell-features {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.feature {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.feature::before {
    content: "";
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z' fill='%23001149'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.feature:last-child {
    margin-bottom: 0;
}

/* Results buttons container */
.results-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.job-intro {
    background: #e6fffa;
    border: 1px solid #38b2ac;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    font-style: italic;
}

.job-intro p {
    margin: 0;
    color: #234e52;
    text-align: left;
}

.deduction-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.upsell-item {
    background: #EFE5FF;
    border: 1px solid #001149;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.upsell-item .deduction-title {
    color: #001149;
    font-weight: 600;
}

.upsell-item .deduction-location {
    background: #6F4CB0;
    color: #ffffff;
    font-weight: 500;
}

.upsell-item .deduction-location-mobile {
    color: #6F4CB0;
    font-weight: 500;
}

.clickable-upsell {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-upsell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 76, 176, 0.15);
    border-color: #6F4CB0;
}

.clickable-upsell:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(111, 76, 176, 0.2);
}

.deduction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.deduction-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    flex: 1;
}

.deduction-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.deduction-location {
    color: #001149;
    font-size: 0.9rem;
    font-weight: 500;
    background: #F2F6FF;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.deduction-location-mobile {
    color: #001149;
    font-size: 0.9rem;
    font-weight: 500;
    background: #F2F6FF;
    padding: 6px 12px;
    border-radius: 4px;
    display: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        min-height: auto;
        display: block;
        padding: 20px;
    }
    
    .container {
        max-width: none;
        margin: 0;
    }
    
    .content {
        padding: 24px;
    }
    
    .question-counter {
        display: none !important;
    }
    
    #quiz-screen .logo,
    #results-screen .logo {
        margin: 0 0 20px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }
    
    .btn {
        flex: 1;
    }
    
    #prev-btn {
        flex: 0 0 auto;
        width: 48px;
        min-width: 48px;
        padding: 14px;
        background: white !important;
        color: #AAAAAB !important;
        border: 1px solid #AAAAAB !important;
    }
    
    #prev-btn:hover {
        background: #f8f9fa !important;
        color: #AAAAAB !important;
    }
    
    .options {
        gap: 8px;
    }
    
    #results-screen .upsell-block {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin: 24px 0 0 0;
        order: 1;
    }
    
    #results-screen {
        display: flex;
        flex-direction: column;
    }
    
    #results-screen .content {
        order: 0;
    }
    
    /* Hide upsell block on non-results screens on mobile */
    .upsell-block {
        display: none;
    }
    
    #results-screen .upsell-block {
        display: block;
    }
    
    .deduction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .deduction-location {
        display: none;
    }
    
    .deduction-location-mobile {
        display: inline-block;
    }
    
    /* Response tags mobile adjustments */
    .response-tags-container {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .response-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Results buttons mobile layout */
    .results-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

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

/* Smooth transitions between screens */
.screen-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Cookie Consent Banner Styles */
.fs-cc-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-family: Arial, sans-serif;
}

.fs-cc-banner__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fs-cc-banner__text {
    margin: 0;
    color: #001149;
    font-size: 14px;
    line-height: 1.4;
}

.fs-cc-banner__buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.fs-cc-banner__button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-cc-banner__button--opt-out {
    background: #f8f9fa;
    color: #001149;
    border: 1px solid #001149;
}

.fs-cc-banner__button--opt-out:hover {
    background: #e9ecef;
}

.fs-cc-banner__button--accept {
    background: #001149;
    color: white;
}

.fs-cc-banner__button--accept:hover {
    background: #000d3a;
}

@media (max-width: 480px) {
    .fs-cc-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .fs-cc-banner__buttons {
        flex-direction: column;
    }
    
    .fs-cc-banner__button {
        width: 100%;
    }
}

/* Exit Screen Styles */
.exit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.exit-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 480px) {
    body {
        padding-top: 20px;
    }
    
    .exit-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile keyboard handling */
    .job-dropdown {
        max-height: 40vh !important;
        overflow-y: auto;
        position: absolute !important;
        z-index: 1000;
        width: 100% !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .job-select-container {
        position: relative !important;
    }
}
