@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f172a; /* Navy Blue */
    --primary-light: #1e293b;
    --accent-color: #d97706; /* Elegant Gold/Amber */
    --accent-hover: #b45309;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Typography & Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all var(--transition-speed);
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, rgba(217,119,6,0) 70%);
    border-radius: 50%;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Track Ticket Card */
.track-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(30px);
}
.track-input {
    height: 3.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    font-size: 1.1rem;
}
.track-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(217, 119, 6, 0.25);
}

/* Feature Cards */
.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Wizard Form */
.wizard-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 24px;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 2;
    transition: width 0.4s ease;
}

.step-indicator {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-indicator.active .step-icon {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

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

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-indicator.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.form-control, .form-select {
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(217, 119, 6, 0.15);
}
.input-group-text {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.wizard-step-content.active {
    display: block;
}

/* Dynamic Rows */
.handak-row {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    animation: slideDown 0.3s ease;
}
.btn-remove-row {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 10;
}
.btn-remove-row:hover {
    background: #dc2626;
    transform: scale(1.1);
}

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

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: auto;
}

/* Tracking Timeline */
.tracking-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    position: relative;
}
.tracking-timeline {
    position: relative;
    padding-left: 3rem;
    margin: 2rem 0;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
    min-height: 0;
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-icon {
    position: absolute;
    left: -3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-1px);
    color: var(--border-color);
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-item.completed .timeline-icon {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}
.timeline-item.active .timeline-icon {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.2);
    animation: pulseIcon 2s infinite;
}
@keyframes pulseIcon {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
.timeline-item.rejected .timeline-icon {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
}
.timeline-content h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--primary-light);
}
.timeline-item.completed .timeline-content h5 {
    color: var(--success-color);
}
.timeline-item.active .timeline-content h5 {
    color: var(--accent-color);
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}
.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .step-label { display: none; }
    .wizard-container { padding: 1.5rem; }
}
