/* Custom Styles for CRM Jamaica Christmas Caravan */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #28a745;
    --accent-color: #dc3545;
    --christmas-red: #c41e3a;
    --christmas-green: #2e8b57;
    --christmas-gold: #ffd700;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Emergency Alert */
.emergency-alert {
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 3px solid var(--christmas-red);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3d6f 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "🎄";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
    z-index: 1;
}

.emergency-contact-card {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.emergency-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Christmas Caravan Section */
.christmas-caravan {
    background: linear-gradient(135deg, #fff8f8 0%, #f8fff8 100%);
    position: relative;
}

.christmas-caravan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--christmas-red), var(--christmas-gold), var(--christmas-green));
}

.event-highlight {
    transition: all 0.3s ease;
    border-width: 3px;
}

.event-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.event-location {
    transition: all 0.3s ease;
    border-width: 3px;
}

.event-location:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-location .card-header {
    border-bottom: 3px solid currentColor;
}

/* Partner Cards */
.partner-card {
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.partner-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Action Cards */
.action-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Services */
.service-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Christmas Float Button */
.christmas-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 95px;
    right: 25px;
    background-color: var(--christmas-red);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 25px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.christmas-float:hover {
    background-color: #a11a30;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Enhanced Form Styling */
.enhanced-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

.form-section {
    border-left: 4px solid var(--christmas-red);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.form-section h5 {
    color: var(--christmas-red);
    margin-bottom: 1rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--christmas-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Location Option Styling */
.location-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

.location-option.selected-location {
    border-color: var(--christmas-red);
    background-color: #fff8f8;
}

/* Child Entry Styling */
.child-entry {
    background-color: #f8f9fa;
    border-left: 4px solid var(--christmas-green);
}

/* Payment Section */
.payment-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px dashed #2c5aa0;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: #e8f4ff;
}

.paypal-button-container {
    margin: 1rem 0;
    text-align: center;
}

/* Multi-step forms */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

/* Progress bar */
.progress-bar-container {
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-step .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-weight: bold;
}

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

.progress-step.completed .step-number {
    background: var(--secondary-color);
    color: white;
}

/* Enhanced checkboxes and radios */
.form-check-input:checked {
    background-color: var(--christmas-red);
    border-color: var(--christmas-red);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .christmas-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 80px;
        right: 20px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .enhanced-form {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: var(--christmas-red);
    border-color: var(--christmas-red);
}

.btn-danger:hover {
    background-color: #a11a30;
    border-color: #a11a30;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Messages */
.alert-success {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid var(--christmas-green);
}

/* Badge Styling */
.badge {
    font-size: 0.9em;
    padding: 0.5em 0.8em;
}

/* Footer */
footer {
    border-top: 5px solid var(--christmas-green);
}

/* Map container */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

/* File upload styling */
.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.file-upload.dragover {
    border-color: var(--primary-color);
    background-color: #e8f4ff;
}

/* Christmas Animation */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.twinkle {
    animation: twinkle 2s infinite;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
