/**
 * FairLend Loans - Premium Stylesheet
 * ===================================
 * Premium Financial Lending Platform
 * Complete responsive design with animations
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #0B1F3A;
    --primary-light: #1a3a5c;
    --secondary-color: #D4AF37;
    --secondary-light: #E8C547;
    --accent-color: #C0392B;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --info-color: #17A2B8;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0); }
    50% { transform: scale(1); }
}

/* ============================================
   NOTIFICATION BAR
   ============================================ */
.notification-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-color);
    padding: 12px 0;
    position: relative;
    z-index: 1030;
}

.notification-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.notification-bar-close {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.notification-bar-close:hover {
    transform: rotate(90deg);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--secondary-color);
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.top-bar span {
    margin-right: 25px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--primary-color) !important;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-img {
    max-height: 45px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-text span {
    color: var(--white);
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(212, 175, 55, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.btn-apply-nav {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 12px 28px !important;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-apply-nav:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.png') repeat;
    opacity: 0.05;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(11, 31, 58, 0.4) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-header-content h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header-content .breadcrumb {
    background: none;
    padding: 0;
    justify-content: center;
}

.page-header-content .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-content .breadcrumb-item a {
    color: var(--secondary-color);
}

.page-header-content .breadcrumb-item.active {
    color: var(--white);
}

.page-header-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-padding {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 130px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.png') repeat;
    opacity: 0.05;
}

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

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

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

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 45px;
    font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.card-body {
    padding: 35px;
}

.card-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover .card-icon {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ============================================
   LOAN CARDS
   ============================================ */
.loan-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.loan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
}

.loan-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.loan-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(11, 31, 58, 0.3), transparent);
}

.loan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.loan-card:hover .loan-card-image img {
    transform: scale(1.1);
}

.loan-card-content {
    padding: 30px;
}

.loan-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.loan-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.loan-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.loan-card-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.loan-card-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control, .form-select {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-section {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h3 i {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.input-group-text {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--primary-color);
    padding: 14px 16px;
    font-weight: 500;
}

.input-group .form-control {
    border-left: none;
}

/* Application Form Card */
.application-form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 2.2rem;
}

.form-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 1.05rem;
}

.application-form-card form {
    padding: 40px;
}

/* Success Message */
.success-message-card {
    background: var(--white);
    padding: 70px 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    font-size: 6rem;
    color: var(--success-color);
    margin-bottom: 25px;
    animation: successPulse 1s ease;
}

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

.reference-box {
    background: linear-gradient(135deg, var(--light-bg), #fff);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 35px 0;
    border: 2px dashed var(--secondary-color);
}

.reference-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 10px 0 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 35px auto;
}

.next-steps h4 {
    text-align: center;
    margin-bottom: 25px;
}

.next-steps ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.next-steps ul li i {
    color: var(--success-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* ============================================
   SIGNATURE PAD
   ============================================ */
.signature-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    background: var(--light-bg);
}

.signature-pad {
    width: 100%;
    height: 220px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    cursor: crosshair;
    touch-action: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================
   PREMIUM TRACKING PAGE STYLES
   ============================================ */
.tracking-search-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.tracking-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.tracking-input-group {
    max-width: 600px;
    margin: 0 auto;
}

.tracking-input-group .input-group-text {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.3rem;
    padding: 16px 20px;
}

.tracking-input-group .form-control {
    border-width: 2px;
    font-size: 1.1rem;
    padding: 16px 20px;
}

.tracking-input-group .btn {
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* Status Card */
.status-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.status-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 35px 40px;
}

.status-header h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.status-badge-large {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.status-pending {
    background: var(--warning-color);
    color: var(--primary-color);
}

.status-review {
    background: var(--info-color);
    color: var(--white);
}

.status-approved {
    background: var(--success-color);
    color: var(--white);
}

.status-paid {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.status-rejected {
    background: var(--danger-color);
    color: var(--white);
}

.status-not-found {
    background: var(--text-muted);
    color: var(--white);
}

/* Progress Section */
.progress-section {
    padding: 30px 40px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.progress-label {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-percentage {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.progress-large {
    height: 20px;
    border-radius: 10px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-large .progress-bar {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 20px;
}

/* Timeline Section */
.timeline-section {
    padding: 40px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.timeline-title i {
    color: var(--secondary-color);
}

.timeline-loading {
    text-align: center;
    padding: 50px;
}

/* Premium Timeline */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 0;
}

.timeline-stage {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.stage-connector {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: -1;
}

.timeline-stage.completed .stage-connector {
    background: var(--success-color);
}

.stage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    background: var(--white);
    border: 4px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.timeline-stage.completed .stage-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.timeline-stage.current .stage-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    animation: pulseStage 2s infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes pulseStage {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.7); }
}

.stage-content {
    padding: 0 5px;
}

.stage-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.stage-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.stage-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Details Section */
.details-section {
    padding: 40px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.details-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.details-title i {
    color: var(--secondary-color);
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Not Found Section */
.not-found-section {
    padding: 60px 40px;
}

.not-found-icon {
    width: 100px;
    height: 100px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: var(--text-muted);
}

/* Status Footer */
.status-footer {
    padding: 20px 40px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger-color);
    letter-spacing: 1px;
}

.refresh-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 35px 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.process-step .step-number {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

.process-step .step-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Support CTA */
.support-cta {
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.support-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-info-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 25px;
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.contact-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-info-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

.contact-form-card {
    background: var(--white);
    padding: 45px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsappBounce 2s infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.livechat-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-gold);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}

.livechat-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* ============================================
   SOCIAL PROOF POPUP - PREMIUM
   ============================================ */
.social-proof-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    max-width: 380px;
}

.social-proof-popup {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: socialProofSlide 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--secondary-color);
}

@keyframes socialProofSlide {
    0% {
        opacity: 0;
        transform: translateX(-120%) scale(0.8);
    }
    70% {
        transform: translateX(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.social-proof-popup.hiding {
    animation: socialProofHide 0.4s ease forwards;
}

@keyframes socialProofHide {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-120%) scale(0.8);
    }
}

.social-proof-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-message {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.social-proof-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

.social-proof-amount {
    color: var(--secondary-color);
    font-weight: 700;
}

.social-proof-time {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-proof-time::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.social-proof-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-proof-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
}

.footer-top {
    padding: 90px 0 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-img {
    max-height: 55px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.footer-contact .contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
}

.footer-contact .contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact .contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.7;
}

.footer-contact .contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-newsletter h4 i {
    color: var(--secondary-color);
    margin-right: 12px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.newsletter-form .form-control {
    border: none;
    padding: 16px 22px;
    border-radius: 30px 0 0 30px;
}

.newsletter-form .btn {
    padding: 16px 35px;
    border-radius: 0 30px 30px 0;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--border-radius-sm);
    padding: 18px 22px;
    border: none;
}

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

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

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

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

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--border-radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 22px 25px;
    box-shadow: none;
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230B1F3A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 25px;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header-content h1 {
        font-size: 2.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .navbar-collapse {
        background: var(--primary-color);
        padding: 25px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }
    
    .tracking-search-card,
    .contact-form-card,
    .support-card {
        padding: 40px;
    }
    
    /* Timeline mobile */
    .timeline-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-wrapper::before {
        display: none;
    }
    
    .timeline-stage {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    
    .stage-connector {
        display: none;
    }
    
    .stage-icon {
        margin: 0;
        flex-shrink: 0;
    }
    
    .back-to-top {
        right: 100px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.7rem;
    }
    
    .tracking-search-card,
    .contact-form-card,
    .support-card {
        padding: 30px 20px;
    }
    
    .status-header {
        padding: 25px;
    }
    
    .progress-section,
    .timeline-section,
    .details-section {
        padding: 25px;
    }
    
    .footer-top {
        padding: 60px 0 40px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
    
    .livechat-float {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        bottom: 85px;
        right: 20px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 150px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .social-proof-container {
        left: 15px;
        right: 15px;
        bottom: 160px;
        max-width: none;
    }
    
    .social-proof-popup {
        max-width: 100%;
    }
    
    .tracking-input-group .btn {
        padding: 14px 20px;
    }
    
    .tracking-input-group .btn span {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .timeline-stage {
        gap: 15px;
    }
    
    .stage-icon {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
    
    .tracking-header h3 {
        font-size: 1.3rem;
    }
    
    .tracking-content {
        padding: 20px;
    }
    
    .success-message-card {
        padding: 40px 25px;
    }
    
    .reference-number {
        font-size: 1.8rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .livechat-float,
    .livechat-container,
    .social-proof-container,
    .back-to-top,
    .notification-bar,
    .top-bar {
        display: none !important;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}
