/* ========================================
   Municipal Cemetery & Crematorium System
   Main Stylesheet
   ======================================== */

/* Custom badge color for RequiresApproval status */
.bg-purple { background-color: #6f42c1 !important; }

:root {
    --primary: #1e3a5f;
    --primary-light: #2563EB;
    --secondary: #6c757d;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;
    --bg-light: #f8fafc;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #1a202c;
    background-color: #f8fafc;
}

/* ----------------------------------------
   Navbar
   ---------------------------------------- */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a4080 100%) !important;
}

.navbar-brand {
    font-size: 1rem;
    white-space: nowrap;
}

.navbar .nav-link {
    white-space: nowrap;
}

.fs-7 { font-size: 0.75rem; }
.fs-8 { font-size: 0.65rem; }

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2340 50%, #1a3a5c 100%);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='40' fill='rgba(255,255,255,0.02)'/%3E%3Ccircle cx='80' cy='80' r='60' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.min-vh-hero {
    min-height: 75vh;
}

.opacity-90 { opacity: 0.9; }

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card-hover {
    transition: var(--transition);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.rounded-4 { border-radius: 0.75rem !important; }
.rounded-top-4 { border-top-left-radius: 0.75rem !important; border-top-right-radius: 0.75rem !important; }
.rounded-bottom-4 { border-bottom-left-radius: 0.75rem !important; border-bottom-right-radius: 0.75rem !important; }

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------
   Steps Section
   ---------------------------------------- */
.step-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.form-control, .form-select {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-success,
.btn-check:checked + .btn-outline-info,
.btn-check:checked + .btn-outline-secondary {
    font-weight: 600;
}

/* ----------------------------------------
   Price Display
   ---------------------------------------- */
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------------------
   Booking Receipt
   ---------------------------------------- */
.info-group {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

/* ----------------------------------------
   Status Timeline
   ---------------------------------------- */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    font-size: 0.6rem;
    top: 4px;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ----------------------------------------
   Icons
   ---------------------------------------- */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ----------------------------------------
   Slot Time Display
   ---------------------------------------- */
.col-lg-2-4 {
    width: 20%;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .col-lg-2-4 {
        width: 50%;
    }
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}

/* ----------------------------------------
   Confirmation Page
   ---------------------------------------- */
.confirmation-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ----------------------------------------
   Utility
   ---------------------------------------- */
.font-monospace { font-family: 'Courier New', monospace; }

.badge { font-weight: 500; }

.table th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
}

.table td { font-size: 0.9rem; }

/* Alert top bar */
.alert.m-0.rounded-0 { border-radius: 0 !important; }

/* Print Styles */
@media print {
    .navbar, footer, .no-print { display: none !important; }
    body { background: white; }
}
