/* Frontend Courier Theme CSS */

/* ==================== CSS Variables ==================== */
:root {
    --courier-primary: #dc2626;
    --courier-secondary: #b91c1c;
    --courier-accent: #991b1b;
    --courier-success: #27ae60;
    --courier-dark: #34495e;
    --courier-light: #ecf0f1;
    --courier-gradient: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
    --courier-gradient-dark: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%);
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--courier-dark);
    background: #f8f9fa;
    overflow-x: hidden;
}

/* ==================== Animated Background Elements ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-box {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--courier-gradient);
    border-radius: 6px;
    opacity: 0.08;
    animation: floatBox 25s infinite linear;
}

.floating-box:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.floating-box:nth-child(2) { top: 25%; left: 85%; animation-delay: 3s; }
.floating-box:nth-child(3) { top: 65%; left: 25%; animation-delay: 6s; }
.floating-box:nth-child(4) { top: 85%; left: 75%; animation-delay: 9s; }
.floating-box:nth-child(5) { top: 45%; left: 95%; animation-delay: 12s; }

@keyframes floatBox {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(15px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.moving-truck {
    position: absolute;
    font-size: 1.5rem;
    color: var(--courier-primary);
    opacity: 0.08;
    animation: moveTruck 20s infinite linear;
}

.moving-truck:nth-child(1) { top: 35%; left: -50px; animation-delay: 0s; }
.moving-truck:nth-child(2) { top: 75%; left: -50px; animation-delay: 8s; }

@keyframes moveTruck {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(calc(100vw + 50px)); }
}

/* ==================== Navigation ==================== */
.navbar {
    background: rgba(220, 38, 38, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(220, 38, 38, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--courier-secondary) !important;
    transform: translateY(-2px);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--courier-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ==================== Page Header ==================== */
.page-header {
    background: var(--courier-gradient-dark);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, var(--courier-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==================== Sections ==================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background: white;
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--courier-primary) 0%, var(--courier-secondary) 100%);
    opacity: 0.05;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--courier-primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--courier-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--courier-dark);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* ==================== Cards ==================== */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.card-body {
    padding: 40px;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--courier-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==================== Buttons ==================== */
.btn-primary {
    background: var(--courier-gradient);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--courier-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-submit, .btn-track {
    background: var(--courier-gradient);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-submit::before, .btn-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before, .btn-track:hover::before {
    left: 100%;
}

.btn-submit:hover, .btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    color: white;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--courier-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--courier-dark);
    margin-bottom: 8px;
}

.form-control.is-invalid {
    border-color: var(--courier-accent);
}

.form-control.is-invalid:focus {
    border-color: var(--courier-accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.invalid-feedback {
    color: var(--courier-accent);
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* ==================== Contact Cards ==================== */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

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

.contact-icon {
    width: 100px;
    height: 100px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

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

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--courier-primary);
}

.contact-description {
    color: var(--courier-dark);
    line-height: 1.6;
    opacity: 0.8;
}

.contact-form-card, .tracking-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before, .tracking-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.tracking-icon {
    width: 120px;
    height: 120px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

/* ==================== Alerts ==================== */
.alert {
    border-radius: 15px;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(88, 214, 141, 0.1) 100%);
    color: #27ae60;
    border-left: 4px solid var(--courier-success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(236, 112, 99, 0.1) 100%);
    color: #c0392b;
    border-left: 4px solid var(--courier-accent);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--courier-dark);
    color: white;
    padding: 40px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.footer h5, .footer h6 {
    color: var(--courier-secondary);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--courier-secondary);
}

/* ==================== Login/Register Pages ==================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    position: relative;
}

.auth-card.register-card {
    max-width: 1000px;
}

.auth-header {
    background: var(--courier-gradient-dark);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(185, 28, 28, 0.2) 0%, transparent 50%);
}

.auth-header-content {
    position: relative;
    z-index: 2;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.auth-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.auth-body {
    padding: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: var(--courier-gradient-dark);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, var(--courier-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6)); }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-hero {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    background: white;
    color: var(--courier-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-hero.primary {
    background: var(--courier-secondary);
    border-color: var(--courier-secondary);
}

.btn-hero.primary:hover {
    background: #e67e22;
    border-color: #e67e22;
    color: white;
}

.hero-truck {
    position: relative;
    animation: truckBounce 4s ease-in-out infinite;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-2deg); }
}

/* ==================== Feature Cards ==================== */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.feature-icon {
    font-size: 4rem;
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--courier-primary);
}

.feature-description {
    color: var(--courier-dark);
    line-height: 1.6;
    opacity: 0.8;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: var(--courier-gradient-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(185, 28, 28, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ==================== Company Logo ==================== */
.company-logo {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* ==================== Icon Circles ==================== */
.icon-circle {
    width: 120px;
    height: 120px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

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

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--courier-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--courier-gradient);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--courier-primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* ==================== Team Cards ==================== */
.team-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--courier-gradient);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* ==================== Service Cards ==================== */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.service-icon {
    font-size: 4rem;
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--courier-primary);
}

.service-description {
    color: var(--courier-dark);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 5px 0;
    color: var(--courier-dark);
    opacity: 0.8;
}

.service-features li::before {
    content: '✓';
    color: var(--courier-success);
    font-weight: bold;
    margin-right: 10px;
}

/* ==================== Process Steps ==================== */
.process-step {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: stepPulse 3s ease-in-out infinite;
}

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

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--courier-primary);
    margin-bottom: 10px;
}

.step-description {
    color: var(--courier-dark);
    opacity: 0.8;
}

.process-arrow {
    position: absolute;
    top: 40px;
    right: -20px;
    font-size: 2rem;
    color: var(--courier-secondary);
    opacity: 0.6;
}

/* ==================== Order Info Card ==================== */
.order-info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.order-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.tracking-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--courier-primary);
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    margin-bottom: 20px;
}

.info-row {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row strong {
    color: var(--courier-primary);
}

/* ==================== Tracking Timeline (for tracking result page) ==================== */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ddd;
    z-index: 1;
}

.tracking-timeline .timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-right: 0 !important;
}

.tracking-timeline .timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 3;
    border: 3px solid white;
    background: var(--courier-gradient);
}

.tracking-timeline .timeline-item.active .timeline-marker {
    animation: pulse 2s infinite;
    background: var(--courier-success);
}

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

.tracking-timeline .timeline-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tracking-timeline .timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--courier-dark);
    margin-bottom: 5px;
}

.tracking-timeline .timeline-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==================== Pricing Cards ==================== */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.pricing-card.featured {
    border: 3px solid var(--courier-primary);
    transform: scale(1.05);
}

.pricing-card.featured::after {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #f39c12 0%, #fbbf24 100%);
    color: white;
    padding: 8px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.pricing-icon {
    width: 100px;
    height: 100px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
    color: var(--courier-dark);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--courier-success);
}

.btn-pricing {
    background: var(--courier-gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-pricing:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

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

.btn-pricing.outline:hover {
    background: var(--courier-primary);
    color: white;
}

.comparison-table {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    overflow: hidden;
    position: relative;
}

.comparison-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table .table th {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table .table th:first-child {
    background: var(--courier-gradient);
}

.comparison-table .table td {
    padding: 15px 20px;
    border-color: #e9ecef;
    vertical-align: middle;
    color: var(--courier-dark);
}

.comparison-table .table tbody tr {
    transition: all 0.15s ease;
}

.comparison-table .table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.check-icon {
    color: var(--courier-success);
    font-size: 1.2rem;
}

.cross-icon {
    color: var(--courier-accent);
    font-size: 1.2rem;
}

/* ==================== Calculator Cards ==================== */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.calculator-icon {
    width: 120px;
    height: 120px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3.5rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

.result-card {
    background: var(--courier-gradient);
    color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
    display: none;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.result-price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.result-breakdown {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.btn-calculate {
    background: var(--courier-gradient);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--courier-gradient);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--courier-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.info-card h6 {
    color: var(--courier-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==================== FAQ Section ==================== */
.search-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.1);
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--courier-gradient);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 15px 50px 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: var(--courier-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
}

.faq-category {
    margin-bottom: 50px;
}

.category-title {
    background: var(--courier-gradient);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.faq-item {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item:last-child {
    border-radius: 0 0 20px 20px;
}

.faq-item:hover {
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
}

.faq-question {
    background: #f8f9fa;
    padding: 25px 30px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--courier-primary);
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: var(--courier-primary);
    color: white;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 25px 30px;
    max-height: 2000px;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    margin-bottom: 15px;
}

.faq-answer.show {
    padding: 25px 30px;
    max-height: 1000px;
}

.faq-question h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ==================== Contact Cards (for FAQ page) ==================== */
.btn-contact {
    background: var(--courier-gradient);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

/* ==================== Calculator Loading Indicator ==================== */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading .spinner-border {
    color: var(--courier-primary);
    width: 3rem;
    height: 3rem;
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .page-title, .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .contact-form-card, .tracking-form-card, .contact-card, .stats-card {
        padding: 30px;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-body {
        padding: 30px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer.show {
        padding: 20px;
    }
}

