/* Custom CSS for Treasure Hunt Adventures */

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8c146;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --beige-bg: #F5F5DC;
    --text-muted: #6c757d;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    background-color: var(--beige-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--beige-bg) 0%, #f0f0e6 100%);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #3d6bb3);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #1e4080, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Plan Cards */
.plan-card {
    transition: transform 0.3s ease;
}

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

.plan-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-item:hover {
    box-shadow: var(--box-shadow-lg);
}

.plan-item .card-header {
    background: linear-gradient(45deg, var(--primary-color), #3d6bb3) !important;
    border: none;
    padding: 1.25rem;
    position: relative;
}

.difficulty-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.difficulty-badge.beginner {
    background-color: var(--success-color);
}

.difficulty-badge.intermediate {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.difficulty-badge.advanced {
    background-color: var(--danger-color);
}

.plan-details {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Schedule display styling */
.schedule-display {
    max-width: 60%;
    line-height: 1.2;
}

.schedule-date {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

.schedule-time {
    font-size: 0.8rem;
    color: var(--muted-color, #6c757d);
    white-space: nowrap;
}

/* Legacy schedule text styling for backward compatibility */
.schedule-text {
    max-width: 60%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    font-size: 0.9rem;
}

/* Filter Buttons */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.file-upload-area::before {
    content: "📁 Click to select files";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 90, 160, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(44, 90, 160, 0.1);
}

.file-info {
    background-color: var(--light-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.progress-step:first-child::before {
    left: 50%;
}

.progress-step:last-child::before {
    right: 50%;
}

.progress-step.active::before {
    background-color: var(--primary-color);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.progress-step.active .step-circle {
    background-color: var(--primary-color);
}

.progress-step.completed .step-circle {
    background-color: var(--success-color);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #212529 !important; /* Ensure dark background */
}

/* Footer text contrast fixes */
footer .text-light {
    color: #f8f9fa !important;
}

footer .text-white {
    color: #ffffff !important;
}

/* Footer links styling */
.footer-link {
    color: #f8f9fa !important;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Contact Section Hero Styling */
#contact {
    min-height: 600px;
    overflow: hidden;
}

.contact-hero-bg {
    z-index: 1;
}

.contact-hero-image {
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.contact-hero-overlay {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8) 0%, rgba(248, 193, 70, 0.6) 100%);
    z-index: 2;
}

.contact-info-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    position: relative;
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.contact-icon-wrapper i {
    color: white !important;
}

/* Social media links */
.social-links a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-color: #6c757d !important;
    color: #f8f9fa !important;
}

.social-links a:hover {
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Footer icons */
footer .text-primary {
    color: var(--primary-color) !important;
}

/* Footer headings */
footer h5, footer h6 {
    color: #ffffff !important;
    margin-bottom: 1rem;
}

/* Footer contact info */
footer .contact-info small {
    color: #f8f9fa !important;
    opacity: 0.9;
}

/* Footer copyright section */
footer hr {
    border-color: #495057 !important;
    opacity: 0.3;
}

/* Hero Section Content Blur Backgrounds - Pure blur effect without glass background */
.hero-content-blur {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); /* Safari/iOS support */
    border-radius: 15px;
    padding: 2rem;
    margin: 0.5rem 0;
    /* No background color - pure blur effect only */
}

.hero-video-blur {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari/iOS support */
    border-radius: 15px;
    padding: 1.2rem;
    margin: 0.5rem 0;
    /* No background color - pure blur effect only */
}

/* Hero Section Text Styling - Better readability without overlay */
.hero-section .hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section .display-4,
.hero-section .display-5 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #2c3e50; /* Dark blue-gray for titles */
}

.hero-section .lead,
.hero-section .hero-description {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #2c2c2c; /* Near-black greyish color for better readability */
    font-weight: 500; /* Medium weight for better visibility */
}

.hero-section .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Video Play Button */
.mobile-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
    color: white;
    font-size: 4rem;
}

.mobile-play-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
        /* Ensure hero section takes full height on mobile when content stacks */
        min-height: 100vh;
        align-items: stretch;
    }

    /* Mobile hero background video adjustments */
    .hero-video-bg {
        /* Ensure background video covers the full stacked mobile hero section */
        min-height: 100vh !important;
        height: auto !important;
    }

    /* Ensure video elements cover full mobile hero height */
    .hero-video-bg #hero-video-container,
    .hero-video-bg #hero-video,
    .hero-video-bg #hero-youtube-iframe {
        min-height: 100vh !important;
        height: 100vh !important;
    }

    /* Make sure the row stacks properly on mobile */
    .hero-section .row {
        min-height: 100vh;
        align-items: center;
    }

    /* Adjust column layout for mobile stacking */
    .hero-section .col-lg-6 {
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Mobile adjustments for blur backgrounds - Pure blur effect */
    .hero-content-blur {
        padding: 1.2rem;
        margin: 0.3rem 0;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        /* No background color - pure blur effect only */
    }

    .hero-video-blur {
        padding: 0.8rem;
        margin: 0.3rem 0;
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
        /* No background color - pure blur effect only */
    }

    /* Mobile play button adjustments */
    .mobile-play-button {
        font-size: 3rem;
        padding: 15px;
    }

    /* Enhanced text visibility on mobile */
    .hero-section .display-4,
    .hero-section .display-5 {
        color: #1a252f; /* Darker for better mobile visibility */
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }

    .hero-section .lead,
    .hero-section .hero-description {
        color: #1a1a1a; /* Near-black greyish for mobile */
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
        font-weight: 600; /* Bolder on mobile */
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .plan-details {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }

    /* Better mobile layout for plan cards */
    .plan-details .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .schedule-display {
        max-width: 100%;
        margin-top: 0.25rem;
    }

    .schedule-date {
        font-size: 0.85rem;
    }

    .schedule-time {
        font-size: 0.75rem;
    }

    /* Legacy schedule text styling for mobile */
    .schedule-text {
        max-width: 100%;
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }

    /* Contact section mobile adjustments */
    #contact {
        min-height: 500px;
    }

    .contact-info-card {
        margin-top: 2rem;
    }

    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .contact-icon-wrapper i {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        border-radius: var(--border-radius) !important;
        flex: 1;
        min-width: calc(50% - 0.125rem);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow-lg);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

/* Success Modal Styling */
#successModal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

#successModal .modal-header {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border: none;
}

#successModal .success-icon {
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#successModal .card {
    transition: transform 0.2s ease;
}

#successModal .card:hover {
    transform: translateY(-2px);
}

/* Team Registration Styles */
.member-form {
    position: relative;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Dark mode support for member forms - will be overridden by index.html styles */
[data-theme="dark"] .member-form {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

.member-form:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

[data-theme="dark"] .member-form:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.member-form .badge {
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Team registration alerts */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    color: #1565c0;
}

.alert-primary {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: none;
    color: #6a1b9a;
}

/* Dark mode alert styling */
[data-theme="dark"] .alert-info {
    background: rgba(13, 110, 253, 0.15) !important;
    border: 1px solid rgba(13, 110, 253, 0.4) !important;
    color: #6ea8fe !important;
}

[data-theme="dark"] .alert-primary {
    background: rgba(13, 110, 253, 0.15) !important;
    border: 1px solid rgba(13, 110, 253, 0.4) !important;
    color: #6ea8fe !important;
}

[data-theme="dark"] .alert-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    color: #ffda6a !important;
}

/* Modal specific alert overrides */
[data-theme="dark"] .modal .alert-info,
[data-theme="dark"] .modal .alert-primary {
    background-color: rgba(13, 110, 253, 0.15) !important;
    border-color: rgba(13, 110, 253, 0.4) !important;
    color: #6ea8fe !important;
}

[data-theme="dark"] .modal .alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #ffda6a !important;
}

/* Alert text elements */
[data-theme="dark"] .modal .alert h5,
[data-theme="dark"] .modal .alert .alert-heading,
[data-theme="dark"] .modal .alert p,
[data-theme="dark"] .modal .alert .mb-0 {
    color: inherit !important;
}

/* Form validation styling */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-feedback {
    display: none; /* Hidden by default */
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

/* Show invalid feedback only when input has is-invalid class */
.is-invalid ~ .invalid-feedback,
.form-control.is-invalid + .invalid-feedback,
.form-select.is-invalid + .invalid-feedback {
    display: block;
}

/* Consent checkbox styling - red initially, green when checked */
#medicalConsent {
    border: 2px solid #dc3545 !important; /* Red border initially */
}

#medicalConsent:checked {
    background-color: #198754 !important; /* Green background when checked */
    border-color: #198754 !important; /* Green border when checked */
}

/* Enhanced modal styling for team registration */
.modal-lg {
    max-width: 900px;
}

/* Responsive team registration */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
    }

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

    .member-form .badge {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    /* Mobile-friendly file upload areas */
    .upload-area {
        min-height: 120px !important;
        padding: 1.5rem !important;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        border: 2px dashed #007bff;
        border-radius: 8px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }

    .upload-area:hover,
    .upload-area:active {
        border-color: #0056b3;
        background-color: #e3f2fd;
        transform: scale(1.02);
    }

    .upload-icon {
        font-size: 2.5rem !important;
        color: #007bff;
        margin-bottom: 0.75rem !important;
    }

    .upload-text {
        font-size: 1rem !important;
        font-weight: 600;
        color: #007bff;
        margin-bottom: 0.5rem !important;
    }

    /* Make file inputs more accessible on mobile */
    input[type="file"] {
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Print Styles - Fix for registration confirmation modal printing */
@media print {
    /* Set page margins and size */
    @page {
        margin: 0.5in;
        size: A4;
    }

    /* Hide everything by default */
    * {
        visibility: hidden;
    }

    /* Only show the success modal content when printing */
    #successModal,
    #successModal * {
        visibility: visible;
    }

    /* Position the modal content for printing */
    #successModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid !important;
    }

    /* Remove modal backdrop and positioning */
    #successModal .modal-dialog {
        position: static !important;
        margin: 0 !important;
        padding: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
    }

    /* Style the modal content for print */
    #successModal .modal-content {
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    /* Hide modal header close button and footer buttons */
    #successModal .modal-header .btn-close,
    #successModal .modal-footer .btn {
        display: none !important;
    }

    /* Compact modal header for print */
    #successModal .modal-header {
        border-bottom: 1px solid #2c5aa0 !important;
        padding: 8px 0 !important;
        margin-bottom: 10px !important;
        background: white !important;
    }

    #successModal .modal-title {
        font-size: 16pt !important;
        color: #2c5aa0 !important;
        margin: 0 !important;
    }

    /* Compact modal body spacing */
    #successModal .modal-body {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide footer completely */
    #successModal .modal-footer {
        display: none !important;
    }

    /* Compact cards and content for print */
    #successModal .card {
        border: 1px solid #dee2e6 !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
    }

    #successModal .card-body {
        padding: 8px !important;
    }

    /* Compact success icon */
    #successModal .success-icon {
        margin-bottom: 8px !important;
    }

    #successModal .success-icon i {
        font-size: 1.5rem !important;
    }

    /* Ensure text is black for print */
    #successModal * {
        color: black !important;
        background: white !important;
    }

    /* Keep important colors for badges and highlights */
    #successModal .badge {
        background-color: #2c5aa0 !important;
        color: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-size: 9pt !important;
        padding: 2px 6px !important;
    }

    #successModal .alert-warning {
        background-color: #fff3cd !important;
        border-color: #ffeaa7 !important;
        color: #856404 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 8px !important;
        margin: 8px 0 !important;
    }

    /* Compact font sizes for print */
    #successModal h1, #successModal h2, #successModal h3 {
        font-size: 14pt !important;
        font-weight: bold !important;
        margin: 8px 0 4px 0 !important;
        line-height: 1.2 !important;
    }

    #successModal h4, #successModal h5, #successModal h6 {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin: 6px 0 3px 0 !important;
        line-height: 1.2 !important;
    }

    #successModal p, #successModal li, #successModal span, #successModal td {
        font-size: 10pt !important;
        line-height: 1.3 !important;
        margin: 2px 0 !important;
    }

    #successModal .text-center h4 {
        margin: 4px 0 !important;
    }

    /* Compact row and column spacing */
    #successModal .row {
        margin: 0 !important;
    }

    #successModal .col-md-4,
    #successModal .col-md-6 {
        padding: 2px !important;
    }

    /* Remove any animations or transitions for print */
    #successModal * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    /* Ensure single page layout */
    #successModal .modal-body > div {
        margin-bottom: 6px !important;
    }

    /* Compact member cards for team registrations */
    #successModal #teamMembersList .card {
        margin-bottom: 4px !important;
    }

    #successModal #teamMembersList .card-body {
        padding: 4px 8px !important;
    }
}

/* Drag and Drop Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #e9ecef;
}

.upload-area.drag-over {
    border-color: var(--primary-color) !important;
    background-color: rgba(44, 90, 160, 0.1) !important;
    transform: scale(1.02);
}

.upload-area.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.upload-area.disabled:hover {
    border-color: #dee2e6;
    background-color: #e9ecef;
    transform: none;
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-text {
    color: var(--text-muted);
    font-weight: 500;
}

.file-info {
    margin-top: 0.5rem;
}

/* Form Validation Styles Enhancement */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Removed duplicate - using the one above with proper display logic */

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

/* Character Count Styles */
.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}
