:root {
    --gcesz-apricot: #eb8471;
    --gcesz-breaker-bay: #57a394;
    --gcesz-casal: #326573;
    --gcesz-yuma: #c5bb85;
    --gcesz-brandy-rose: #b48478;
    --gcesz-gray: #928d89;
    --gcesz-shaft: #212121;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e8ecef;
    --sidebar-shadow: 0 0 40px rgba(29, 58, 83, 0.07);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --hover-bg: #f7fafc;
    --active-bg: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    --active-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: #f8fafc;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: var(--sidebar-shadow);
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    background: var(--sidebar-bg);
}

.brand-container {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: translateX(5px);
}

.logo-wrapper {
    position: relative;
    margin-right: 12px;
}

.logo {
    border-radius: 12px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 12px;
    opacity: 0.1;
    z-index: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gcesz-casal);
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--gcesz-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-content {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section {
    padding: 0 20px 12px 20px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gcesz-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item {
    margin: 4px 12px;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gcesz-breaker-bay);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-link:hover {
    background: var(--hover-bg);
    transform: translateX(8px);
    color: var(--gcesz-casal);
}

.nav-link:hover::before {
    height: 20px;
}

.nav-item.active .nav-link {
    background: var(--active-bg);
    color: var(--active-text);
    /* transform: translateX(8px); */
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.nav-item.active .nav-link::before {
    height: 30px;
    background: var(--active-text);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-weight: 200;
    font-size: 0.9rem;
    flex: 1;
}

.nav-indicator {
    width: 6px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-item.active .nav-indicator {
    background: var(--active-text);
}
/* ================================
   DROPDOWN MENU STYLES (NO BOOTSTRAP)
================================== */
.nav-item.nav-dropdown {
    position: relative;
}

/* Toggle link (parent) */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dropdown-arrow {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

/* Rotate arrow when open */
.nav-item.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown menu container */
.nav-dropdown-menu {
    position: static;
    background: var(--sidebar-bg);
    border: none;
    padding: 0;
    margin: 0;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: dropdownFade 0.3s ease;
}

/* Show when open */
.nav-item.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

/* Dropdown links */
.nav-dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 32px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-link:hover {
    background: var(--hover-bg);
    color: var(--gcesz-casal);
    padding-left: 38px;
}

/* Active link inside dropdown */
.nav-dropdown-item.active .nav-dropdown-link {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border-left-color: var(--gcesz-breaker-bay);
}

/* Dropdown link icons */
.nav-dropdown-link i {
    width: 16px;
    font-size: 0.8rem;
    margin-right: 8px;
}

/* Parent link active (for open dropdown) */
.nav-item.nav-dropdown.open > .nav-link {
    background: var(--active-bg);
    color: var(--active-text);
    /* transform: translateX(8px); */
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

/* Smooth slide + fade animation */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   MOBILE DROPDOWN
================================== */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: relative;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 8px;
        margin: 4px 12px;
        overflow: hidden;
    }

    .nav-dropdown-link {
        padding: 10px 16px 10px 44px;
        font-size: 0.8rem;
    }

    .nav-dropdown-link:hover {
        padding-left: 48px;
    }
}

/* User Widget */
.user-widget {
    padding: 20px;
    border-top: 1px solid var(--sidebar-border);
    background: var(--sidebar-bg);
    margin-top: auto;
}

.user-info {
    margin-bottom: 16px;
}

.last-login {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    padding: 8px 12px;
    background: var(--hover-bg);
    border-radius: 8px;
}

.last-login i {
    font-size: 0.7rem;
    color: var(--gcesz-breaker-bay);
}

.login-text {
    font-weight: 200;
    margin-left: 10px;
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gcesz-apricot), var(--gcesz-brandy-rose));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(235, 132, 113, 0.3);
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
}

.logout-btn-confirmation {
    background: linear-gradient(135deg, var(--gcesz-apricot), var(--gcesz-brandy-rose));
    margin-right: 10px;
}

.swal2-container.swal2-backdrop-show {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 132, 113, 0.4);
    color: white;
}

.logout-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.logout-text {
    font-size: 0.9rem;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

/* Top Header */
.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--sidebar-border);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin: 0;
}

.header-left p {
    color: var(--gcesz-gray);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--hover-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(87, 163, 148, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gcesz-casal);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--hover-bg);
}

/* Content Area */
.dashboard-content {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(50, 101, 115, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
}

.stat-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
}

.stat-trend.negative {
    background: rgba(235, 132, 113, 0.1);
    color: var(--gcesz-apricot);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gcesz-casal);
    margin-bottom: 5px;
    font-family: 'Rubik', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gcesz-gray);
    font-weight: 500;
}

/* Charts and Content Sections */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chart-section, .activity-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
    border: 1px solid #e8ecef;
}

.section-header-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-dashboardh3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Increased from 600px to 80% of viewport height */
    min-height: 600px; /* Minimum height for smaller screens */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Land Use Filter Overlay - Positioned on left side */
.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 1;
    transition: all 0.3s ease;
}

.map-overlay:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.map-overlay h6 {
    color: var(--gcesz-casal);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(87, 163, 148, 0.2);
}

.map-overlay h6 i {
    color: var(--gcesz-breaker-bay);
    font-size: 0.85rem;
    background: rgba(87, 163, 148, 0.1);
    padding: 8px;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.land-use-filters {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
}

/* Custom scrollbar for land use filters */
.land-use-filters::-webkit-scrollbar {
    width: 4px;
}

.land-use-filters::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.5);
    border-radius: 2px;
}

.land-use-filters::-webkit-scrollbar-thumb {
    background: var(--gcesz-breaker-bay);
    border-radius: 2px;
}

.land-use-filters::-webkit-scrollbar-thumb:hover {
    background: var(--gcesz-casal);
}

/* .form-check:hover {
    background: rgba(87, 163, 148, 0.08);
    border-color: rgba(87, 163, 148, 0.3);
    transform: translateX(4px);
} */

.land-use-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    margin-top: 0;
    cursor: pointer;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.land-use-checkbox:checked {
    background-color: var(--gcesz-breaker-bay);
    border-color: var(--gcesz-breaker-bay);
}

.land-use-checkbox:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.land-use-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--gcesz-shaft);
    font-weight: 300;
    transition: color 0.2s ease;
    flex: 1;
}

.land-use-label:hover {
    color: var(--gcesz-casal);
}

.land-use-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Land Use Color Definitions */
.residential-color { background-color: #efb6bf; }
.industrial-color { background-color: #8dc4ec; }
.commercial-color { background-color: #97eb9e; }
.res-comm-color { background-color: #e4ba76; }
.civic-color { background-color: #da90e6; }
.comm-civic-color { background-color: #7de3de; }
.agriculture-color { background-color: #bef184; }
.recreational-color { background-color: #95eb9c; }
.education-color { background-color: #efd57f; }
.water-color { background-color: #7eccf0; }
.open-space-color { background-color: #e0eb7f; }
.protection-buffer-color { background-color: #7ab7e0; }
.carriageway-color { background-color: #e99696; }
.unknown-color { background-color: #e8a0a0; }

.land-use-checkbox:checked + .land-use-label .land-use-color {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.map-overlay hr {
    margin: 16px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.map-overlay .d-flex {
    gap: 10px;
}

.map-overlay .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.map-overlay .btn-outline-primary {
    border: 2px solid var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    background: transparent;
}

.map-overlay .btn-outline-primary:hover {
    background-color: var(--gcesz-breaker-bay);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.map-overlay .btn-outline-secondary {
    border: 2px solid #cbd5e0;
    color: #64748b;
    background: transparent;
}

.map-overlay .btn-outline-secondary:hover {
    background-color: #64748b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Selection Controls - Positioned on right side */
.map-selection-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 1;
    transition: all 0.3s ease;
}

.map-selection-controls:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.selection-mode-toggle .btn {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.selection-mode-toggle .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 163, 148, 0.4);
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

#selectionActions[style*="display: block"] {
    display: flex !important;
}

.selection-actions .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

#viewSelectedParcels {
    background: var(--gcesz-yuma);
    color: var(--gcesz-shaft);
    border: none;
    flex: 1;
    min-width: 0; /* Allow button to shrink if needed */
}

#viewSelectedParcels:hover {
    background: var(--gcesz-brandy-rose);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 132, 120, 0.3);
}

#clearSelection {
    border: 2px solid #cbd5e0;
    color: #64748b;
    padding: 8px;
    width: 40px;
    flex-shrink: 0;
}

#clearSelection:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--gcesz-casal) !important;
    border-radius: 12px;
    margin-left: 6px;
    flex-shrink: 0;
}

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

/* Parcel Details Offcanvas */
.map-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-offcanvas.active {
    right: 0;
}

.offcanvas-header__parcel {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, var(--gcesz-casal), var(--gcesz-breaker-bay));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-title__parcel {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.btn-close__parcel {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: white !important;
}

.btn-close__parcel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.offcanvas-body__parcel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.offcanvas-footer__parcel {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: white;
    display: flex;
    gap: 12px;
}

.btn-map {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-primary {
    border: 2px solid var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gcesz-breaker-bay);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--gcesz-yuma), var(--gcesz-brandy-rose));
    color: var(--gcesz-shaft);
    border: none;
    font-weight: 600;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 187, 133, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        height: 500px;
    }
    
    .map-overlay {
        position: relative;
        top: auto;
        left: auto;
        margin: 16px;
        width: calc(100% - 32px);
        min-width: auto;
    }
    
    .map-selection-controls {
        position: relative;
        top: auto;
        right: auto;
        margin: 16px;
        width: calc(100% - 32px);
        min-width: auto;
    }
    
    .map-offcanvas {
        width: 100%;
        right: -100%;
    }
    
    .offcanvas-footer__parcel {
        flex-direction: column;
    }
    
    .land-use-filters {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 400px;
    }
    
    .map-overlay,
    .map-selection-controls {
        margin: 12px;
        width: calc(100% - 24px);
        padding: 16px;
    }
    
    .land-use-filters {
        max-height: 180px;
    }
    
    .form-check {
        padding: 8px 10px;
    }
}

.map-land-use-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gcesz-gray);
    color: var(--gcesz-gray);
}

.btn-outline:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--hover-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(87, 163, 148, 0.05);
    transform: translateX(5px);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-desc {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
    margin-top: 4px;
}

/* Recent Applications */
.applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.applications-table th,
.applications-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8ecef;
}

.applications-table th {
    font-weight: 600;
    color: var(--gcesz-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(197, 187, 133, 0.1);
    color: var(--gcesz-yuma);
}

.status-approved {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
}

.status-rejected {
    background: rgba(235, 132, 113, 0.1);
    color: var(--gcesz-apricot);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dashboard-header {
        padding: 15px 20px;
    }

    .dashboard-content {
        padding: 1rem !important;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .header-right {
        gap: 15px;
    }

    .user-details {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: var(--hover-bg);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--gcesz-gray);
    border-radius: 10px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gcesz-casal);
}

/* Animation for mobile menu */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Active state animations */
.nav-item {
    animation: fadeInUp 0.4s ease;
}

.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:nth-child(4) { animation-delay: 0.3s; }
.nav-item:nth-child(5) { animation-delay: 0.4s; }

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

/* Full page loader overlay */
#pageLoader {
    position: fixed;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgb(255, 255, 255), rgb(245, 246, 252));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 360ms ease, visibility 360ms ease;
    opacity: 1;
    visibility: visible;
}

/* hidden state */
#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* inner container */
#pageLoader .loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    transform: translateY(0);
    transition: transform 300ms ease;
}

/* optional logo area */
#pageLoader .loader-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* spinner */
.loader-spinner {
    width: 64px;
    height: 64px;
    animation: rotate 1s linear infinite;
    display: block;
}

.loader-spinner .path {
    stroke: var(--gcesz-casal);          /* primary color — change to match your brand */
    stroke-linecap: round;
    stroke-dasharray: 90;
    stroke-dashoffset: 0;
    transform-origin: 50% 50%;
    animation: dash 1.2s ease-in-out infinite;
}

/* small informative text */
.loader-text {
    font-size: 14px;
    color: #6c757d;
}

/* animations */
@keyframes rotate {
    
}
@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
}
}

/* small responsive tweak */
@media (max-width: 420px) {
    .loader-spinner { width: 48px; height: 48px; }
    #pageLoader .loader-logo img { width: 48px; height: 48px; }
    .loader-text { font-size: 13px; }
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Additional styles for the lease applications section */
.applications-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
    border: 1px solid #e8ecef;
    margin-top: 30px;
}

.applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.applications-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin: 0;
}

.applications-subtitle {
    color: var(--gcesz-gray);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    font-weight: 100;
}

/* Filter Section */
.filter-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e8ecef;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #e8ecef;
    border-radius: 20px;
    background: white;
    color: var(--gcesz-gray);
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border-color: transparent;
}

.filter-tab:hover:not(.active) {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    padding-left: 40px;
    border-radius: 20px;
    border: 1px solid #e8ecef;
    height: 40px;
    font-size: 0.9rem;
    background: white;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gcesz-gray);
    z-index: 2;
}

/* Application Cards */
.application-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.application-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.application-id {
    font-weight: 600;
    color: var(--gcesz-casal);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.application-date {
    color: var(--gcesz-gray);
    font-size: 0.8rem;
}

.card-body {
    padding: 20px;
}

.applicant-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.applicant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gcesz-yuma), var(--gcesz-brandy-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 12px;
}

.applicant-details h5 {
    margin: 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 0.95rem;
}

.applicant-details p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.8rem;
}

/* Parcel Summary */
.parcel-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e8ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.parcel-summary:hover {
    background: rgba(87, 163, 148, 0.05);
    border-color: var(--gcesz-breaker-bay);
}

.parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.parcel-title {
    font-weight: 600;
    color: var(--gcesz-shaft);
    font-size: 0.9rem;
    margin: 0;
}

.parcel-count {
    background: var(--gcesz-breaker-bay);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.parcel-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gcesz-breaker-bay);
    border: 1px solid #e8ecef;
    margin-bottom: 12px;
}

.parcel-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.parcel-tag {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gcesz-gray);
    border: 1px solid #e8ecef;
}

.view-parcels-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    color: var(--gcesz-gray);
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-parcels-btn:hover {
    background: rgba(87, 163, 148, 0.1);
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

/* Progress Section */
.step-indicator {
    margin-bottom: 16px;
}

.step-label {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.step-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.step-badge.current {
    background: var(--gcesz-breaker-bay);
    color: white;
}

.step-badge.completed {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
}

.progress-section {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-weight: 600;
    color: var(--gcesz-shaft);
    font-size: 0.8rem;
}

.progress-percentage {
    font-weight: 700;
    color: var(--gcesz-breaker-bay);
    font-size: 0.8rem;
}

.progress-bar-container {
    height: 6px;
    background: #e8ecef;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-bar.warning {
    background: var(--gcesz-yuma);
}

/* Card Footer */
.card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-in-progress {
    background: rgba(197, 187, 133, 0.1);
    color: var(--gcesz-yuma);
    border: 1px solid rgba(197, 187, 133, 0.2);
}

.status-submitted {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border: 1px solid rgba(87, 163, 148, 0.2);
}

.status-under-review {
    background: rgba(50, 101, 115, 0.1);
    color: var(--gcesz-casal);
    border: 1px solid rgba(50, 101, 115, 0.2);
}

.status-completed {
    background: rgba(146, 141, 137, 0.1);
    color: var(--gcesz-gray);
    border: 1px solid rgba(146, 141, 137, 0.2);
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view {
    background: rgba(50, 101, 115, 0.1);
    color: var(--gcesz-casal);
}

.btn-view:hover {
    background: var(--gcesz-casal);
    color: white;
}

.btn-track {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
}

.btn-track:hover {
    background: var(--gcesz-breaker-bay);
    color: white;
}

.btn-pay {
    background: rgba(197, 187, 133, 0.1);
    color: var(--gcesz-yuma);
}

.btn-pay:hover {
    background: var(--gcesz-yuma);
    color: white;
}

.btn-download {
    background: rgba(146, 141, 137, 0.1);
    color: var(--gcesz-gray);
}

.btn-download:hover {
    background: var(--gcesz-gray);
    color: white;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    color: var(--gcesz-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    font-size: 3rem;
    color: #e8ecef;
    margin-bottom: 16px;
}

.empty-state h4 {
    color: var(--gcesz-gray);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Vertical Stats Layout */
.vertical-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vertical-stat-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
}

.vertical-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vertical-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vertical-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gcesz-casal);
    line-height: 1;
}

.vertical-stat-label {
    font-size: 0.9rem;
    color: var(--gcesz-gray);
    font-weight: 500;
}

.vertical-stat-progress {
    margin-top: 8px;
}

.vertical-progress-bar {
    height: 6px;
    background: #e8ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.vertical-progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-total { background: var(--gcesz-casal); }
.progress-in-progress { background: var(--gcesz-yuma); }
.progress-submitted { background: var(--gcesz-breaker-bay); }
.progress-completed { background: var(--gcesz-gray); }

.vertical-progress-percentage {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
    font-weight: 300;
    text-align: right;
}

/* Layout for applications section */
.applications-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .applications-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vertical-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .application-cards {
        grid-template-columns: 1fr;
    }
    
    .vertical-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

/* Payment Verification Modal Styles */
.payment-verification-modal.modal {
    z-index: 1060;
}

.payment-verification-modal .modal-dialog {
    max-width: 400px;
    margin: auto;                 /* Center horizontally */
    top: 30%;                     /* Push to center vertically */
    transform: translateY(-50%);  /* Adjust to perfect center */
    position: relative;           /* Required for top + transform */
}

.payment-verification-modal .modern-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(33, 34, 35, 0.3);
    overflow: hidden;
}

.payment-verification-modal .modal-header {
    background: linear-gradient(135deg, #326573 0%, #57a394 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.payment-verification-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.payment-verification-modal .modal-title i {
    font-size: 1.5rem;
}

.payment-verification-modal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    filter: invert(1);
    transition: all 0.2s ease;
}

.payment-verification-modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.payment-verification-modal .modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
}

.payment-verification-modal .info-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(197, 187, 133, 0.1);
    border: 1px solid rgba(197, 187, 133, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.payment-verification-modal .info-text i {
    color: #c5bb85;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.payment-verification-modal .info-text span {
    color: #67513c;
    font-size: 0.95rem;
    line-height: 1.5;
}

.payment-verification-modal #verifyPaymentBtn {
    background: linear-gradient(135deg, #57a394 0%, #326573 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(87, 163, 148, 0.3);
    position: relative;
    overflow: hidden;
}

.payment-verification-modal #verifyPaymentBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(87, 163, 148, 0.4);
}

.payment-verification-modal #verifyPaymentBtn:active {
    transform: translateY(0);
}

.payment-verification-modal #verifyPaymentBtn:disabled {
    background: #928d89;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.payment-verification-modal #verifyPaymentBtn.loading {
    color: transparent;
}

.payment-verification-modal #verifyPaymentBtn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: payment-verification-spin 1s linear infinite;
}

/* Animation for modal appearance */
.payment-verification-modal.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-verification-modal.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Loading spinner animation */
@keyframes payment-verification-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .payment-verification-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .payment-verification-modal .modal-header {
        padding: 1.25rem;
    }
    
    .payment-verification-modal .modal-body {
        padding: 1.5rem 1.25rem;
    }
    
    .payment-verification-modal .info-text {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .payment-verification-modal .modal-body {
        background-color: #2d3748;
    }
    
    .payment-verification-modal .info-text {
        background: rgba(197, 187, 133, 0.15);
        border-color: rgba(197, 187, 133, 0.4);
    }
    
    .payment-verification-modal .info-text span {
        color: #e2e8f0;
    }
} */

/* Parcel Details Modal */
.parcel-details-modal .modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
    height: 80% !important;
    min-height: 90vh;
}

.parcel-details-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(50, 101, 115, 0.2);
    background: white;
    overflow: hidden;
    max-height: 1500px;
}

.parcel-details-modal .modal-header {
    background: white;
    border-bottom: 1px solid #e8ecef;
    padding: 24px 30px 20px;
    position: relative;
}

.parcel-details-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parcel-details-modal .modal-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 2px;
}

.parcel-details-modal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23928d89'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: none;
    opacity: 0.7;
    padding: 8px;
    margin: -8px -8px -8px auto;
    transition: all 0.3s ease;
}

.parcel-details-modal .btn-close:hover {
    opacity: 1;
    background-color: rgba(146, 141, 137, 0.1);
    transform: rotate(90deg);
}

.parcel-details-modal .modal-body {
    padding: 30px;
    /* max-height: 60vh; */
    overflow-y: auto;
}

.parcel-details-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e8ecef;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Parcel List Styling */
.parcel-list {
  padding: 5px;
 /*  max-height: 550px; adjust as needed */
  overflow-y: auto;
  scrollbar-width: thin;  /* Firefox */
  scrollbar-color: #ccc #f9f9f9; /* scrollbar styling */
}

/* Optional: Chrome, Edge, Safari scrollbar styling */
.parcel-list::-webkit-scrollbar {
  width: 6px;
}
.parcel-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
.parcel-list::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.parcel-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ecef;
}

.parcel-list-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gcesz-apricot);
    margin: 0;
}

.parcel-list-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--gcesz-gray);
}

.parcel-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(87, 163, 148, 0.1);
    border-radius: 8px;
    color: var(--gcesz-breaker-bay);
    font-weight: 500;
}

.parcel-summary-item i {
    font-size: 0.8rem;
}

.parcel-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parcel-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.parcel-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parcel-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 101, 115, 0.1);
    border-color: var(--gcesz-breaker-bay);
}

.parcel-list-item:hover::before {
    opacity: 1;
}

.parcel-list-info {
    flex: 1;
}

.parcel-list-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parcel-id {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.parcel-list-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gcesz-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.parcel-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(50, 101, 115, 0.1);
    color: var(--gcesz-casal);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.parcel-type i {
    font-size: 0.7rem;
}

.parcel-size {
    color: var(--gcesz-gray);
    font-weight: 100;
}

.parcel-list-price {
    text-align: right;
    min-width: 120px;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gcesz-breaker-bay);
    margin-bottom: 4px;
}

.price-label {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    font-weight: 100;
}

/* Empty State for Modal */
.parcel-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gcesz-gray);
}

.parcel-list-empty i {
    font-size: 3rem;
    color: #e8ecef;
    margin-bottom: 16px;
}

.parcel-list-empty h4 {
    color: var(--gcesz-gray);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.parcel-list-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* Modal Footer Buttons */
.parcel-details-modal .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.parcel-details-modal .btn-secondary {
    background: white;
    border: 1px solid var(--gcesz-gray);
    color: var(--gcesz-gray);
}

.parcel-details-modal .btn-secondary:hover {
    background: var(--gcesz-gray);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 141, 137, 0.3);
}

.parcel-details-modal .btn-primary {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
}

.parcel-details-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.4);
}

/* Scrollbar Styling for Modal */
.parcel-details-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.parcel-details-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.parcel-details-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--gcesz-gray);
    border-radius: 3px;
}

.parcel-details-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gcesz-casal);
}

/* Responsive Design */
@media (max-width: 768px) {
    .parcel-details-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .parcel-details-modal .modal-header {
        padding: 20px 24px 16px;
    }
    
    .parcel-details-modal .modal-title {
        font-size: 1.1rem;
    }
    
    .parcel-list {
        padding: 20px;
    }
    
    .parcel-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .parcel-list-summary {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .parcel-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .parcel-list-price {
        text-align: left;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
    
    .parcel-details-modal .modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .parcel-details-modal .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .parcel-details-modal .modal-header {
        padding: 16px 20px 12px;
    }

    .parcel-details-modal .modal-dialog {
        /* margin: 1rem; */
        max-width: calc(100% - 2rem);
        padding: 20px;
    }
    
    .parcel-list {
        padding: 16px;
    }
    
    .parcel-list-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .parcel-details-modal .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Animation for modal appearance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* .parcel-details-modal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
} */

/* Backdrop styling */
/* .parcel-details-modal.modal-backdrop {
    background: rgba(50, 101, 115, 0.6);
    backdrop-filter: blur(4px);
}

.parcel-details-modal.modal-backdrop.show {
    opacity: 1;
} */

.d-none {
  display: none !important;
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gcesz-shaft);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    appearance: none;
}

.form-control:focus {
    color: var(--gcesz-shaft);
    background-color: white;
    border-color: var(--gcesz-breaker-bay);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--gcesz-gray);
    opacity: 0.7;
    font-weight: 400;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f8fafc;
    border-color: #e8ecef;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Control Sizes */
.form-control-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 12px;
}

/* Form Control States */
.form-control.is-valid {
    border-color: var(--gcesz-breaker-bay);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2357a394' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
}

.form-control.is-invalid {
    border-color: var(--gcesz-apricot);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23eb8471'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: var(--gcesz-apricot);
    box-shadow: 0 0 0 3px rgba(235, 132, 113, 0.1);
}

/* Form Control in different contexts */
.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group:not(.has-validation) > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group.has-validation > .form-control:nth-last-child(n+3) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Form Control with icons */
.form-control-with-icon {
    position: relative;
}

.form-control-with-icon .form-control {
    padding-left: 45px;
}

.form-control-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gcesz-gray);
    z-index: 2;
    font-size: 1rem;
}

.form-control-with-icon .form-control:focus + .input-icon {
    color: var(--gcesz-breaker-bay);
}

/* Search box specific styles (for your existing search box) */
.search-box .form-control {
    border-radius: 20px;
    padding-left: 40px;
    background: white;
}

.search-box .form-control:focus {
    background: white;
    border-color: var(--gcesz-breaker-bay);
}

/* Textarea specific styles */
.form-control textarea {
    min-height: 100px;
    resize: vertical;
}

.form-control textarea.form-control-lg {
    min-height: 120px;
}

.form-control textarea.form-control-sm {
    min-height: 80px;
}

/* Select dropdown styles */
.form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23928d89' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-control select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2357a394' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-control select[multiple] {
    background-image: none;
    padding-right: 12px;
}

/* File input styles */
.form-control[type="file"] {
    overflow: hidden;
    padding: 11px 16px;
}

.form-control[type="file"]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin: -11px -16px;
    margin-inline-end: 16px;
    color: var(--gcesz-shaft);
    background-color: #f8fafc;
    border: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover::file-selector-button {
    background-color: #e8ecef;
}

.form-control[type="file"]:focus::file-selector-button {
    background-color: #e8ecef;
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
}

/* Range input styles */
.form-control[type="range"] {
    padding: 0;
    background: transparent;
    border: none;
    appearance: none;
}

.form-control[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--gcesz-breaker-bay);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-control[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--gcesz-breaker-bay);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-control[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e8ecef;
    border-radius: 3px;
}

.form-control[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e8ecef;
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-control {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-control-lg {
        padding: 14px 18px;
    }
    
    .form-control-sm {
        padding: 6px 10px;
    }
}

/* Dark mode support (optional) */
/* @media (prefers-color-scheme: dark) {
    .form-control {
        background-color: #1a1a1a;
        border-color: #404040;
        color: #e5e5e5;
    }
    
    .form-control:focus {
        background-color: #1a1a1a;
        border-color: var(--gcesz-breaker-bay);
    }
    
    .form-control::placeholder {
        color: #a3a3a3;
    }
} */

/* Custom Stepper Styles */
.custom-stepper {
    position: relative;
    padding: 0 80px;
    margin-bottom: 40px;
}

.stepper {
    position: relative;
}

.progress.progress-xs {
    height: 5px;
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    z-index: 1;
}

.nav-pills {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.nav-link.rounded-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: white;
    border: 2px solid #e8ecef;
    color: var(--gcesz-gray);
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.rounded-circle.active {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

.nav-link.rounded-circle.activeComplete {
    background: var(--gcesz-breaker-bay);
    border-color: transparent;
    color: white;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

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

/* Alert Styles */
.alert-subtle-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    color: var(--gcesz-gray);
}

.alert.alert-warning {
    background-color: rgba(197, 187, 133, 0.1);
    border: 1px solid rgba(197, 187, 133, 0.3);
    color: var(--gcesz-yuma);
}

.alert.alert-info {
    background-color: rgba(50, 101, 115, 0.1);
    border: 1px solid rgba(50, 101, 115, 0.3);
    color: var(--gcesz-casal);
}

.alert.alert-success {
    background-color: rgba(87, 163, 148, 0.1);
    border: 1px solid rgba(87, 163, 148, 0.3);
    color: var(--gcesz-breaker-bay);
}

.alert.alert-danger {
    background-color: rgba(235, 132, 113, 0.1);
    border: 1px solid rgba(235, 132, 113, 0.3);
    color: var(--gcesz-apricot);
}

.alert.ri-error-warning-line {
    color: var(--gcesz-apricot);
}

/* Badge Styles */
.badge.bg-outline-success {
    background-color: transparent;
    border: 1px solid var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

.badge.bg-success {
    background-color: var(--gcesz-breaker-bay);
}

.badge.bg-warning {
    background-color: var(--gcesz-yuma);
    color: var(--dark);
}

.badge.bg-primary {
    background-color: var(--gcesz-casal);
}

/* Card Styles */
.card-h-100 {
    height: 100%;
}

.bg-light-subtle {
    background-color: rgba(248, 249, 250, 0.8) !important;
}

.bg-white {
    background-color: white !important;
}

/* Form Check Styles */
.form-check-success .form-check-input:checked {
    background-color: var(--gcesz-breaker-bay);
    border-color: var(--gcesz-breaker-bay);
}

.form-check-input:checked {
    background-color: var(--gcesz-breaker-bay);
    border-color: var(--gcesz-breaker-bay);
}

/* Button Styles */
.btn-outline-secondary {
    border-color: var(--gcesz-gray);
    color: var(--gcesz-gray);
}

.btn-outline-secondary:hover {
    background-color: var(--gcesz-gray);
    border-color: var(--gcesz-gray);
    color: white;
}

/* Text Styles */
.text-success {
    color: var(--gcesz-breaker-bay) !important;
}

.text-primary {
    color: var(--gcesz-casal) !important;
}

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

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

.text-muted {
    color: var(--gcesz-gray) !important;
}

/* Pulse Animation */
.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Max Width Utility */
.max-w-384px {
    max-width: 384px;
}

/* Flex Grow Utility */
.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Breadcrumb Styles */
.main-breadcrumb {
    padding: 0;
}

.breadcrumb-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gcesz-casal);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gcesz-gray);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gcesz-casal);
    font-weight: 500;
}

/* Card Header Styles */
.card-header {
    background: white;
    border-bottom: 1px solid #e8ecef;
    padding: 1.5rem;
}

.card-title {
    color: var(--gcesz-casal);
    font-weight: 600;
    margin-bottom: 0;
}

/* Responsive Text */
.fs-14 {
    font-size: 14px;
}

/* Additional Form Styles */
.form-text {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    margin-top: 0.25rem;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e8ecef;
    color: var(--gcesz-gray);
}

/* Modal Specific Styles */
.modal-blur.modal.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Additional Utility Classes */
.border-bottom {
    border-bottom: 1px solid #e8ecef !important;
}

.border-top {
    border-top: 1px solid #e8ecef !important;
}

.pt-2 { padding-top: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pb-3 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Text Alignment */
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-start { text-align: start; }

/* Display Utilities */
.d-block { display: block; }
.d-flex { display: flex; }
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flex Utilities */
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.justify-content-start { justify-content: flex-start; }

/* Position Utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* Width and Height */
.w-auto { width: auto; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Additional Color Utilities */
.bg-light { background-color: #f8f9fa !important; }

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }

/* Border Utilities */
.rounded { border-radius: 0.375rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }

/* Additional Spacing */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Custom Scrollbar for Parcel Grid */
.parcel-grid-small::-webkit-scrollbar {
    width: 4px;
}

.parcel-grid-small::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.parcel-grid-small::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.parcel-grid-small::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for file upload */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.uploaded-file {
    animation: fadeIn 0.3s ease;
}

/* Loading spinner */
.spin {
    animation: spin 1s linear infinite;
}

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

/* Checklist Styles */
.application-checklist {
    border-radius: 8px;
}

.checklist-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background-color: #f8f9fa;
}

.checklist-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checklist-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.checklist-content {
    flex-grow: 1;
}

.checklist-status {
    flex-shrink: 0;
}

.checklist-details {
    padding-left: 44px;
    animation: slideDown 0.3s ease;
}

.steps-list-small .step-bullet {
    width: 8px;
    height: 8px;
}

.steps-list-small .step-item:not(:last-child) .step-bullet::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 4px;
    width: 2px;
    height: 16px;
    background-color: #e9ecef;
}

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

/* Additional responsive utilities */
@media (max-width: 768px) {
    .custom-stepper {
        padding: 0 20px;
    }
    
    .progress.progress-xs {
        left: 30px;
        right: 30px;
    }
    
    .nav-link.rounded-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checklist-status {
        margin-top: 0.5rem;
    }
    
    .checklist-details {
        padding-left: 0;
    }
}

/* Print styles for bills */
@media print {
    .btn,
    .receipt-actions,
    .modal,
    .stepper-nav {
        display: none !important;
    }
    
    .modern-receipt {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Modern Stepper Styles */
.modern-stepper-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.application-header {
    padding: 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gcesz-casal);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--gcesz-gray);
    font-weight: 200;
}

.application-progress {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-width: 250px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    font-weight: 500;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-breaker-bay);
}

/* Stepper Navigation */
.stepper-navigation {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    border-bottom: 1px solid #e8ecef;
}

.stepper-progress {
    margin-bottom: 2rem;
}

.progress-bar-container {
    height: 6px;
    background: #e8ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e8ecef;
    z-index: 1;
}

.step-item:last-child::before {
    display: none;
}

.step-item.completed::before {
    background: var(--gcesz-breaker-bay);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-icon {
    background: var(--gcesz-apricot);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.step-item.completed .step-icon {
    background: var(--gcesz-breaker-bay);
    border-color: transparent;
    color: white;
}

.step-content {
    max-width: 100%;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.25rem;
}

.step-subtitle {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
}

.step-item.active .step-title {
    color: var(--gcesz-casal);
}

/* Step Content */
.stepper-content {
    padding: 2rem;
}

.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* .step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gcesz-casal);
    margin-bottom: 0.5rem;
} */

.step-description {
    font-size: 0.9rem;
    color: var(--gcesz-gray);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 100;
}

/* Application Alerts */
.application-alert {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.alert-warning {
    background: rgba(197, 187, 133, 0.1);
    border-color: rgba(197, 187, 133, 0.2);
}

.alert-info {
    background: rgba(50, 101, 115, 0.1);
    border-color: rgba(50, 101, 115, 0.2);
}

.alert-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.125rem;
}

.alert-warning .alert-icon {
    color: var(--gcesz-yuma);
}

.alert-info .alert-icon {
    color: var(--gcesz-casal);
}

.alert-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gcesz-shaft);
}

.alert-content p {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    margin: 0;
}

/* Parcel Cards */
.parcels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.map-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;

  /* Mobile-first: auto-fit stacked layout */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* On large screens, enforce 2:1 ratio */


.parcel-card {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.parcel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--gcesz-breaker-bay);
}

.parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.parcel-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-casal);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.available {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border: 1px solid rgba(87, 163, 148, 0.2);
}

.parcel-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-item .value {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gcesz-shaft);
}

.info-item .value.price {
    color: var(--gcesz-breaker-bay);
}

/* Form Styles */
.applicant-form {
    /* max-width: 800px; */
    margin: 0 auto;
}

.form-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecef;
}

/* Account Type Selector */
.account-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.type-option {
    position: relative;
}

.type-option input {
    position: absolute;
    opacity: 0;
}

.type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    height: 100%;
}

.type-option input:checked + label {
    border-color: var(--gcesz-breaker-bay);
    background: rgba(87, 163, 148, 0.05);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

.type-option label:hover {
    border-color: var(--gcesz-breaker-bay);
    transform: translateY(-2px);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(87, 163, 148, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.type-option h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.25rem;
}

.type-option p {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
    margin: 0;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
    display: block;
}

.required {
    color: #dc3545;
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
    transform: translateY(-1px);
}

.input-group {
    display: flex;
}

.country-code {
    flex: 0 0 100px;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .modern-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* File Upload */
.file-upload-section {
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed #e8ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: var(--gcesz-breaker-bay);
    background: rgba(87, 163, 148, 0.02);
}

.upload-area i {
    font-size: 2rem;
    color: var(--gcesz-gray);
    margin-bottom: 1rem;
}

.upload-area h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
}

.upload-area p {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    margin-bottom: 1rem;
}

.upload-area input {
    display: none;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecef;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    background: white;
    border: 1px solid #e8ecef;
    color: var(--gcesz-gray);
}

.btn-outline:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }
    
    .application-progress {
        min-width: auto;
    }
    
    .stepper-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step-item::before {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
    }
    
    .step-icon {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .step-content {
        max-width: none;
        flex: 1;
    }
    
    .account-type-selector {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stepper-navigation,
    .stepper-content {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .parcels-grid {
        grid-template-columns: 1fr;
    }
    
    .parcel-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Summary Sections */
.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecef;
}

.section-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.section-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
}

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

.summary-grid .summary-item {
    display: flex;
    flex-direction: column;
}

.summary-grid .summary-item label {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.summary-grid .summary-item .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
}

/* Parcels Grid Summary */
.parcels-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.parcel-summary-card {
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem;
}

.parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.parcel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gcesz-casal);
}

.parcel-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item .label {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
}

.detail-item .value {
    font-size: 0.875rem;
    font-weight: 600;
}

.detail-item .value.price {
    color: var(--gcesz-breaker-bay);
}

.total-summary {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.total-item .value {
    color: var(--gcesz-breaker-bay);
}

/* Terms Content */
.terms-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.terms-intro {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--gcesz-shaft);
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-weight: 100;
    font-size: small;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gcesz-gray);
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gcesz-breaker-bay);
    font-weight: bold;
}

.terms-agreement {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e8ecef;
}

/* Modern Receipt */
.modern-receipt {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e8ecef;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.brand-info h4 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 700;
    font-size: 1.5rem;
    align-items: flex-start;
}

.brand-info p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.receipt-meta {
    text-align: right;
}

.receipt-status {
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(197, 187, 133, 0.1);
    color: var(--gcesz-yuma);
    border: 1px solid rgba(197, 187, 133, 0.2);
}

.receipt-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.date-item .label {
    color: var(--gcesz-gray);
}

.date-item .value {
    font-weight: 600;
    color: var(--gcesz-shaft);
}

/* Receipt Sections */
.receipt-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8ecef;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.section-title h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
}

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

/* Charges Table */
.charges-table {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    font-weight: 600;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.table-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gcesz-casal);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-option.active {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

.option-header {
    padding: 1.5rem;
    background: white;
}

/* .option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
} */

/* .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
} */

.option-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gcesz-shaft);
}

.option-info p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.option-details {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

/* Completion Screen */
.completion-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.completion-content {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.completion-message h2 {
    color: var(--gcesz-casal);
    margin-bottom: 1rem;
    font-weight: 700;
}

.completion-message p {
    color: var(--gcesz-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .receipt-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .receipt-meta {
        text-align: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .parcels-grid-summary {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .payment-container .row {
        flex-direction: column-reverse;
    }
    
    .agreement-container .row {
        flex-direction: column;
    }
}

/* Additional Styles for Steps 3-7 */

/* Step 3: Application Summary Enhancements */
.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecef;
}

.summary-section .section-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.summary-section .section-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.1rem;
}

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

.summary-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item label {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.summary-item .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
}

/* Parcel Summary Cards */
.parcels-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.parcel-summary-card {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.parcel-summary-card:hover {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

.parcel-summary-card .parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecef;
}

.parcel-summary-card .parcel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    font-size: 0.9rem;
}

.parcel-summary-card .parcel-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parcel-summary-card .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parcel-summary-card .detail-item .label {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
}

.parcel-summary-card .detail-item .value {
    font-size: 0.875rem;
    font-weight: 600;
}

.parcel-summary-card .detail-item .value.price {
    color: var(--gcesz-breaker-bay);
}

.total-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.total-item .label {
    color: var(--gcesz-shaft);
}

.total-item .value {
    color: var(--gcesz-breaker-bay);
}

/* Terms & Conditions */
.terms-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.terms-intro {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--gcesz-shaft);
    font-size: 0.95rem;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gcesz-gray);
    line-height: 1.5;
}

.terms-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gcesz-breaker-bay);
    font-weight: bold;
    font-size: 1.2rem;
}

.terms-agreement {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #e8ecef;
}

.terms-agreement .form-check {
    margin: 0;
}

.terms-agreement .form-check-label {
    font-size: 0.9rem;
    color: var(--gcesz-shaft);
    line-height: 1.5;
}

/* Step 4: Bill Summary Enhancements */
.modern-receipt {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e8ecef;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.brand-info h4 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-info p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.receipt-meta {
    text-align: right;
}

.receipt-status {
    margin-bottom: 1rem;
}

.status-badge.pending {
    background: rgba(197, 187, 133, 0.1);
    color: var(--gcesz-yuma);
    border: 1px solid rgba(197, 187, 133, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.receipt-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.date-item .label {
    color: var(--gcesz-gray);
    font-weight: 500;
}

.date-item .value {
    font-weight: 600;
    color: var(--gcesz-shaft);
}

/* Receipt Sections */
.receipt-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8ecef;
}

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

.receipt-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.receipt-section .section-title i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.receipt-section .section-title h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.1rem;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-item .label {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    font-weight: 500;
}

/* .info-item .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
} */

/* Charges Table */
.charges-table {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    font-weight: 600;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.table-body {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.charge-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.charge-row:last-child {
    border-bottom: none;
}

.table-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gcesz-casal);
}

.total-row .label {
    color: var(--gcesz-shaft);
}

.total-row .amount {
    color: var(--gcesz-breaker-bay);
}

/* Receipt Notice */
.receipt-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(50, 101, 115, 0.05);
    border-top: 1px solid #e8ecef;
}

.receipt-notice .notice-icon {
    color: var(--gcesz-casal);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.receipt-notice .notice-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1rem;
}

.receipt-notice .notice-content p {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.receipt-notice .notice-content p:last-child {
    margin-bottom: 0;
}

.receipt-notice .notice-content strong {
    color: var(--gcesz-shaft);
}

/* Receipt Actions */
.receipt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
    gap: 1rem;
}

.receipt-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.receipt-actions .btn-outline {
    background: white;
    border: 1px solid #e8ecef;
    color: var(--gcesz-gray);
}

.receipt-actions .btn-outline:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    transform: translateY(-1px);
}

.receipt-actions .btn-primary {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border: none;
}

.receipt-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

/* Step 5: Payment Styles */
.payment-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e8ecef;
}

.payment-methods-section {
    background: white;
    border-radius: 12px;
    padding: 0;
}

.payment-methods-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8ecef;
}

.payment-methods-section .section-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.2rem;
}

.payment-methods-section .section-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-option.active {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

.payment-option .option-header {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
}

.payment-option .option-header .form-check {
    margin: 0;
}

.payment-option .option-header .form-check-label {
    width: 100%;
    cursor: pointer;
}

.payment-option .option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-option .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.payment-option .option-icon.bg-primary { background: var(--gcesz-breaker-bay); }
.payment-option .option-icon.bg-success { background: var(--gcesz-casal); }
.payment-option .option-icon.bg-warning { background: var(--gcesz-yuma); }
.payment-option .option-icon.bg-info { background: var(--gcesz-gray); }

.payment-option .option-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gcesz-shaft);
    font-size: 1rem;
}

.payment-option .option-info p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.payment-option .option-details {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

.payment-option .option-details .form-group {
    margin-bottom: 1rem;
}

.payment-option .option-details .form-group:last-child {
    margin-bottom: 0;
}

.payment-option .option-details label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
    display: block;
}

.payment-option .option-details .input-group {
    display: flex;
}

.payment-option .option-details .input-group-text {
    background: #e8ecef;
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--gcesz-gray);
}

.payment-option .option-details .form-control {
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.bank-details {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e8ecef;
}

.bank-details h6 {
    margin: 0 0 1rem 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1rem;
}

.bank-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.bank-details .detail-item:last-child {
    border-bottom: none;
}

.bank-details .detail-item span {
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

.bank-details .detail-item strong {
    color: var(--gcesz-shaft);
    font-size: 0.875rem;
}

.bank-details .detail-item .text-primary {
    color: var(--gcesz-breaker-bay) !important;
}

.card-form {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e8ecef;
}

.card-form .row {
    margin: 0 -0.5rem;
}

.card-form .col-12,
.card-form .col-md-6 {
    padding: 0 0.5rem;
}

.card-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
    display: block;
}

.card-form .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e8ecef;
    border-radius: 6px;
}

/* Payment Terms */
.payment-terms {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e8ecef;
}

.payment-terms .form-check {
    margin: 0;
}

.payment-terms .form-check-label {
    font-size: 0.875rem;
    color: var(--gcesz-shaft);
    line-height: 1.5;
}

.payment-terms .form-check-label a {
    color: var(--gcesz-breaker-bay);
    text-decoration: none;
}

.payment-terms .form-check-label a:hover {
    text-decoration: underline;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.payment-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-actions .btn-outline {
    background: white;
    border: 1px solid #e8ecef;
    color: var(--gcesz-gray);
}

.payment-actions .btn-outline:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    transform: translateY(-1px);
}

.payment-actions .btn-success {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border: none;
}

.payment-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.payment-actions .btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Summary */
.payment-summary {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-summary .summary-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e8ecef;
}

.payment-summary .summary-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-summary .summary-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.payment-summary .summary-content {
    padding: 1.5rem;
}

.payment-summary .summary-section {
    margin-bottom: 1.5rem;
}

.payment-summary .summary-section:last-child {
    margin-bottom: 0;
}

.payment-summary .summary-section h6 {
    margin: 0 0 1rem 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ecef;
}

.payment-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.payment-summary .summary-item:last-child {
    border-bottom: none;
}

.payment-summary .summary-item span {
    font-size: 0.875rem;
}

.payment-summary .summary-item span:first-child {
    color: var(--gcesz-gray);
}

.payment-summary .summary-item span:last-child {
    color: var(--gcesz-shaft);
    font-weight: 600;
}

.payment-summary .summary-item .text-warning {
    color: var(--gcesz-yuma) !important;
}

/* Summary Total */
.summary-total {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.summary-total .total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.summary-total .total-item span {
    color: var(--gcesz-gray);
}

.summary-total .total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 0 0;
    margin-top: 0.75rem;
    border-top: 1px solid #e8ecef;
    font-size: 1.125rem;
    font-weight: 700;
}

.summary-total .total-amount span:first-child {
    color: var(--gcesz-shaft);
}

.summary-total .total-amount span:last-child {
    color: var(--gcesz-breaker-bay);
}

/* Security Features */
.security-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e8ecef;
    margin-top: 1.5rem;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.security-item i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.5rem;
}

.security-item span {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
    font-weight: 500;
}

/* Step 6: Agreement Styles */
.agreement-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e8ecef;
}

.agreement-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.document-preview-section h5,
.download-section h5,
.upload-section h5 {
    color: var(--gcesz-casal);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.document-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.preview-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gcesz-apricot);
    font-size: 2rem;
    border: 1px solid #e8ecef;
}

.preview-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.preview-content p {
    margin: 0 0 1rem 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item span {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
}

.meta-item strong {
    font-size: 0.875rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

/* Download Card */
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.download-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.download-content p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

/* Upload Card */
.upload-card {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
    overflow: hidden;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #e8ecef;
    border-radius: 8px;
    margin: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--gcesz-breaker-bay);
    background: rgba(87, 163, 148, 0.02);
}

.upload-icon {
    color: var(--gcesz-gray);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.upload-content p {
    margin: 0 0 1.5rem 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.uploaded-file {
    padding: 1.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.file-info i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-details strong {
    display: block;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.file-details span {
    color: var(--gcesz-gray);
    font-size: 0.8rem;
}

.file-info .btn-close {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--gcesz-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.file-info .btn-close:hover {
    background: rgba(235, 132, 113, 0.1);
    color: var(--gcesz-apricot);
}

/* Agreement Terms */
.agreement-terms {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e8ecef;
}

.agreement-terms .form-check {
    margin: 0;
}

.agreement-terms .form-check-label {
    font-size: 0.9rem;
    color: var(--gcesz-shaft);
    line-height: 1.5;
    font-weight: 200;
}

/* Agreement Sidebar */
.agreement-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-section h5 {
    margin: 0 0 1rem 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h5 i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.1rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
}

.summary-item strong {
    font-size: 0.875rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

.summary-item .text-success {
    color: var(--gcesz-breaker-bay) !important;
}

/* Parcel List in Sidebar */
.parcel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parcel-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e8ecef;
}

.parcel-item .parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.parcel-item .parcel-header h6 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 0.9rem;
}

.parcel-item .parcel-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parcel-item .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parcel-item .detail span {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

.parcel-item .detail strong {
    font-size: 0.8rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

.parcel-item .detail .text-success {
    color: var(--gcesz-breaker-bay) !important;
}

/* Instructions List */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gcesz-breaker-bay);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Step 7: Completion Styles */
.completion-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.completion-content {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.completion-message h2 {
    color: var(--gcesz-casal);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2rem;
}

.completion-message p {
    color: var(--gcesz-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.completion-actions .btn-success {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
}

.completion-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

/* Responsive Design for Steps 3-7 */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .parcels-grid-summary {
        grid-template-columns: 1fr;
    }
    
    .receipt-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .receipt-meta {
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .charge-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .payment-container .row {
        flex-direction: column-reverse;
    }
    
    .agreement-container .row {
        flex-direction: column;
    }
    
    .document-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .document-meta {
        justify-content: center;
    }
    
    .download-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .receipt-actions,
    .payment-actions {
        flex-direction: column;
    }
    
    .receipt-actions .btn,
    .payment-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .security-features {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .completion-message h2 {
        font-size: 1.5rem;
    }
    
    .completion-message p {
        font-size: 1rem;
    }
    
    .success-icon img {
        width: 80px;
        height: 80px;
    }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* exactly two per row */
  gap: 24px; /* spacing between sections */
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr; /* one per row on mobile */
  }
}

.section-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 100;
}

/* Professional Error Alert Styles */
.step-error-alert {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInSubtle 0.3s ease-out;
    position: relative;
    font-size: 0.8rem;
}

.step-error-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 100%;
    background: #dc3545;
    border-radius: 2px 0 0 2px;
}

.step-error-alert i {
    color: #dc3545;
    font-size: 1.1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.step-error-alert .alert-content {
    flex: 1;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Professional Form Validation States */
.is-invalid {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

.is-valid {
    border-color: #38a169 !important;
    background-color: #f0fff4 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.375rem;
    font-size: 0.3rem;
    color: #e53e3e;
    line-height: 1.4;
    font-weight: 100;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #38a169;
    font-weight: 500;
    line-height: 1.4;
}

/* Modern Input Error States */
.modern-input.is-invalid,
.modern-select.is-invalid {
    border-color: #e53e3e;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e53e3e' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

.modern-input.is-valid,
.modern-select.is-valid {
    border-color: #38a169;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2338a169' viewBox='0 0 12 12'%3e%3cpath d='M10 3L4.5 8.5 2 6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

/* Form Group Error States */
.form-group.has-error {
    position: relative;
}

.form-group.has-error .form-label {
    color: #e53e3e;
    font-weight: 600;
}

.form-group.has-success .form-label {
    color: #38a169;
    font-weight: 600;
}

/* Required Field Indicators */
.form-label .required {
    color: #e53e3e;
    font-weight: 600;
    margin-left: 2px;
}

/* Field Focus States */
.modern-input.is-invalid:focus,
.modern-select.is-invalid:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    background-color: #fff;
}

.modern-input.is-valid:focus,
.modern-select.is-valid:focus {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
    background-color: #fff;
}

/* File Upload Error States */
input[type="file"].is-invalid {
    border-color: #e53e3e;
}

input[type="file"].is-invalid ~ .file-upload-label {
    color: #e53e3e;
    border-color: #e53e3e;
}

/* Payment Method Error States */
.payment-option.is-invalid {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.payment-option.is-invalid .option-header {
    border-bottom-color: #fed7d7;
}

/* Animation Keyframes */
@keyframes slideInSubtle {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Error Icon Animation */
.step-error-alert i {
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-error-alert {
        padding: 1rem;
        margin-bottom: 1.25rem;
        gap: 0.625rem;
    }
    
    .step-error-alert i {
        font-size: 1rem;
    }
    
    .step-error-alert .alert-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .step-error-alert {
        padding: 0.875rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }
    
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.3rem;
    }
}

/* Professional Color Variations by Step */
.step-pane[data-step="1"] .step-error-alert {
    border-left-color: #d69e2e;
}

.step-pane[data-step="1"] .step-error-alert i {
    color: #d69e2e;
}

.step-pane[data-step="2"] .step-error-alert {
    border-left-color: #e53e3e;
}

.step-pane[data-step="2"] .step-error-alert i {
    color: #e53e3e;
}

.step-pane[data-step="3"] .step-error-alert {
    border-left-color: #e53e3e;
}

.step-pane[data-step="3"] .step-error-alert i {
    color: #e53e3e;
}

.step-pane[data-step="4"] .step-error-alert {
    border-left-color: #e53e3e;
}

.step-pane[data-step="4"] .step-error-alert i {
    color: #e53e3e;
}

.step-pane[data-step="5"] .step-error-alert {
    border-left-color: #e53e3e;
}

.step-pane[data-step="5"] .step-error-alert i {
    color: #e53e3e;
}

.step-pane[data-step="6"] .step-error-alert {
    border-left-color: #dd6b20;
}

.step-pane[data-step="6"] .step-error-alert i {
    color: #dd6b20;
}

/* Success States */
.step-success-alert {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #38a169;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInSubtle 0.3s ease-out;
}

.step-success-alert i {
    color: #38a169;
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.step-success-alert .alert-content {
    flex: 1;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Warning States */
.step-warning-alert {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #d69e2e;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInSubtle 0.3s ease-out;
}

.step-warning-alert i {
    color: #d69e2e;
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.step-warning-alert .alert-content {
    flex: 1;
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Error Summary for Multiple Fields */
.error-summary {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.error-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #c53030;
    font-weight: 600;
    font-size: 0.9rem;
}

.error-summary-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #742a2a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.error-summary-list li {
    margin-bottom: 0.25rem;
}

/* Print Styles */
@media print {
    .step-error-alert,
    .step-success-alert,
    .step-warning-alert,
    .invalid-feedback,
    .valid-feedback,
    .is-invalid,
    .is-valid {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .step-error-alert {
        border-width: 2px;
        background: #fff;
    }
    
    .is-invalid {
        border-width: 2px;
        background: #fff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .step-error-alert,
    .invalid-feedback {
        animation: none;
    }
    
    .step-error-alert i {
        animation: none;
    }
}

/* Focus Management for Accessibility */
.step-error-alert:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

.is-invalid:focus {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
}

/* Loading States with Validation */
.btn:disabled.is-invalid {
    opacity: 0.7;
    border-color: #e53e3e;
    background-color: #fff5f5;
}

/* Compact Error Display for Inline Forms */
.form-inline .invalid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 0.25rem;
    background: #fff;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e53e3e;
    z-index: 10;
}

.form-inline .invalid-feedback::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-left: 1px solid #e53e3e;
    border-top: 1px solid #e53e3e;
    transform: rotate(45deg);
}

.charges-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    
}

/* .table-header {
    display: flex;
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
} */

.table-row {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.highlight {
    background: #f0f7ff;
    border-left: 3px solid var(--gcesz-breaker-bay)
}

.table-col {
    flex: 1;
}

.table-col.description {
    flex: 2;
    font-size: small;
}

.table-col.amount {
    text-align: right;
    font-weight: 500;
    font-size: small;
}

.col.amount {
    text-align: right;
}

.col.quantity {
    text-align: left;
}

/* Custom Modal Styles for Non-Bootstrap */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 1040;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modern-modal-header {
    background: linear-gradient(135deg, var(--gcesz-casal), var(--gcesz-breaker-bay));
    color: white;
    padding: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 30px;
}

/* Radio and Checkbox Styles */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0.125rem 0 0 0;
    border: 2px solid #e8ecef;
    border-radius: 50%;
    appearance: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.form-check-input:checked {
    background: var(--gcesz-breaker-bay);
    border-color: var(--gcesz-breaker-bay);
}

.form-check-input:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.form-check-label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--gcesz-shaft);
}

/* Payment Container Layout */
.payment-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e8ecef;
}

.payment-container .row {
    display: flex;
    gap: 2rem;
}

/* Payment Methods Section - Left Side */
.payment-container .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.payment-methods-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    height: 100%;
}

/* Payment Summary Section - Right Side */
.payment-container .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.payment-summary {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .payment-container .row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .payment-container .col-lg-8,
    .payment-container .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .payment-summary {
        position: static;
        order: -1; /* Summary comes first on mobile */
    }
}

/* Ensure proper spacing and alignment */
.payment-methods-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8ecef;
}

.payment-methods-section .section-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.2rem;
}

.payment-methods-section .section-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

/* Payment Options Styling */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-option.active {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

/* Payment Summary Styling */
.payment-summary .summary-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e8ecef;
}

.payment-summary .summary-header h5 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-summary .summary-header i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.25rem;
}

.payment-summary .summary-content {
    padding: 1.5rem;
}

/* Action Buttons Alignment */
.payment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .payment-container {
        padding: 1.5rem;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .payment-summary .summary-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .payment-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .payment-methods-section .section-header h5,
    .payment-summary .summary-header h5 {
        font-size: 1.1rem;
    }
}

/* Payment Options Grid Layout */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Payment Option Grid Items */
.payment-option {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.payment-option.active {
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

/* Option Header */
.payment-option .option-header {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
}

.payment-option .option-header .form-check {
    margin: 0;
    width: 100%;
}

.payment-option .option-header .form-check-label {
    width: 100%;
    cursor: pointer;
}

.payment-option .option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.payment-option .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-option .option-icon.bg-primary { background: var(--gcesz-breaker-bay); }
.payment-option .option-icon.bg-success { background: var(--gcesz-casal); }
.payment-option .option-icon.bg-warning { background: var(--gcesz-yuma); }
.payment-option .option-icon.bg-info { background: var(--gcesz-gray); }

.payment-option .option-info {
    flex: 1;
}

.payment-option .option-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gcesz-shaft);
    font-size: 1rem;
}

.payment-option .option-info p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

/* Option Details */
.payment-option .option-details {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

/* Responsive Design for Grid */
@media (max-width: 992px) {
    .payment-options {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .payment-option {
        min-height: 110px;
    }
    
    .payment-option .option-header {
        padding: 1.25rem;
    }
    
    .payment-option .option-details {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .payment-options {
        gap: 0.75rem;
    }
    
    .payment-option {
        min-height: 100px;
    }
    
    .payment-option .option-header {
        padding: 1rem;
    }
    
    .payment-option .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .payment-option .option-info h6 {
        font-size: 0.95rem;
    }
    
    .payment-option .option-info p {
        font-size: 0.8rem;
    }
    
    .payment-option .option-details {
        padding: 1rem;
    }
}

/* Hover Effects */
.payment-option:hover:not(.active) {
    border-color: var(--gcesz-breaker-bay);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.1);
}

/* Active State Animation */
.payment-option.active {
    transform: translateY(-2px);
}

/* Form Elements in Option Details */
.payment-option .option-details .form-group {
    margin-bottom: 1rem;
}

.payment-option .option-details .form-group:last-child {
    margin-bottom: 0;
}

.payment-option .option-details label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
    display: block;
}

/* Ensure proper spacing in the payment container */
.payment-methods-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    height: 100%;
}

/* Adjust the overall payment container for grid layout */
.payment-container .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.payment-container .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 992px) {
    .payment-container .row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .payment-container .col-lg-8,
    .payment-container .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Card Form Grid Layout - Expiry and CVC on same line */
.card-form {
    width: 100%;
}

.card-form .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card-form .col-12 {
    grid-column: 1 / -1;
}

/* Expiry and CVC always on same line */
.card-form .row.g-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-form .col-12 {
    grid-column: 1 / -1;
}

.card-form .col-md-6 {
    grid-column: span 1;
}

/* Mobile responsive adjustment */
@media (max-width: 575px) {
    .card-form .row.g-3 {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .card-form .col-md-6 {
        grid-column: 1 / -1;
    }
}

/* Alternative Flexbox Layout */
.card-form .row.g-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-form .col-12 {
    flex: 0 0 100%;
}

.card-form .col-md-6 {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Mobile stack on very small screens */
@media (max-width: 480px) {
    .card-form .row.g-3 {
        flex-direction: column;
    }
    
    .card-form .col-md-6 {
        flex: 0 0 100%;
    }
}

/* Form Styling */
.card-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gcesz-shaft);
    margin-bottom: 0.5rem;
}

.card-form .modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.card-form .modern-input:focus {
    outline: none;
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
}

/* Ensure equal width for expiry and CVC */
.card-form .row.g-3 .col-md-6 {
    flex: 1 1 calc(50% - 0.5rem);
}

/* Specific styling for card inputs */
#cardNumber {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23928d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='1' y1='10' x2='23' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

#cardExpiry {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23928d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

#cardCVC {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23928d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='12' cy='16.5' r='1.5'%3E%3C/circle%3E%3Cpath d='M12 7v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

#cardName {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23928d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

/* Focus states */
.card-form .modern-input:focus {
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Very small screen optimization */
@media (max-width: 380px) {
    .card-form .row.g-3 {
        gap: 0.75rem;
    }
    
    .card-form .modern-input {
        padding: 0.675rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Agreement Container Layout */
.agreement-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e8ecef;
}

.agreement-container .row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Main Content - Left Side */
.agreement-container .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.agreement-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar - Right Side */
.agreement-container .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.agreement-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Sidebar Sections */
.sidebar-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-section h5 {
    margin: 0 0 1rem 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h5 i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.1rem;
}

/* Summary Items */
.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
}

.summary-item strong {
    font-size: 0.875rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

.summary-item .text-success {
    color: var(--gcesz-breaker-bay) !important;
}

/* Parcel List in Sidebar */
.parcel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 600px;
}

.parcel-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e8ecef;
}

.parcel-item .parcel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.parcel-item .parcel-header h6 {
    margin: 0;
    color: var(--gcesz-casal);
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border: 1px solid rgba(87, 163, 148, 0.2);
}

.parcel-item .parcel-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parcel-item .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parcel-item .detail span {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

.parcel-item .detail strong {
    font-size: 0.8rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

.parcel-item .detail .text-success {
    color: var(--gcesz-breaker-bay) !important;
}

/* Instructions List */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gcesz-breaker-bay);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Main Content Sections */
.document-preview-section,
.download-section,
.upload-section {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.document-preview-section h5,
.download-section h5,
.upload-section h5 {
    color: var(--gcesz-casal);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Document Preview */
.document-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.preview-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gcesz-apricot);
    font-size: 2rem;
    border: 1px solid #e8ecef;
}

.preview-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.preview-content p {
    margin: 0 0 1rem 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item span {
    font-size: 0.75rem;
    color: var(--gcesz-gray);
}

.meta-item strong {
    font-size: 0.875rem;
    color: var(--gcesz-shaft);
    font-weight: 600;
}

/* Download Card */
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.download-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.download-content p {
    margin: 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
}

/* Upload Card */
.upload-card {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8ecef;
    overflow: hidden;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #e8ecef;
    border-radius: 8px;
    margin: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--gcesz-breaker-bay);
    background: rgba(87, 163, 148, 0.02);
}

.upload-icon {
    color: var(--gcesz-gray);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 1rem;
}

.upload-content p {
    margin: 0 0 1.5rem 0;
    color: var(--gcesz-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.uploaded-file {
    padding: 1.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ecef;
}

.file-info i {
    color: var(--gcesz-breaker-bay);
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-details strong {
    display: block;
    color: var(--gcesz-shaft);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.file-details span {
    color: var(--gcesz-gray);
    font-size: 0.8rem;
}

.file-info .btn-close {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--gcesz-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.file-info .btn-close:hover {
    background: rgba(235, 132, 113, 0.1);
    color: var(--gcesz-apricot);
}

/* Terms Acceptance */
.agreement-terms {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e8ecef;
}

.agreement-terms .form-check {
    margin: 0;
}

.agreement-terms .form-check-label {
    font-size: 0.9rem;
    color: var(--gcesz-shaft);
    line-height: 1.5;
}

/* Alert Styling */
.application-alert {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(50, 101, 115, 0.1);
    border-color: rgba(50, 101, 115, 0.2);
}

.alert-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.125rem;
    color: var(--gcesz-casal);
}

.alert-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gcesz-shaft);
}

.alert-content p {
    font-size: 0.875rem;
    color: var(--gcesz-gray);
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .agreement-container .row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .agreement-container .col-lg-8,
    .agreement-container .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .agreement-sidebar {
        position: static;
        order: -1; /* Sidebar comes first on mobile */
    }
    
    .document-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .document-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .download-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .agreement-container {
        padding: 1.5rem;
    }
    
    .document-preview-section,
    .download-section,
    .upload-section,
    .sidebar-section {
        padding: 1.25rem;
    }
    
    .upload-area {
        padding: 2rem 1.5rem;
    }
    
    .preview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .agreement-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .document-preview-section h5,
    .download-section h5,
    .upload-section h5,
    .sidebar-section h5 {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .instruction-step {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ===============================
   Final Review & Submission Styles
   =============================== */

.preview-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .preview-section {
    grid-template-columns: 1fr;
  }
}

/* Checklist Column (Left) */
.application-checklist-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
  border: 1px solid #e8ecef;
  padding: 0;
  /* max-height: 80vh;
  overflow-y: auto; */
}

/* Summary Column (Right) */
.application-summary-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
  border: 1px solid #e8ecef;
  padding: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Card Headers */
.application-checklist-wrapper .card-header,
.application-summary-wrapper .card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e8ecef;
  padding: 1.5rem;
}

.application-checklist-wrapper .card-title,
.application-summary-wrapper .card-title {
  color: var(--gcesz-casal);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.application-checklist-wrapper .card-title i,
.application-summary-wrapper .card-title i {
  color: var(--gcesz-breaker-bay);
  font-size: 1.25rem;
}

/* Card Body */
.application-checklist-wrapper .card-body,
.application-summary-wrapper .card-body {
  padding: 1.5rem;
}

/* Checklist Scrollable Area */
.app-review-checklist {
  /* max-height: 60vh;
  overflow-y: auto; */
  padding-right: 8px;
}

.app-review-checklist::-webkit-scrollbar {
  width: 6px;
}

.app-review-checklist::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.app-review-checklist::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

/* Checklist Items */
.review-checklist-item {
  background: white;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.review-checklist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 101, 115, 0.1);
  border-color: var(--gcesz-breaker-bay);
}

.review-checklist-header {
  display: flex;
  align-items: center; /* ✅ fixed: centers vertically */
  justify-content: space-between;
  gap: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background-color: #fafafa;
}

/* Icon section */
.review-checklist-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--gcesz-breaker-bay);
}

/* Title and subtitle */
.review-checklist-content {
  flex-grow: 1;
  min-width: 0; /* helps with text wrapping */
}

.review-checklist-content h6 {
  font-weight: 600;
  color: var(--gcesz-casal);
  margin: 0 0 4px;
  font-size: 1rem;
}

.review-checklist-content p {
  font-size: 0.8rem;
  color: var(--gcesz-gray);
  margin: 0;
  font-weight: 300;
  line-height: 1.3;
}

/* Status badge */
.review-checklist-status {
  flex-shrink: 0;
}

.review-checklist-status .badge {
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Completed state badge */
.review-badge-completed {
  background-color: rgba(60, 179, 113, 0.1);
  color: #2e8b57;
  border-color: #2e8b57;
}

.review-checklist-status .review-badge-completed {
  background: rgba(87, 163, 148, 0.1) !important;
  color: var(--gcesz-breaker-bay) !important;
  border-color: rgba(87, 163, 148, 0.2) !important;
}

.review-checklist-details {
  /* border-top: 1px solid #f1f5f9; */
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.9rem;
}

.review-checklist-details .row {
  margin: 0 -0.5rem;
}

.review-checklist-details .col-md-6 {
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.review-checklist-details small.text-muted {
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.review-checklist-details .fw-semibold {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gcesz-shaft);
}

.review-checklist-details .text-success {
  color: var(--gcesz-breaker-bay) !important;
}

/* Parcel Preview */
.review-parcel-preview {
  margin-top: 0.75rem;
}

.review-parcel-preview .review-parcel-tag {
  background: rgba(87, 163, 148, 0.1);
  color: var(--gcesz-breaker-bay);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  border: 1px solid rgba(87, 163, 148, 0.2);
}

/* Summary Sections */
.summary-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e8ecef;
}

.summary-title {
  font-weight: 600;
  color: var(--gcesz-casal);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gcesz-breaker-bay);
  border-radius: 2px;
}

/* Summary Items */
.summary-section .d-flex {
  padding: 0.375rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.summary-section .small {
  font-size: 0.8rem;
}

.summary-section .text-muted {
  color: var(--gcesz-gray) !important;
}

.summary-section .fw-semibold,
.summary-section .fw-bold {
  color: var(--gcesz-shaft);
}

.summary-section .text-primary {
  color: var(--gcesz-breaker-bay) !important;
}

.summary-section .text-warning {
  color: var(--gcesz-yuma) !important;
}

.summary-section .border-top {
  border-top: 1px solid #e8ecef !important;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Next Steps Section */
.next-steps-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e8ecef;
}

.next-steps-title {
  font-weight: 600;
  color: var(--gcesz-casal);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next-steps-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gcesz-breaker-bay);
  border-radius: 2px;
}

.next-steps-list {
  margin-top: 0.5rem;
}

.next-step-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.next-step-item:last-child {
  margin-bottom: 0;
}

.next-step-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.next-step-bullet.active {
  background: var(--gcesz-breaker-bay) !important;
}

.next-step-bullet.upcoming {
  background: #e8ecef !important;
}

.next-steps-list .small {
  font-size: 0.8rem;
  color: var(--gcesz-shaft);
}

.next-steps-list .text-muted {
  color: var(--gcesz-gray) !important;
}

/* Submit Button */
.btn-success {
  background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
  color: white;
   /* border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex; */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

/* Action Buttons */
.d-flex.align-items-center.justify-content-between.mt-4 {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid #e8ecef;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gcesz-gray);
  color: var(--gcesz-gray);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--gcesz-breaker-bay);
  color: var(--gcesz-breaker-bay);
  transform: translateY(-1px);
}

.text-muted.small {
  font-size: 0.8rem;
  color: var(--gcesz-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .preview-section {
    gap: 16px;
  }
  
  .application-checklist-wrapper,
  .application-summary-wrapper {
    max-height: none;
    position: static;
  }
  
  .application-checklist-wrapper .card-body,
  .application-summary-wrapper .card-body {
    padding: 1.25rem;
  }
  
  .review-checklist-item {
    padding: 1rem;
  }
  
  .review-checklist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .review-checklist-status {
    align-self: flex-start;
  }
  
  .d-flex.align-items-center.justify-content-between.mt-4 {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .application-checklist-wrapper .card-header,
  .application-summary-wrapper .card-header {
    padding: 1.25rem;
  }
  
  .application-checklist-wrapper .card-body,
  .application-summary-wrapper .card-body {
    padding: 1rem;
  }
  
  .review-checklist-details .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .summary-section,
  .next-steps-section {
    padding: 0.875rem;
  }
  
  .btn-success {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation for checklist items */
.review-checklist-item {
  animation: fadeInUp 0.4s ease;
}

.review-checklist-item:nth-child(1) { animation-delay: 0.1s; }
.review-checklist-item:nth-child(2) { animation-delay: 0.2s; }
.review-checklist-item:nth-child(3) { animation-delay: 0.3s; }
.review-checklist-item:nth-child(4) { animation-delay: 0.4s; }
.review-checklist-item:nth-child(5) { animation-delay: 0.5s; }

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

/* Appointments Management Layout */
.appointments-container {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.appointments-main {
    flex: 2; /* 66.66% equivalent to col-md-8 */
    min-width: 0; /* Prevent overflow */
}

.appointments-sidebar {
    flex: 1; /* 33.33% equivalent to col-md-4 */
    min-width: 0; /* Prevent overflow */
}

/* Responsive Layout */
@media (max-width: 768px) {
    .appointments-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .appointments-main,
    .appointments-sidebar {
        flex: none;
        width: 100%;
    }
}

/* Card Styles */
.management-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(50, 101, 115, 0.08);
    border: 1px solid var(--sidebar-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.management-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sidebar-border);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.management-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gcesz-casal);
    margin: 0;
}

.management-card-body {
    padding: 24px;
}

.management-card-body-compact {
    padding: 0;
}

/* Button Styles */
.management-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
}

.management-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.management-btn-primary {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
}

.management-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 163, 148, 0.3);
}

.management-btn-outline {
    background: white;
    border: 1px solid var(--sidebar-border);
    color: var(--text-primary);
}

.management-btn-outline:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
    transform: translateY(-1px);
}

.management-btn-danger {
    background: white;
    border: 1px solid var(--gcesz-apricot);
    color: var(--gcesz-apricot);
}

.management-btn-danger:hover {
    background: var(--gcesz-apricot);
    color: white;
    transform: translateY(-1px);
}

.management-btn-success {
    background: white;
    border: 1px solid var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

.management-btn-success:hover {
    background: var(--gcesz-breaker-bay);
    color: white;
    transform: translateY(-1px);
}

.management-btn-group {
    display: flex;
    gap: 8px;
}

.management-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* Calendar Container */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 800px;
}

/* Form Controls */
.management-form-select {
    padding: 8px 12px;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.management-form-select:focus {
    outline: none;
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
}

.management-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.management-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.management-search-input:focus {
    outline: none;
    border-color: var(--gcesz-breaker-bay);
    box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
}

.management-search-icon {
    padding: 8px 12px;
    background: var(--hover-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    color: var(--gcesz-gray);
}

/* Appointment List Styles */
.appointment-filter-section {
    padding: 0 10px 20px 10px;
    /* border: 1px solid var(--sidebar-border);
    border-radius: 10px; */
    /* background: var(--hover-bg); */
}

.appointment-list-container {
    max-height: 600px;
    overflow-y: auto;
}

.appointment-list {
    display: flex;
    flex-direction: column;
}

.appointment-item {
    padding: 20px;
    border-bottom: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
    position: relative;
}

.appointment-item:hover {
    background: var(--hover-bg);
    /* transform: translateX(4px); */
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.appointment-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    margin-right: 12px;
}

.appointment-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-time {
    display: flex;
    flex-direction: column;
}

.appointment-time-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gcesz-breaker-bay);
    margin-bottom: 4px;
}

.appointment-time-secondary {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.appointment-provider {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-scheduled {
    background: rgba(50, 101, 115, 0.1);
    color: var(--gcesz-casal);
    border: 1px solid rgba(50, 101, 115, 0.2);
}

.status-confirmed {
    background: rgba(87, 163, 148, 0.1);
    color: var(--gcesz-breaker-bay);
    border: 1px solid rgba(87, 163, 148, 0.2);
}

.status-completed {
    background: rgba(146, 141, 137, 0.1);
    color: var(--gcesz-gray);
    border: 1px solid rgba(146, 141, 137, 0.2);
}

.status-cancelled {
    background: rgba(235, 132, 113, 0.1);
    color: var(--gcesz-apricot);
    border: 1px solid rgba(235, 132, 113, 0.2);
}

/* Upcoming Appointments */
.upcoming-list-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 50px;
}

.empty-upcoming-appointments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--gcesz-gray);
}

.upcoming-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.upcoming-item:hover {
    background: rgba(87, 163, 148, 0.05);
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.upcoming-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    margin-right: 12px;
}

.upcoming-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gcesz-breaker-bay);
    background: rgba(87, 163, 148, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(87, 163, 148, 0.2);
}

.upcoming-date {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--gcesz-gray);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--sidebar-border);
    border-top: 2px solid var(--gcesz-breaker-bay);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.875rem;
    margin: 0;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--gcesz-gray);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--sidebar-border);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gcesz-gray);
}

.empty-state-text {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* AI Assistant Styles */
.ai-assistant-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.ai-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(50, 101, 115, 0.3);
    transition: all 0.3s ease;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(50, 101, 115, 0.4);
}

.ai-chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(50, 101, 115, 0.2);
    border: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.message-avatar-ai {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
}

.message-content {
    background: var(--hover-bg);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message-user .message-content {
    background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
    color: white;
}

.message-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
}

.ai-chat-input {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-reply-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply-btn:hover {
    border-color: var(--gcesz-breaker-bay);
    color: var(--gcesz-breaker-bay);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .appointments-container {
        gap: 16px;
    }
    
    .calendar-container {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .management-card-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .management-card-body {
        padding: 20px;
    }
    
    .appointment-item {
        padding: 16px;
    }
    
    .appointment-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .appointment-actions {
        align-self: flex-end;
    }
    
    .ai-chat-container {
        width: calc(100vw - 40px);
        right: -20px;
    }
}

@media (max-width: 480px) {
    .management-card-body {
        padding: 16px;
    }
    
    .appointment-item {
        padding: 12px;
    }
    
    .appointment-item-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .ai-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 16px;
        right: 16px;
    }
}

/* Scrollbar Styling */
.appointment-list-container::-webkit-scrollbar,
.upcoming-list-container::-webkit-scrollbar,
.ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.appointment-list-container::-webkit-scrollbar-track,
.upcoming-list-container::-webkit-scrollbar-track,
.ai-chat-messages::-webkit-scrollbar-track {
    background: var(--hover-bg);
}

.appointment-list-container::-webkit-scrollbar-thumb,
.upcoming-list-container::-webkit-scrollbar-thumb,
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--gcesz-gray);
    border-radius: 10px;
}

.appointment-list-container::-webkit-scrollbar-thumb:hover,
.upcoming-list-container::-webkit-scrollbar-thumb:hover,
.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gcesz-casal);
}

/* Animation for new items */
.appointment-item {
    animation: slideInUp 0.3s ease;
}

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

/* Voice recording animation */
.voice-recording {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.btn-warning {
    background: linear-gradient(135deg, var(--gcesz-yuma), var(--gcesz-brandy-rose));
    color: var(--gcesz-shaft);
    border: none;
    font-weight: 600;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 187, 133, 0.4);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.page-header-content h1 {
    margin-bottom: 0.5rem;
    color: var(--gcesz-casal);
}

.page-header-content p {
    color: var(--gcesz-gray);
    margin: 0;
}

/* ================================
   MOBILE STEPPER RESPONSIVE STYLES
   ================================ */

@media (max-width: 768px) {
  /* Mobile Header Adjustments */
  .application-header .d-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .application-progress {
    min-width: auto;
    width: 100%;
  }
  
  /* Mobile Stepper Navigation - Horizontal Scroll */
  .stepper-navigation {
    padding: 1rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--sidebar-border);
  }
  
  .stepper-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: max-content;
  }
  
  .step-item {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
  }
  
  .step-item::before {
    display: none !important;
  }
  
  .step-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Reduced Font Sizes for Mobile */
  .step-title {
    font-size: 0.7rem !important;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .step-subtitle {
    font-size: 0.6rem !important;
    line-height: 1.2;
  }
  
  /* Mobile Step Content */
  .stepper-content {
    padding: 1rem;
  }
  
  .step-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .step-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
  }
  
  .step-description {
    font-size: 0.85rem !important;
  }
  
  /* Mobile Form Adjustments */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-section {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  /* Mobile Card Adjustments */
  .parcels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .parcel-card {
    padding: 1.25rem;
  }
  
  .parcel-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Mobile Action Buttons */
  .step-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .step-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Alert Adjustments */
  .application-alert {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .alert-icon {
    font-size: 1.1rem;
  }
  
  .alert-content h6 {
    font-size: 0.9rem;
  }
  
  .alert-content p {
    font-size: 0.8rem;
  }
  
  /* Account Type Selector Mobile */
  .account-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .type-option label {
    padding: 1rem 0.75rem;
  }
  
  .option-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .type-option h6 {
    font-size: 0.8rem;
  }
  
  .type-option p {
    font-size: 0.7rem;
  }
  
  /* Summary Sections Mobile */
  .summary-sections {
    gap: 1rem;
  }
  
  .summary-section {
    padding: 1.25rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .parcels-grid-summary {
    grid-template-columns: 1fr;
  }
  
  /* Modern Receipt Mobile */
  .receipt-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .receipt-meta {
    text-align: center;
  }
  
  .receipt-section {
    padding: 1.25rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  /* Payment Options Mobile */
  .payment-options {
    grid-template-columns: 1fr;
  }
  
  .payment-option {
    min-height: auto;
  }
  
  .payment-container .row {
    flex-direction: column-reverse;
  }
  
  .payment-container .col-lg-8,
  .payment-container .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Agreement Mobile */
  .agreement-container .row {
    flex-direction: column;
  }
  
  .agreement-container .col-lg-8,
  .agreement-container .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .document-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .document-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Preview Section Mobile */
  .preview-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .application-summary-wrapper {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  /* Extra Small Devices */
  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .step-title {
    font-size: 0.65rem !important;
  }
  
  .step-subtitle {
    font-size: 0.55rem !important;
  }
  
  .step-item {
    min-width: 70px;
  }
  
  .account-type-selector {
    grid-template-columns: 1fr;
  }
  
  /* Further reduced font sizes for very small screens */
  .step-title {
    font-size: 1.25rem !important;
  }
  
  .step-description {
    font-size: 0.8rem !important;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
  
  .modern-input,
  .modern-select {
    font-size: 0.85rem;
    padding: 0.675rem 0.875rem;
  }
}

/* Mobile-Specific Enhancements */
.mobile-step-indicator {
  display: none;
}

@media (max-width: 768px) {
  .mobile-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-bottom: 1px solid var(--sidebar-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gcesz-casal);
  }
  
  /* Hide desktop progress bar on mobile */
  .stepper-progress {
    display: none;
  }
  
  /* Enhanced mobile scrolling for stepper */
  .stepper-steps::-webkit-scrollbar {
    display: none;
  }
  
  .stepper-steps {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  /* Improved touch targets */
  .btn {
    min-height: 44px;
  }
  
  .form-check-input {
    width: 20px;
    height: 20px;
  }
  
  /* Better spacing for mobile forms */
  .row.g-3 {
    margin: 0 -0.25rem;
  }
  
  .row.g-3 > [class*="col-"] {
    padding: 0 0.25rem;
  }
}

/* Mobile-First Animation Improvements */
@media (max-width: 768px) {
  .step-pane {
    animation: mobileSlideIn 0.3s ease-out;
  }
  
  @keyframes mobileSlideIn {
    from {
      opacity: 0;
      transform: translateX(10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Enhanced Mobile Stepper with Current Step Highlight */
@media (max-width: 768px) {
  .step-item:not(.active) {
    opacity: 0.6;
  }
  
  .step-item.active {
    transform: scale(1.05);
  }
  
  .step-item.active .step-icon {
    box-shadow: 0 0 0 2px var(--gcesz-breaker-bay);
  }
}

/* Alternative Mobile Stepper - Compact */
@media (max-width: 480px) {
  .stepper-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .step-content {
    display: none;
  }
  
  .step-icon {
    margin: 0 auto;
  }
  
  /* Show tooltip on tap */
  .step-item {
    position: relative;
  }
  
  .step-item:active::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gcesz-shaft);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
  }
}


/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--sidebar-border);
  padding: 0.75rem 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Adjust content padding to account for bottom nav */
  .stepper-content {
    padding-bottom: 5rem;
  }
}

.mobile-nav-btn {
  flex: 1;
  margin: 0 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ================================
   MOBILE STEPPER RESPONSIVE STYLES
   ================================ */

@media (max-width: 768px) {
  /* Mobile Header Adjustments */
  .application-header .d-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .application-progress {
    min-width: auto;
    width: 100%;
  }
  
  /* Mobile Stepper Navigation - Horizontal Scroll */
  .stepper-navigation {
    padding: 1rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--sidebar-border);
  }
  
  .stepper-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: max-content;
  }
  
  .step-item {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
  }
  
  .step-item::before {
    display: none !important;
  }
  
  .step-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Reduced Font Sizes for Mobile */
  .step-title {
    font-size: 0.7rem !important;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .step-subtitle {
    font-size: 0.6rem !important;
    line-height: 1.2;
  }
  
  /* Mobile Step Content */
  .stepper-content {
    padding: 1rem;
  }
  
  .step-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .step-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem;
  }
  
  .step-description {
    font-size: 0.85rem !important;
  }
  
  /* Mobile Form Adjustments */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-section {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  /* Mobile Card Adjustments */
  .parcels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .parcel-card {
    padding: 1.25rem;
  }
  
  .parcel-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Mobile Action Buttons */
  .step-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .step-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Alert Adjustments */
  .application-alert {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .alert-icon {
    font-size: 1.1rem;
  }
  
  .alert-content h6 {
    font-size: 0.9rem;
  }
  
  .alert-content p {
    font-size: 0.8rem;
  }
  
  /* Account Type Selector Mobile */
  .account-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .type-option label {
    padding: 1rem 0.75rem;
  }
  
  .option-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .type-option h6 {
    font-size: 0.8rem;
  }
  
  .type-option p {
    font-size: 0.7rem;
  }
  
  /* Summary Sections Mobile */
  .summary-sections {
    gap: 1rem;
  }
  
  .summary-section {
    padding: 1.25rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .parcels-grid-summary {
    grid-template-columns: 1fr;
  }
  
  /* Modern Receipt Mobile */
  .receipt-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .receipt-meta {
    text-align: center;
  }
  
  .receipt-section {
    padding: 1.25rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  /* Payment Options Mobile */
  .payment-options {
    grid-template-columns: 1fr;
  }
  
  .payment-option {
    min-height: auto;
  }
  
  .payment-container .row {
    flex-direction: column-reverse;
  }
  
  .payment-container .col-lg-8,
  .payment-container .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Agreement Mobile */
  .agreement-container .row {
    flex-direction: column;
  }
  
  .agreement-container .col-lg-8,
  .agreement-container .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .document-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .document-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Preview Section Mobile */
  .preview-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .application-summary-wrapper {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  /* Extra Small Devices */
  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .step-title {
    font-size: 0.65rem !important;
  }
  
  .step-subtitle {
    font-size: 0.55rem !important;
  }
  
  .step-item {
    min-width: 70px;
  }
  
  .account-type-selector {
    grid-template-columns: 1fr;
  }
  
  /* Further reduced font sizes for very small screens */
  .step-title {
    font-size: 1.25rem !important;
  }
  
  .step-description {
    font-size: 0.8rem !important;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
  
  .modern-input,
  .modern-select {
    font-size: 0.85rem;
    padding: 0.675rem 0.875rem;
  }
}

/* Mobile-Specific Enhancements */
.mobile-step-indicator {
  display: none;
}

@media (max-width: 768px) {
  .mobile-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-bottom: 1px solid var(--sidebar-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gcesz-casal);
  }
  
  /* Hide desktop progress bar on mobile */
  .stepper-progress {
    display: none;
  }
  
  /* Enhanced mobile scrolling for stepper */
  .stepper-steps::-webkit-scrollbar {
    display: none;
  }
  
  .stepper-steps {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  /* Improved touch targets */
  .btn {
    min-height: 44px;
  }
  
  .form-check-input {
    width: 20px;
    height: 20px;
  }
  
  /* Better spacing for mobile forms */
  .row.g-3 {
    margin: 0 -0.25rem;
  }
  
  .row.g-3 > [class*="col-"] {
    padding: 0 0.25rem;
  }
}

/* Mobile-First Animation Improvements */
@media (max-width: 768px) {
  .step-pane {
    animation: mobileSlideIn 0.3s ease-out;
  }
  
  @keyframes mobileSlideIn {
    from {
      opacity: 0;
      transform: translateX(10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Enhanced Mobile Stepper with Current Step Highlight */
@media (max-width: 768px) {
  .step-item:not(.active) {
    opacity: 0.6;
  }
  
  .step-item.active {
    transform: scale(1.05);
  }
  
  .step-item.active .step-icon {
    box-shadow: 0 0 0 2px var(--gcesz-breaker-bay);
  }
}

/* Alternative Mobile Stepper - Compact */
@media (max-width: 480px) {
  .stepper-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .step-content {
    display: none;
  }
  
  .step-icon {
    margin: 0 auto;
  }
  
  /* Show tooltip on tap */
  .step-item {
    position: relative;
  }
  
  .step-item:active::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gcesz-shaft);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
  }
}


/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--sidebar-border);
  padding: 0.75rem 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Adjust content padding to account for bottom nav */
  .stepper-content {
    padding-bottom: 5rem;
  }
}

.mobile-nav-btn {
  flex: 1;
  margin: 0 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}