/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.3;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.main-title i {
    color: #ffd700;
    margin-right: 15px;
    animation: bounce 2s infinite;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Progress Navigation */
.progress-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #4facfe;
}

.progress-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.btn-start-again {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.btn-start-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Main Content */
main {
    background: white;
    margin-top: 0;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

/* Section Styles */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title i {
    color: #4facfe;
    margin-right: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

/* Kit Overview */
.kit-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.kit-image-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kit-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.kit-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

.kit-image-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Parts List */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.part-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.part-item:hover {
    transform: translateY(-5px);
}

.part-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ffd700;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 5px solid #4facfe;
}

.step-card.completed {
    border-left-color: #2ecc71;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.step-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.step-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.step-card.completed .step-header {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.step-header:hover {
    background: linear-gradient(135deg, #e8f0ff 0%, #d0e0ff 100%);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.step-card.completed .step-number {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.step-card.completed .step-number::after {
    content: '✓';
    font-size: 1.1rem;
}

.step-header h3 {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.step-toggle {
    font-size: 1.2rem;
    color: #4facfe;
    transition: transform 0.3s ease;
}

.step-card.expanded .step-toggle {
    transform: rotate(180deg);
}

.step-content {
    padding: 30px;
    display: none;
}

.step-card.expanded .step-content {
    display: block;
    animation: slideDown 0.3s ease;
}

.step-text {
    margin-bottom: 25px;
}

.step-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.warning-box i {
    color: #f39c12;
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 2px;
}

.warning-box strong {
    color: #d68910;
}

.step-image, .step-images {
    margin-bottom: 25px;
    text-align: center;
}

.step-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.step-img:hover {
    transform: scale(1.05);
}

.step-actions {
    text-align: center;
}

.btn-complete {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.btn-complete:active {
    transform: translateY(0);
}

.btn-complete i {
    margin-right: 8px;
}

/* Connection Options */
.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.part-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.connection-choice {
    margin-bottom: 50px;
}

.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.choice-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.choice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.choice-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.choice-card p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.choice-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.choice-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.connection-steps {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.connection-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* Testing Section */
.testing-steps {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.test-step {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 200px;
}

.test-step:hover {
    transform: translateY(-5px);
}

.test-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.test-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.test-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.test-content p {
    color: #34495e;
    line-height: 1.7;
}

/* Troubleshooting Section */
.troubleshooting-steps {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.trouble-step {
    background: linear-gradient(135deg, #fff8f0 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #f39c12;
}

.trouble-step:hover {
    transform: translateY(-5px);
}

.trouble-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.trouble-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.trouble-content p {
    color: #34495e;
    line-height: 1.7;
}

/* Testing Section Enhancements */
.test-actions, .trouble-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-test-complete, .btn-trouble-fixed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-test-complete:hover, .btn-trouble-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.test-result-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.test-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.test-result-options {
    margin-top: auto;
}

.btn-test-pass {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-test-fail {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-test-pass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.btn-test-fail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

.testing-complete {
    margin-top: 40px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 20px;
    border: 2px solid #2ecc71;
}

.success-message h3 {
    color: #2ecc71;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    color: #155724;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-celebrate {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-celebrate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.6);
}

.trouble-complete {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
}

.btn-retest {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-retest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.6);
}

/* Resources Section */
.resources-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 30px;
    margin: 40px 0;
    padding: 60px 0;
}

.resources-category {
    margin-bottom: 60px;
}

.resources-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.category-title i {
    color: #4facfe;
    margin-right: 15px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #4facfe;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.resource-image {
    margin-bottom: 20px;
    text-align: center;
}

.resource-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-icon {
    text-align: center;
    margin-bottom: 20px;
}

.resource-icon i {
    font-size: 4rem;
    color: #4facfe;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    padding: 30px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.resource-content h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.resource-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.5);
    text-decoration: none;
    color: white;
}

.download-btn.secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.3);
}

.download-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.5);
}

.schematic-card {
    border-left-color: #e74c3c;
}

.schematic-card .resource-icon i {
    color: #e74c3c;
    background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* Printing Tips */
.printing-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #f39c12;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    text-align: center;
    margin-bottom: 15px;
}

.tip-icon i {
    font-size: 2.5rem;
    color: #f39c12;
    background: linear-gradient(135deg, #fff8f0 0%, #ffeaa7 100%);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.2);
}

.tip-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.tip-content ul {
    list-style: none;
    padding: 0;
}

.tip-content li {
    color: #34495e;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.tip-content li::before {
    content: '•';
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* QR Code - hidden on screen */
.print-qr {
    display: none;
}

/* Print Button */
.btn-print {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-family: 'Fredoka', sans-serif;
}

.btn-print:hover {
    background: white;
    color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-print i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .step-header {
        padding: 20px 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 15px;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .parts-grid {
        grid-template-columns: 1fr;
    }
    
    .kit-images {
        grid-template-columns: 1fr;
    }
    
    .step-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .step-header {
        padding: 15px;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .warning-box {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .warning-box i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    /* Reset page basics */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
        transform: none !important;
        overflow: visible !important;
    }

    @page {
        size: A4;
        margin: 12mm 10mm 16mm 10mm;

        @bottom-center {
            content: 'Page ' counter(page);
            font-family: 'Fredoka', sans-serif;
            font-size: 9pt;
            color: #888;
        }
    }

    body {
        background: white !important;
        color: #222 !important;
        font-size: 10pt;
        line-height: 1.4;
    }

    main {
        border-radius: 0 !important;
        padding-bottom: 0 !important;
        position: static !important;
        z-index: auto !important;
    }

    /* Hide non-print elements */
    .btn-print,
    .progress-nav,
    .btn-complete,
    .btn-test-complete,
    .btn-test-pass,
    .btn-test-fail,
    .btn-trouble-fixed,
    .btn-retest,
    .btn-celebrate,
    .btn-start-again,
    .step-actions,
    .test-actions,
    .test-result-options,
    .trouble-actions,
    .trouble-complete,
    .testing-complete,
    .step-toggle,
    .choice-btn,
    .resources-section,
    .footer,
    .toast,
    .hero-image {
        display: none !important;
    }

    /* Print title header */
    .hero-section {
        background: white !important;
        color: #222 !important;
        padding: 30px 0 20px !important;
        text-align: center;
        border-bottom: 3px solid #4facfe;
        margin-bottom: 10px !important;
    }

    .hero-section::before {
        display: none !important;
    }

    .main-title {
        font-size: 22pt !important;
        color: #2c3e50 !important;
        margin-bottom: 6px !important;
    }

    .main-title i {
        color: #4facfe !important;
        animation: none !important;
    }

    .subtitle {
        font-size: 11pt !important;
        color: #555 !important;
        margin-bottom: 0 !important;
    }

    /* QR code visible in print */
    .print-qr {
        display: block !important;
        text-align: center;
        margin-top: 10px;
    }

    .print-qr .qr-img {
        width: 90px !important;
        height: 90px !important;
    }

    .print-qr p {
        font-size: 8pt !important;
        color: #666 !important;
        margin-top: 2px !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Sections */
    .section {
        padding: 8px 0 !important;
        border-bottom: none !important;
    }

    .section-title {
        font-size: 14pt !important;
        margin-bottom: 8px !important;
        text-align: left !important;
        page-break-after: avoid !important;
    }

    .section-title::after {
        display: none !important;
    }

    .section-title i {
        font-size: 14pt !important;
    }

    .section-description {
        font-size: 9pt !important;
        margin-bottom: 8px !important;
        text-align: left !important;
    }

    /* Kit overview - compact for print */
    .kit-overview {
        padding: 4px 0 !important;
    }

    .kit-images {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-top: 8px !important;
    }

    .kit-image-card {
        padding: 8px !important;
        border-radius: 4px !important;
        border: 1px solid #ccc !important;
    }

    .kit-image-card h3 {
        font-size: 9pt !important;
        margin-top: 4px !important;
    }

    .kit-img {
        border-radius: 4px !important;
        margin-bottom: 4px !important;
    }

    /* Parts list - compact grid */
    .parts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        margin-top: 8px !important;
    }

    .part-item {
        padding: 6px 10px !important;
        border-radius: 4px !important;
        font-size: 8pt !important;
        border: 1px solid #ccc !important;
        background: #f0f0f0 !important;
        color: #222 !important;
    }

    .part-icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 0 !important;
        margin-right: 6px !important;
    }

    /* Step cards - compact print layout */
    .step-card {
        border-radius: 4px !important;
        margin-bottom: 6px !important;
        border: 1px solid #ccc !important;
        border-left: 3px solid #4facfe !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .step-card.completed {
        border-left-color: #4facfe !important;
        background: white !important;
    }

    /* Force all step content visible */
    .step-content {
        display: block !important;
        padding: 6px 10px !important;
        animation: none !important;
    }

    .step-header {
        padding: 6px 10px !important;
        background: #f5f7ff !important;
    }

    .step-card.completed .step-header {
        background: #f5f7ff !important;
    }

    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 10pt !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .step-card.completed .step-number {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    }

    .step-card.completed .step-number::after {
        display: none !important;
    }

    .step-header h3 {
        font-size: 10pt !important;
    }

    .step-text {
        margin-bottom: 4px !important;
    }

    .step-text p {
        font-size: 9pt !important;
        line-height: 1.3 !important;
    }

    /* Warning boxes compact */
    .warning-box {
        padding: 6px 10px !important;
        margin-bottom: 4px !important;
        border-radius: 4px !important;
        font-size: 8pt !important;
    }

    .warning-box i {
        font-size: 10pt !important;
        margin-right: 6px !important;
    }

    /* Step images - compact */
    .step-image, .step-images {
        margin-bottom: 4px !important;
    }

    .step-img {
        max-height: 140px !important;
        width: auto !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .step-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 6px !important;
    }

    /* Force connection sections visible */
    .connection-steps {
        display: block !important;
        border-top: 2px solid #4facfe !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
    }

    .connection-title {
        font-size: 12pt !important;
        margin-bottom: 8px !important;
    }

    /* Connection choice cards */
    .connection-choice {
        display: none !important;
    }

    /* Print section divider labels */
    #spade-steps::before {
        content: 'Option A: Spade Connectors';
        display: block;
        font-size: 12pt;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 8px;
        padding: 4px 0;
        border-bottom: 1px solid #4facfe;
    }

    #croc-steps {
        page-break-before: always !important;
        break-before: page !important;
    }

    #croc-steps::before {
        content: 'Option B: Croc Clips';
        display: block;
        font-size: 12pt;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 8px;
        padding: 4px 0;
        border-bottom: 1px solid #4facfe;
    }

    .connection-steps .connection-title {
        display: none !important;
    }

    /* Force troubleshooting visible */
    .troubleshooting-section {
        display: block !important;
    }

    /* Testing section compact */
    .testing-steps {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .test-step {
        padding: 8px 10px !important;
        border-radius: 4px !important;
        border: 1px solid #ccc !important;
        min-height: unset !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .test-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 10pt !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .test-content {
        min-height: unset !important;
    }

    .test-content h3 {
        font-size: 10pt !important;
        margin-bottom: 2px !important;
    }

    .test-content p {
        font-size: 9pt !important;
        line-height: 1.3 !important;
    }

    /* Troubleshooting compact */
    .troubleshooting-steps {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .trouble-step {
        padding: 8px 10px !important;
        border-radius: 4px !important;
        border: 1px solid #ccc !important;
        border-left: 3px solid #f39c12 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .trouble-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 12pt !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .trouble-content h3 {
        font-size: 10pt !important;
        margin-bottom: 2px !important;
    }

    .trouble-content p {
        font-size: 9pt !important;
        line-height: 1.3 !important;
    }

    /* Page break control: break before every 4th step card in main build */
    .build-steps .step-card:nth-child(4n+1):not(:first-child) {
        page-break-before: always !important;
        break-before: page !important;
    }

    /* Page break before battery connection section */
    .connection-options {
        page-break-before: always !important;
        break-before: page !important;
    }

    /* Page break before testing section */
    .testing-section {
        page-break-before: always !important;
        break-before: page !important;
    }

    /* Troubleshooting on same page as testing */
    .troubleshooting-section {
        page-break-before: auto !important;
        break-before: auto !important;
    }

    /* Parts list on its own page */
    .parts-list {
        page-break-after: always !important;
        break-after: page !important;
    }
}
