/* ============================================
   USER-FRIENDLY IRCC-STYLE ADDITIONS
   Version 3.0 - Modern, Clean, Accessible
   ============================================ */

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.welcome-banner .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    min-width: 200px;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.info-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.info-card span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Step Introduction */
.step-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.step-intro h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.step-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s;
}

.section-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.section-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-card h3 i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.section-card .help-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Field Hints */
.field-hint {
    display: block;
    font-size: 0.85rem;
    color: #757575;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--light-gray);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label.large {
    border: 2px solid var(--border-gray);
    padding: 1.5rem;
    background: #fafafa;
}

.checkbox-label.large:hover {
    border-color: var(--primary-blue);
    background: #f0f7ff;
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.upload-card {
    background: #fafafa;
    border: 2px dashed var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.upload-card:hover {
    border-color: var(--primary-blue);
    background: #f0f7ff;
}

.upload-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.upload-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.upload-card input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.upload-label:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

/* Review Section */
.review-card {
    border-left-color: var(--success-green);
}

.review-section {
    margin-bottom: 2rem;
}

.review-section h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.review-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 6px;
}

.review-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.review-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.info-box i {
    font-size: 2rem;
    color: #2196f3;
    flex-shrink: 0;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-box ul {
    margin-left: 1.5rem;
    color: var(--text-dark);
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Declaration Box */
.declaration-box {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation Info */
.nav-info {
    text-align: center;
    flex: 1;
}

#step-counter {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Required Field Indicator - Less Aggressive */
.form-group label.required::after {
    content: " *";
    color: #ff5722;
    font-weight: bold;
}

/* Input Focus States - More Subtle */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

/* Form Validation - Friendlier */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff9800 !important; /* Orange instead of red */
    background: #fff3e0;
}

.error-message {
    color: #f57c00; /* Softer orange */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading Overlay Enhancement */
.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Footer Enhancement */
footer {
    background: #263238;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #90caf9;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .welcome-banner h2 {
        font-size: 1.5rem;
    }
    
    .welcome-banner .subtitle {
        font-size: 1rem;
    }
    
    .info-cards {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-card {
        min-width: 100%;
    }
    
    .step-intro h2 {
        font-size: 1.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 2rem 1rem;
    }
    
    .form-wrapper {
        padding: 0 1rem 2rem;
    }
    
    .section-card {
        padding: 1rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-info {
        order: -1;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .section-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    header,
    .welcome-banner,
    .form-navigation,
    footer {
        display: none;
    }
    
    .section-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
