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

:root {
    --vh: 1vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    /* Fix iPad Safari viewport issues */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Prevent iOS Safari from adding padding */
    -webkit-overflow-scrolling: touch;
}

#app {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    position: relative;
}

/* Screen management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* Fix iPad Safari centering */
    box-sizing: border-box;
    /* Ensure proper viewport handling */
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 1200px;
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.college-logo-top-left {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.college-logo-image {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.ohg-logo-top-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.ohg-logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
}



.welcome-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    line-height: 1.1;
    text-align: center;
}

.welcome-content p {
    font-size: 1.5rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
}

.welcome-instructions {
    margin-bottom: 3rem;
}

.welcome-instructions p {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
}

.welcome-instructions p:last-child {
    margin-bottom: 0;
}

.play-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 280px;
    justify-content: center;
    margin: 0 auto;
}

.play-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.play-button:active {
    transform: translateY(0);
}

.play-button svg {
    width: 28px;
    height: 28px;
}

/* Video Screens */
.video-container {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Video Loading Indicator */
.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 20px;
    z-index: 10;
}

.video-loading-overlay:not(.hidden) {
    display: flex;
}

.video-loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.video-loading-overlay p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    /* Remove any default borders or outlines */
    border: none;
    outline: none;
    /* Prevent fullscreen and maintain aspect ratio */
    -webkit-playsinline: true;
    -moz-playsinline: true;
    -ms-playsinline: true;
}

/* Additional CSS to hide video controls across all browsers */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button {
    display: none !important;
}

/* Hide controls in Firefox */
video::-moz-media-controls {
    display: none !important;
}

/* Hide controls in Edge/IE */
video::-ms-media-controls {
    display: none !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
}

.video-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.video-overlay p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}



/* Survey Screen */
.survey-container {
    width: 100%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    max-height: 90vh;
    overflow-y: auto;
}

.survey-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.survey-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.circular-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle-fill {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#ffffff 0deg, #ffffff 0deg, #2a2a2a 0deg);
    transition: all 0.5s ease;
    z-index: 1;
}

.progress-circle-fill::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    z-index: 2;
}

.progress-text {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

.question-display {
    margin-bottom: 3rem;
}

.question-category {
    font-size: 1.1rem;
    color: #a1a1aa;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.survey-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-button {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-button:hover:not(:disabled) {
    border-color: #ffffff;
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-button:active:not(:disabled) {
    transform: translateY(0);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #2a2a2a;
}

.prev-button {
    background: #3a3a3a;
}

.next-button {
    background: #ffffff;
    color: #0a0a0a;
}

.next-button:hover:not(:disabled) {
    background: #f4f4f5;
}

.submit-survey-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.submit-survey-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.submit-survey-button:active {
    transform: translateY(0);
}

/* Survey options styling */
#survey-options-container {
    display: grid;
    gap: 1rem;
}

.survey-option {
    background: #3a3a3a;
    border: 2px solid #4a4a4a;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    /* Prevent iOS Safari highlighting issues */
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

.survey-option:hover {
    border-color: #ffffff;
    background: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.survey-option:active {
    transform: translateY(0);
}

.survey-option:focus {
    outline: none;
    border-color: #4a4a4a;
    background: #3a3a3a;
}

.survey-option.selected {
    border-color: #ffffff;
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Ensure no special styling for last option */
.survey-option:last-child {
    border-color: #4a4a4a;
    background: #3a3a3a;
    color: #ffffff;
}

.survey-option:last-child:not(.selected) {
    border-color: #4a4a4a;
    background: #3a3a3a;
    color: #ffffff;
}



.progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 1rem;
    color: #a1a1aa;
    font-weight: 500;
}

.question-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.options-container {
    display: grid;
    gap: 1rem;
}

.option-button {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.option-button:hover {
    border-color: #ffffff;
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.option-button:active {
    transform: translateY(0);
}

/* Risk Assessment Screen */
.risk-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.risk-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.risk-result {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 2px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.risk-level {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.risk-description {
    font-size: 1.5rem;
    color: #a1a1aa;
    font-weight: 500;
}

.risk-legend {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.risk-legend h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 12px;
}

.legend-color {
    font-size: 2rem;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
}

.legend-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.legend-text p {
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0;
}

.continue-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.continue-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.continue-button:active {
    transform: translateY(0);
}

/* Transition Message Screen */
.transition-message-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.transition-message {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    opacity: 1;
    /* Temporarily remove animation to test visibility */
    /* animation: fadeInOut 3s ease-in-out forwards; */
    /* Ensure text is visible during development */
    background: transparent;
    padding: 2rem;
    border-radius: 12px;
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Phone Collection Screen */
.phone-container {
    text-align: center;
    max-width: 600px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
}

.phone-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.phone-subtitle {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.phone-form {
    text-align: left;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: #a1a1aa;
}

.phone-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-phone-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.submit-phone-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.submit-phone-button:active {
    transform: translateY(0);
}

/* Error Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.dialog-container {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.dialog-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.dialog-body p {
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dialog-body p:last-child {
    margin-bottom: 2rem;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.primary-button:active {
    transform: translateY(0);
}

/* QR Code Screen */
.qr-container {
    text-align: center;
    max-width: 600px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
}

.qr-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.qr-code {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.qr-code img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.qr-container p {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.completion-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.secondary-button {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #3a3a3a;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.secondary-button:hover {
    border-color: #ffffff;
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.secondary-button:active {
    transform: translateY(0);
}

.restart-button {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
}

.restart-button:hover {
    transform: translateY(-2px);
    background: #f4f4f5;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Override video navigation for extra small mobile - position at bottom of screen */
    .video-navigation {
        position: fixed !important;
        bottom: 1.5rem !important;
        left: 0 !important;
        right: 0 !important;
        display: flex;
        justify-content: space-between;
        padding: 0 1.5rem;
        pointer-events: auto;
        z-index: 100;
    }
    
    .welcome-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .welcome-content p {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .welcome-instructions p {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .welcome-instructions {
        margin-bottom: 1.5rem;
    }
    
    .play-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 180px;
        min-height: 44px;
    }
    
    .college-logo-image {
        height: 40px;
    }
    
    .ohg-logo-top-right {
        width: 60px;
        height: 60px;
    }
    
    .ohg-logo-image {
        width: 40px;
        height: 40px;
    }
    
    .screen {
        padding: 0.5rem;
    }
    
    .survey-container {
        padding: 0.75rem;
        margin: 0.125rem;
    }
    
    .survey-title {
        font-size: 1.5rem;
    }
    
    .survey-header {
        margin-bottom: 0.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .survey-option {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        min-height: 44px;
        margin-bottom: 0.5rem;
    }
    
    .nav-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: 90px;
        min-height: 40px;
    }
    
    .submit-survey-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 180px;
        min-height: 44px;
    }
    
    .progress-circle {
        width: 45px;
        height: 45px;
    }
    
    .progress-circle-fill {
        width: 45px;
        height: 45px;
    }
    
    .progress-circle-fill::before {
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
    }
    
    .progress-text {
        font-size: 0.65rem;
    }
    
    .video-container {
        margin: 0.125rem;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .video-loading-overlay p {
        font-size: 0.9rem;
    }
    
    .play-again-icon-button {
        width: 35px;
        height: 35px;
    }
    
    .replay-video-button {
        padding: 0.4rem 0.6rem 0.4rem 0.4rem;
        font-size: 0.8rem;
        min-width: 100px;
        min-height: 32px;
        gap: 0.3rem;
    }
    
    .replay-video-button svg {
        width: 14px;
        height: 14px;
    }
    
    .video-navigation .nav-button {
        width: 90px;
        height: 40px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .qr-container {
        padding: 1.5rem 1rem;
        margin: 0.125rem;
    }
    
    .qr-container h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .qr-code img {
        max-width: 180px;
    }
    
    .qr-container p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .secondary-button,
    .restart-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: 180px;
        min-height: 40px;
    }
    
    .risk-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .risk-result {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        min-height: 120px;
    }
    
    .risk-level {
        font-size: 1.5rem;
    }
    
    .continue-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 180px;
        min-height: 44px;
    }
    
    .transition-message {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    
    /* Mobile phone collection screen */
    .phone-container {
        padding: 1.5rem 1rem;
        margin: 0.125rem;
    }
    
    .phone-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .phone-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .phone-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-phone-button,
    .secondary-button,
    .skip-phone-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 180px;
        min-height: 44px;
    }
    
    .skip-phone-button {
        margin-left: 0;
    }
    
    .skip-video-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-width: 100px;
    }
    
    /* Mobile error dialog */
    .dialog-container {
        padding: 1.5rem 1rem;
        margin: 0.125rem;
    }
    
    .dialog-header h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .dialog-body p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .dialog-body p:last-child {
        margin-bottom: 1.5rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
    }
    
    .primary-button,
    .secondary-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 180px;
        min-height: 44px;
    }
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Override video navigation for mobile - position at bottom of screen */
    .video-navigation {
        position: fixed !important;
        bottom: 2rem !important;
        left: 0 !important;
        right: 0 !important;
        display: flex;
        justify-content: space-between;
        padding: 0 2rem;
        pointer-events: auto;
        z-index: 100;
    }
    
    /* Mobile typography */
    .welcome-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }
    
    .welcome-content p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-instructions p {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-instructions {
        margin-bottom: 2rem;
    }
    
    /* Mobile button sizing */
    .play-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        min-height: 48px;
    }
    
    /* Mobile logo adjustments */
    .college-logo-top-left {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .college-logo-image {
        height: 50px;
    }
    
    .ohg-logo-top-right {
        top: 0.75rem;
        right: 0.75rem;
        width: 70px;
        height: 70px;
    }
    
    .ohg-logo-image {
        width: 50px;
        height: 50px;
    }
    
    /* Mobile screen padding */
    .screen {
        padding: 0.75rem;
    }
    
    /* Mobile survey container */
    .survey-container {
        padding: 1.25rem;
        margin: 0.25rem;
        max-height: 95vh;
    }
    
    .survey-title {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .survey-header {
        margin-bottom: 0.5rem;
    }
    
    .question-text {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .survey-option {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .nav-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-width: 100px;
        min-height: 44px;
    }
    
    .submit-survey-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        min-height: 48px;
    }
    
    /* Mobile progress circle */
    .progress-circle {
        width: 55px;
        height: 55px;
    }
    
    .progress-circle-fill {
        width: 55px;
        height: 55px;
    }
    
    .progress-circle-fill::before {
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
    }
    
    .progress-text {
        font-size: 0.7rem;
    }
    
    /* Mobile video container */
    .video-container {
        max-width: 100%;
        aspect-ratio: 16/9;
        margin: 0.25rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .video-loading-overlay p {
        font-size: 1rem;
    }
    
    /* Mobile video controls */
    .play-again-icon-button {
        width: 40px;
        height: 40px;
    }
    
    .replay-video-button {
        padding: 0.5rem 0.75rem 0.5rem 0.5rem;
        font-size: 0.85rem;
        min-width: 110px;
        min-height: 36px;
        gap: 0.35rem;
    }
    
    .replay-video-button svg {
        width: 15px;
        height: 15px;
    }
    
    .video-navigation .nav-button {
        width: 100px;
        height: 44px;
        font-size: 0.85rem;
        padding: 0.625rem 0.875rem;
    }
    
    /* Mobile QR container */
    .qr-container {
        padding: 1.75rem 1.25rem;
        margin: 0.25rem;
    }
    
    .qr-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .qr-code img {
        max-width: 220px;
    }
    
    .qr-container p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile completion buttons */
    .completion-buttons {
        gap: 0.5rem;
    }
    
    .secondary-button,
    .restart-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-width: 200px;
        min-height: 44px;
    }
    
    /* Mobile risk assessment */
    .risk-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .risk-result {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.5rem;
        min-height: 150px;
    }
    
    .risk-level {
        font-size: 1.75rem;
    }
    
    .continue-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        min-height: 48px;
    }
    
    /* Mobile phone collection screen */
    .phone-container {
        padding: 1.75rem 1.25rem;
        margin: 0.25rem;
    }
    
    .phone-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .phone-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    .form-group input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .phone-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-phone-button,
    .secondary-button,
    .skip-phone-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-width: 200px;
        min-height: 48px;
    }
    
    .skip-phone-button {
        margin-left: 0;
    }
    
    .skip-video-button {
        padding: 0.875rem 1.75rem;
        font-size: 1.1rem;
        min-width: 120px;
    }
    
    /* Mobile transition message */
    .transition-message {
        font-size: 1.5rem;
        padding: 1.25rem;
    }
}

/* Responsive design for iPad */
@media (min-width: 769px) and (max-width: 1024px) {
    .welcome-content h1 {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .welcome-content p {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .play-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        min-width: 250px;
    }
    
    .qr-container,
    .survey-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .question-container h2 {
        font-size: 1.75rem;
    }
    
    .option-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .survey-title {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
    
    .survey-header {
        margin-bottom: 2rem;
    }
    
    .progress-circle {
        width: 70px;
        height: 70px;
    }
    
    .progress-circle-fill {
        width: 70px;
        height: 70px;
    }
    
    .progress-circle-fill::before {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
    }
    
    .progress-text {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .question-text {
        font-size: 1.75rem;
    }
    
    .survey-option {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 100px;
    }
    
    .submit-survey-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        min-width: 250px;
    }
}

/* Kiosk mode optimizations */
@media (orientation: landscape) and (max-height: 768px) {
    .welcome-content h1 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .welcome-content p {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .play-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 220px;
    }
    
    .qr-container,
    .survey-container {
        padding: 1.5rem;
    }
    
    .survey-title {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .survey-header {
        margin-bottom: 1.5rem;
    }
    
    .progress-circle {
        width: 60px;
        height: 60px;
    }
    
    .progress-circle-fill {
        width: 60px;
        height: 60px;
    }
    
    .progress-circle-fill::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
    
    .progress-text {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .question-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .question-text {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .survey-option {
        padding: 0.75rem 1rem;
        min-height: 50px;
        font-size: 0.9rem;
    }
    
    .nav-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
    
    .submit-survey-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 220px;
        margin-top: 1.5rem;
    }
}

/* Touch-friendly button sizes for all touch devices */
@media (pointer: coarse) {
    .play-button,
    .option-button,
    .restart-button,
    .survey-option,
    .submit-survey-button,
    .nav-button,
    .play-again-icon-button,
    .continue-button,
    .secondary-button,
    .skip-video-button,
    .skip-phone-button {
        min-height: 44px;
        /* Improve touch targets */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    .option-button {
        padding: 1.5rem 2rem;
    }
    
    .survey-option {
        padding: 1.5rem 2rem;
        min-height: 60px;
    }
    
    .submit-survey-button {
        padding: 1.5rem 3rem;
    }
    
    .nav-button {
        padding: 1.25rem 2rem;
        min-width: 120px;
    }
    
    /* Enhanced touch feedback */
    .play-button:active,
    .survey-option:active,
    .nav-button:active,
    .submit-survey-button:active,
    .play-again-icon-button:active,
    .continue-button:active,
    .secondary-button:active,
    .restart-button:active,
    .skip-video-button:active,
    .skip-phone-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .play-button,
    .survey-option,
    .nav-button,
    .submit-survey-button,
    .play-again-icon-button,
    .continue-button,
    .secondary-button,
    .restart-button,
    .skip-video-button,
    .skip-phone-button {
        min-height: 48px;
    }
    
    /* Better spacing for touch */
    .survey-option {
        margin-bottom: 0.75rem;
    }
    
    .nav-button {
        margin: 0 0.25rem;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Skip Video Overlay Styles */
.video-skip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
}

.skip-video-button {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 120px;
}

.skip-video-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.skip-video-button:active {
    transform: translateY(0);
}

/* Skip Phone Button Styles */
.skip-phone-button {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #3a3a3a;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    margin-left: 1rem;
}

.skip-phone-button:hover {
    border-color: #ffffff;
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skip-phone-button:active {
    transform: translateY(0);
}

/* App Video Controls Styles */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Replay Button Container (Center of Video) */
.replay-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
}

.replay-video-button {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 120px;
    justify-content: center;
    min-height: 36px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.replay-video-button:hover {
    background: rgba(58, 58, 58, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.replay-video-button:active {
    transform: translateY(0);
}

.replay-video-button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.replay-video-button span {
    white-space: nowrap;
    line-height: 1;
}

/* Legacy play-again-icon-button styles for backward compatibility */
.play-again-icon-button {
    background: none;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    flex-shrink: 0;
    opacity: 0.8;
}

.play-again-icon-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.play-again-icon-button:active {
    transform: scale(0.95);
}

.video-navigation {
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    pointer-events: auto;
}

.next-button-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-navigation .nav-button {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.video-navigation .nav-button:hover {
    border-color: #ffffff;
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-navigation .nav-button:active {
    transform: translateY(0);
}

.video-navigation .back-button {
    background: #3a3a3a;
}

.video-navigation .next-button {
    background: #ffffff;
    color: #0a0a0a;
}

.video-navigation .next-button:hover {
    background: #f4f4f5;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Force iOS Safari to use proper viewport */
    body {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    #app {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .screen {
        /* Ensure proper centering on iOS */
        align-items: center !important;
        justify-content: center !important;
        /* Handle iOS viewport height */
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    /* Force video screens to full viewport in landscape */
    @media (orientation: landscape) {
        #app-videos-screen,
        #bp-videos-screen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
    }
    
    /* Fix video container centering on iOS */
    .video-container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        /* Ensure no unwanted borders or shadows on iOS */
        border: none;
        box-shadow: none;
    }
    
    /* Landscape mode video sizing for iOS Safari */
    @media (orientation: landscape) {
        /* Fix the video screens first */
        #app-videos-screen,
        #bp-videos-screen {
            padding: 0 !important;
            margin: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
        }
        
        .video-container {
            width: 80vw !important;
            height: 90vh !important;
            max-width: 80vw !important;
            max-height: 90vh !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
            border-radius: 20px !important;
            overflow: hidden !important;
        }
        
        .video-container video {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            border-radius: 20px !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        /* Fix navigation buttons in landscape */
        .video-navigation {
            position: fixed !important;
            bottom: 2rem !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: 80vw !important;
            max-width: 600px !important;
            z-index: 9999 !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            pointer-events: auto !important;
            padding: 0 1rem !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        .video-navigation .nav-button {
            position: relative !important;
            z-index: 10000 !important;
            pointer-events: auto !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: block !important;
        }
        
        /* Fix video controls overlay */
        .video-controls-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            pointer-events: none !important;
            z-index: 1 !important;
        }
    }
    
    /* Fix iOS Safari survey option highlighting issues */
    .survey-option {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none !important;
        border: 2px solid #4a4a4a !important;
        background: #3a3a3a !important;
        color: #ffffff !important;
    }
    
    .survey-option:focus,
    .survey-option:active,
    .survey-option:visited {
        outline: none !important;
        border: 2px solid #4a4a4a !important;
        background: #3a3a3a !important;
        color: #ffffff !important;
    }
    
    .survey-option.selected {
        border: 2px solid #ffffff !important;
        background: #ffffff !important;
        color: #0a0a0a !important;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Better mobile scrolling */
    .survey-container {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Improve mobile viewport handling */
    .screen {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Mobile-specific video handling */
    .video-container video {
        /* Ensure videos scale properly on mobile */
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile navigation improvements */
    .survey-navigation {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .video-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .next-button-group {
        gap: 0.5rem;
    }
    
    /* Mobile completion buttons layout */
    .completion-buttons {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Landscape mobile orientation - only for very small screens */
@media (max-width: 480px) and (orientation: landscape) {
    /* Remove top/bottom padding for landscape */
    .screen {
        padding: 0 0.5rem;
    }
    
    .welcome-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .welcome-instructions p {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .welcome-instructions {
        margin-bottom: 1.5rem;
    }
    
    .play-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-width: 160px;
        min-height: 40px;
    }
    
    .survey-container {
        max-height: 90vh;
        padding: 0.75rem;
    }
    
    .survey-title {
        font-size: 1.5rem;
    }
    
    .survey-header {
        margin-bottom: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .survey-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
        min-height: 40px;
        margin-bottom: 0.375rem;
    }
    
    .nav-button {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        min-width: 90px;
        min-height: 40px;
    }
    
    /* Fix video container for landscape mobile */
    .video-container {
        max-height: 100vh;
        max-width: 95vw;
        width: 100%;
        aspect-ratio: unset;
        height: auto;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: 100vh;
        max-width: 100%;
    }
    
    /* Adjust video controls for landscape */
    .video-navigation {
        bottom: 1rem;
        padding: 0 1rem;
    }
    
    .video-navigation .nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 80px;
        height: 36px;
    }
    
    .play-again-icon-button {
        width: 35px;
        height: 35px;
    }
    
    /* Adjust loading indicator for landscape */
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .video-loading-overlay p {
        font-size: 0.9rem;
    }
    
    .college-logo-image {
        height: 40px;
    }
    
    .ohg-logo-top-right {
        width: 60px;
        height: 60px;
    }
    
    .ohg-logo-image {
        width: 40px;
        height: 40px;
    }
}

/* iPad and larger landscape orientation */
@media (min-width: 481px) and (orientation: landscape) {
    /* Remove top/bottom padding for landscape */
    .screen {
        padding: 0 2rem;
    }
    
    /* Fix video container for iPad+ landscape */
    .video-container {
        max-height: 100vh;
        max-width: 90vw;
        width: 100%;
        aspect-ratio: unset;
        height: auto;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: 100vh;
        max-width: 100%;
    }
    
    /* Adjust video controls for iPad landscape */
    .video-navigation {
        bottom: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .video-navigation .nav-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 100px;
        height: 44px;
    }
    
    .play-again-icon-button {
        width: 40px;
        height: 40px;
    }
    
    /* Adjust loading indicator for iPad landscape */
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .video-loading-overlay p {
        font-size: 1rem;
    }
}

/* Extra small landscape screens (very short height) */
@media (max-width: 480px) and (orientation: landscape) and (max-height: 500px) {
    .screen {
        padding: 0 0.25rem;
    }
    
    .video-container {
        max-height: 100vh;
        max-width: 98vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .video-container video {
        max-height: 100vh;
        max-width: 100%;
        object-fit: contain;
    }
    
    .video-navigation {
        bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .video-navigation .nav-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 70px;
        height: 32px;
    }
    
    .play-again-icon-button {
        width: 40px;
        height: 40px;
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }
    
    .video-loading-overlay p {
        font-size: 0.8rem;
    }
}

/* Ultra short landscape screens */
@media (max-width: 480px) and (orientation: landscape) and (max-height: 400px) {
    .screen {
        padding: 0 0.125rem;
    }
    
    .video-container {
        max-height: 100vh;
        max-width: 99vw;
    }
    
    .video-container video {
        max-height: 100vh;
    }
    
    .video-navigation {
        bottom: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .video-navigation .nav-button {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
        height: 28px;
    }
    
    .play-again-icon-button {
        width: 30px;
        height: 30px;
    }
}
