/* CPR Square - Mobile-First Responsive Design */

/* Viewport Meta Tag Required in HTML:
<meta name="viewport" content="width=device-width, initial-scale=1.0"> */

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

/* Mobile-First Base Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Header Banner - Mobile First */
header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.header-banner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    height: auto;
    object-fit: contain;
}

/* Navigation - Mobile First */
.navigation {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1px;
    padding: 5px 50px;
}

.nav-button {
    padding: 4px 6px;
    text-decoration: none;
    color: white;
    font-size: 8px;
    font-weight: bold;
    border-radius: 3px;
    transition: opacity 0.3s;
    display: inline-block;
    text-align: center;
    width: 121px;
    white-space: nowrap;
    height: auto;
}

.nav-button:hover {
    opacity: 0.8;
}

/* Navigation Button Colors */
.nav-home { background-color: #4A90E2; }
.nav-register { background-color: #E91E63; }
.nav-worksite { background-color: #7B68EE; }
.nav-locations { background-color: #20B2AA; }
.nav-verification { background-color: #9370DB; }
.nav-ceu { background-color: #9370DB; }
.nav-contact { background-color: #FF8C00; }

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 8px 50px;
}

/* Purple Header */
.purple-header {
    background-color: #7B68EE;
    color: white;
    text-align: center;
    padding: 6px;
    margin: 8px 0;
    font-size: 12px;
    font-weight: bold;
}

/* Content Sections */
.content-section {
    margin: 0 0 10px 0; /* Removed top margin to eliminate space below iframes */
    font-size: 12px;
    line-height: 1.4;
}

.content-section h2 {
    color: #FF8C00;
    font-size: 16px;
    margin-bottom: 5px;
}

.content-section h3 {
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.content-section h4 {
    color: #FF8C00;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Two Column Layout */
.two-column {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.left-column {
    flex: 2;
}

.right-column {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

/* Phone Number Styling */
.phone-large {
    color: #FF8C00;
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

/* Enrollware Iframe - Shifted Left and Increased Width */
.enrollware-container {
    margin: 0; /* Remove all margins to eliminate spacing */
    text-align: left; /* Changed from center to left */
    width: 950px; /* Increased from 800px to show complete content */
    max-width: 950px;
    position: relative;
    left: -50px; /* Shift left to align with Home button */
}

.enrollware-text {
    color: #FF8C00;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center; /* Keep text centered */
}

.enrollware-iframe {
    width: 1200px; /* Actual embedded page width */
    height: 1200px; /* Reduced from 1800px to eliminate empty space */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.79); /* Scale down to fit 950px container (950/1200 = 0.79) */
    transform-origin: top left; /* Scale from top-left corner */
    margin: 0; /* Remove all margins */
    display: block;
}

/* Location Maps */
.location-section {
    margin: 30px 0;
}

.location-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.location-map {
    text-align: center;
    margin: 20px 0;
}

.location-map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.location-map img:hover {
    opacity: 0.8;
}

/* Forms */
.contact-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    background-color: #FF8C00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.submit-button:hover {
    background-color: #e67e00;
}

/* Footer */
.footer {
    margin-top: 10px; /* Reduced from 40px to eliminate space below Enrollware iframe */
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-links {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 2px;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 20px;
    transition: opacity 0.3s;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Footer Button Colors */
.footer-links a:nth-child(1) { background-color: #E91E63; } /* Refund Policy */
.footer-links a:nth-child(2) { background-color: #7B68EE; } /* Privacy Policy */
.footer-links a:nth-child(3) { background-color: #20B2AA; } /* Accessibility Statement */
.footer-links a:nth-child(4) { background-color: #9370DB; } /* Terms of Use */
.footer-links a:nth-child(5) { background-color: #FF8C00; } /* Contact Us */

/* Page-specific styles */
.red-header {
    background-color: #DC143C;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

.verification-section {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.ceu-info {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.policy-content {
    line-height: 1.8;
}

/* Media Queries - Progressive Enhancement */

/* Tablets and Small Desktops */
@media screen and (min-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .content-section {
        font-size: 13px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .content-section h3 {
        font-size: 15px;
    }
    
    .nav-button {
        font-size: 11px;
        padding: 8px 10px;
        width: 121px;
    }
    
    /* Tablet Enrollware Adjustments */
    .enrollware-container {
        width: 100%;
        max-width: 100%;
    }
    
    .enrollware-iframe {
        width: 100%;
        height: 1600px;
    }
}

/* Large Desktops */
@media screen and (min-width: 992px) {
    body {
        font-size: 16px;
    }
    
    .content-section {
        font-size: 14px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 16px;
    }
    
    .nav-button {
        font-size: 12px;
        padding: 10px 12px;
        width: 121px;
    }
}

/* Mobile Specific Adjustments */
@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    header {
        padding: 0 25px;
    }
    
    .navigation {
        padding: 5px 25px;
    }
    
    .container {
        padding: 10px 25px;
    }
    
    .nav-button {
        font-size: 9px;
        padding: 4px 6px;
        width: 121px;
    }
    
    .two-column {
        flex-direction: column;
        gap: 15px;
    }
    
    .right-column {
        padding: 15px;
    }
    
    .phone-large {
        font-size: 24px;
    }
    
    .purple-header {
        font-size: 12px;
        padding: 6px;
    }
    
    .content-section {
        font-size: 12px;
        margin: 8px 0;
    }
    
    .content-section h2 {
        font-size: 16px;
    }
    
    .content-section h3 {
        font-size: 14px;
    }
    
    .footer-links {
        gap: 4px;
    }
    
    .footer-links a {
        font-size: 10px;
        padding: 5px 12px;
        min-width: 70px;
    }
    
    /* Mobile Enrollware Adjustments */
    .enrollware-container {
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
        overflow: hidden;
    }
    
    .enrollware-iframe {
        width: 100%;
        height: 1500px;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .enrollware-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
}


/* Worksite Training Form Enhancements */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #7B68EE;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.2);
}

.contact-form h3 {
    background: linear-gradient(135deg, #7B68EE 0%, #9370DB 100%);
    color: white;
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    color: #4A90E2;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7B68EE;
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #9370DB;
}

/* Date-Time Group Styling */
.date-time-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input {
    flex: 2;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #20B2AA;
    border-radius: 8px;
}

.date-input:focus {
    border-color: #20B2AA;
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.3);
}

.time-select {
    flex: 1;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    border: 2px solid #E91E63;
    border-radius: 8px;
    color: #333;
}

.time-select:focus {
    border-color: #E91E63;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

/* Submit Button Enhancement */
.submit-button {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
}

/* Form Field Icons and Enhancements */
.form-group:nth-child(1) input { border-left: 4px solid #4A90E2; }
.form-group:nth-child(2) input { border-left: 4px solid #E91E63; }
.form-group:nth-child(3) input { border-left: 4px solid #20B2AA; }
.form-group:nth-child(4) input { border-left: 4px solid #9370DB; }
.form-group:nth-child(5) textarea { border-left: 4px solid #FF8C00; }
.form-group:nth-child(6) select { border-left: 4px solid #7B68EE; }
.form-group:nth-child(7) input { border-left: 4px solid #32CD32; }

/* Responsive Form Adjustments */
@media screen and (max-width: 480px) {
    .date-time-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-input,
    .time-select {
        flex: none;
        width: 100%;
    }
    
    .contact-form h3 {
        font-size: 18px;
    }
    
    .submit-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}


/* Combined Location Map Styling */
.combined-map-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.combined-map {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.combined-map:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Location Section Enhancements */
.location-section {
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.location-section:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.location-title {
    color: #4A90E2;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.location-section h2.location-title {
    font-size: 24px;
    color: #E91E63;
}

.location-section:nth-child(4) h2.location-title {
    color: #20B2AA;
}

/* Enhanced Content Section for Locations */
.location-section .content-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 8px 0;
}

.location-section .content-section p strong {
    color: #7B68EE;
    font-weight: bold;
}

.location-section .content-section a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.location-section .content-section a:hover {
    color: #FF6347;
    text-decoration: underline;
}

/* Responsive Map Adjustments */
@media screen and (max-width: 768px) {
    .combined-map {
        border-radius: 8px;
    }
    
    .location-title {
        font-size: 24px;
    }
    
    .location-section h2.location-title {
        font-size: 20px;
    }
    
    .location-section {
        margin: 20px 0;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .location-title {
        font-size: 20px;
    }
    
    .location-section h2.location-title {
        font-size: 18px;
    }
    
    .location-section .content-section p {
        font-size: 14px;
    }
}


/* Card Verification Iframe - Desktop Horizontal Scroller */
.verification-container {
    margin: 0; /* Remove all margins to eliminate spacing */
    text-align: left; /* Left align for horizontal scrolling */
    width: 950px; /* Container width */
    max-width: 950px;
    position: relative;
    left: -50px; /* Shift left to align with Home button */
    /* Create horizontal scrollable container for desktop */
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.verification-iframe {
    width: 1400px; /* Much wider than container to force horizontal scrolling */
    height: 1200px; /* Maintain desktop height */
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transform: none; /* Remove scaling - use horizontal scroll instead */
    transform-origin: initial;
    margin: 0; /* Remove all margins */
    display: block;
    /* Ensure iframe content starts from leftmost position */
    position: relative;
    left: 0;
    top: 0;
}

/* Custom scrollbar styling for desktop */
.verification-container::-webkit-scrollbar {
    height: 12px;
}

.verification-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.verification-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.verification-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Card Verification (matching Enrollware responsive structure) */
@media screen and (max-width: 768px) {
    .verification-container {
        width: 100%;
        max-width: 100%;
        left: 0; /* Reset left positioning on tablet */
        text-align: center; /* Center on tablet */
    }
    
    .verification-iframe {
        width: 100%;
        height: 1400px; /* Increased height to match Enrollware tablet scaling */
        transform: none; /* Reset scaling on tablet */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
}

@media screen and (max-width: 480px) {
    .verification-container {
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
        padding: 0;
        left: 0;
        position: relative;
        /* Create horizontal scrollable container for mobile */
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }
    
    .verification-iframe {
        width: 1000px; /* Wide enough to show complete embedded page on mobile */
        height: 600px; /* Reduced height for mobile */
        border: none;
        border-radius: 8px;
        overflow: hidden;
        transform: none; /* No scaling - use horizontal scroll */
        transform-origin: initial;
        margin: 0;
        display: block;
        /* Ensure iframe content starts from leftmost position */
        position: relative;
        left: 0;
        top: 0;
    }
    
    /* Mobile scrollbar styling */
    .verification-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .verification-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .verification-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

/* Remove iPhone-specific scaling that wasn't working */

/* Verification Section Single Line Text */
.verification-section h1 {
    white-space: nowrap;
    font-size: 18px;
    margin-bottom: 10px;
}

.verification-section p {
    white-space: nowrap;
    font-size: 12px;
    width: 825px;
    max-width: 825px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    left: -15px;
}

/* Responsive adjustments for single line text */
@media screen and (max-width: 768px) {
    .verification-section h1 {
        font-size: 16px;
    }
    
    .verification-section p {
        font-size: 10px;
        width: 100%;
        max-width: 100%;
        left: 0;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .verification-section h1 {
        font-size: 14px;
    }
    
    .verification-section p {
        font-size: 9px;
        width: 100%;
        max-width: 100%;
        left: 0;
        text-align: center;
    }
}

/* Purple Header - No Underlines */
.purple-header {
    text-decoration: none !important;
}

.purple-header a {
    text-decoration: none !important;
    color: white !important;
}

.purple-header a:hover {
    text-decoration: none !important;
    color: white !important;
}


/* Specific Navigation Button Width Adjustments */
.nav-home {
    width: 99px !important; /* Reduced by 12px from 111px */
}

.nav-register {
    width: 128px !important; /* Increased by 2px from 126px (total +7px from original) */
}

.nav-worksite {
    width: 176px !important; /* Increased by 10px from 166px (total +55px from original) */
}

/* Responsive adjustments for specific buttons */
@media screen and (max-width: 768px) {
    .nav-home {
        width: 99px !important;
    }
    
    .nav-register {
        width: 128px !important;
    }
    
    .nav-worksite {
        width: 176px !important;
    }
}

@media screen and (max-width: 480px) {
    .nav-home {
        width: 99px !important;
    }
    
    .nav-register {
        width: 128px !important;
    }
    
    .nav-worksite {
        width: 176px !important;
    }
}


/* Enhanced Mobile-First Responsive Design for iPhone Optimization */

/* Extra Small Mobile Devices (iPhone SE, iPhone 5s, etc.) */
@media screen and (max-width: 375px) {
    body {
        font-size: 10px;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    header {
        padding: 0 25px;
    }
    
    .container {
        padding: 5px 25px;
    }
    
    .navigation {
        padding: 3px 25px;
        gap: 0;
    }
    
    .nav-button {
        font-size: 7px;
        padding: 3px 4px;
        width: 110px;
    }
    
    .nav-home { width: 90px !important; }
    .nav-register { width: 115px !important; }
    .nav-worksite { width: 160px !important; }
    
    .content-section {
        font-size: 10px;
        margin: 8px 0;
        padding: 8px;
    }
    
    .content-section h2 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .content-section h3 {
        font-size: 12px;
        margin: 8px 0 4px 0;
    }
    
    .enrollware-container {
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
        left: 0; /* Reset left positioning on iPhone SE */
        text-align: center; /* Center on iPhone SE */
        position: relative;
    }
    
    .enrollware-iframe {
        width: 100%;
        height: 1200px;
        transform: none; /* Reset scaling on iPhone SE */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
    
    .verification-container {
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
        left: 0; /* Reset left positioning on iPhone SE */
        text-align: center; /* Center on iPhone SE */
        position: relative;
    }
    
    .verification-iframe {
        width: 100%;
        height: 900px;
        transform: none; /* Reset scaling on iPhone SE */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
    
    .verification-iframe-direct {
        width: 100%;
        height: 450px; /* Increased proportionally from 300px */
        left: 0;
        margin: 5px auto;
    }
    
    .verification-section h1 {
        font-size: 12px;
    }
    
    .verification-section p {
        font-size: 8px;
        text-align: center;
        left: 0;
    }
}

/* Standard Mobile Devices (iPhone 6/7/8, etc.) */
@media screen and (min-width: 376px) and (max-width: 480px) {
    body {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .content-section {
        font-size: 11px;
        margin: 10px 0;
        padding: 10px;
    }
    
    .content-section h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .content-section h3 {
        font-size: 14px;
        margin: 10px 0 5px 0;
    }
    
    .enrollware-container {
        width: 100%;
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
        left: 0; /* Reset left positioning on mobile */
        text-align: center; /* Center on mobile */
    }
    
    .enrollware-iframe {
        width: 100%;
        height: 1400px;
        border-radius: 4px;
        transform: none; /* Reset scaling on mobile */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
    
    .enrollware-text {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .nav-button {
        font-size: 8px;
        padding: 4px 5px;
    }
}

/* Tablets and Larger Mobile Devices */
@media screen and (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .content-section {
        font-size: 12px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .nav-button {
        font-size: 9px;
        padding: 5px 7px;
    }
    
    .enrollware-container {
        width: 100%;
        max-width: 100%;
        left: 0; /* Reset left positioning on tablet */
        text-align: center; /* Center on tablet */
    }
    
    .enrollware-iframe {
        width: 100%;
        height: 1600px;
        transform: none; /* Reset scaling on tablet */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
}

/* Desktop and Large Screens */
@media screen and (min-width: 992px) {
    body {
        font-size: 14px;
    }
    
    .content-section {
        font-size: 13px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 16px;
    }
    
    .nav-button {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .enrollware-container {
        width: 950px; /* Updated to match new width */
        max-width: 950px;
        margin: 20px auto;
        text-align: left; /* Maintain left alignment on desktop */
        position: relative;
        left: -50px; /* Maintain left shift on desktop */
    }
    
    .enrollware-iframe {
        width: 1200px; /* Actual embedded page width */
        height: 1800px;
        transform: scale(0.79); /* Scale down to fit 950px container */
        transform-origin: top left; /* Scale from top-left corner */
        margin-left: 0;
        margin-top: 0;
    }
}

/* iPhone Landscape Optimization */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .header-banner {
        max-height: 80px;
        object-fit: contain;
    }
    
    .navigation {
        padding: 2px 50px;
    }
    
    .nav-button {
        padding: 2px 4px;
        font-size: 7px;
    }
    
    .container {
        padding: 5px 50px;
    }
    
    .content-section {
        margin: 5px 0;
        padding: 5px;
    }
    
    .enrollware-container {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
        padding: 0 10px;
        left: 0; /* Reset left positioning on iPhone landscape */
        text-align: center; /* Center on iPhone landscape */
        position: relative;
    }
    
    .verification-container {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
        padding: 0 10px;
        left: 0; /* Reset left positioning on iPhone landscape */
        text-align: center; /* Center on iPhone landscape */
        position: relative;
    }
    
    .verification-iframe {
        height: 600px;
        width: 100%;
        transform: none; /* Reset scaling on iPhone landscape */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
    
    .verification-iframe-direct {
        height: 375px; /* Increased proportionally from 250px */
    }
    
    .enrollware-iframe {
        height: 800px;
        width: 100%;
        transform: none; /* Reset scaling on iPhone landscape */
        transform-origin: initial;
        margin-left: auto;
        margin-top: auto;
    }
}

/* Ensure no horizontal scrolling on any device */
* {
    max-width: 100%;
    overflow-x: hidden;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

