/* SetMyFare - Design System */

:root {
    --primary: #1a4b8c;
    --primary-light: #2d6bc5;
    --primary-dark: #0c2a56;
    --secondary: #ffc107;
    --secondary-dark: #e0a800;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --gray: #f0f0f0;
    --border-gray: #ced4da;
    --text: #333333;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #fd7e14;
    --unselected-bg: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-brand span {
    color: var(--secondary);
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.btn-login {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    font-size: 1.1rem;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a4b8c 0%, #2980b9 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.feature-icon {
    background-color: #ffc107;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: var(--dark);
}

/* Search Container */
.search-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

/* Trip Types */
.trip-types {
    display: flex;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.trip-type {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--unselected-bg);
    color: var(--text);
    font-weight: 500;
    border: none;
}

.trip-type.active {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-control.no-icon {
    padding-left: 15px;
}

/* Buttons */
.btn-search {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-search:hover {
    background-color: var(--primary-dark);
}

.btn-book {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-book:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-offer {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-offer:hover {
    background-color: var(--secondary-dark);
}

/* Search Summary */
.search-summary {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.search-route {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.search-route i {
    margin: 0 10px;
    color: var(--secondary);
}

.search-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    color: #6c757d;
    font-size: 1.1rem;
}

.search-detail i {
    margin-right: 8px;
    color: var(--primary);
}

/* Flight Cards */
.flight-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.flight-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.flight-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.flight-airline {
    display: flex;
    align-items: center;
    min-width: 150px;
}

.airline-logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.airline-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.airline-code {
    font-size: 0.9rem;
    color: #6c757d;
}

.flight-times-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flight-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.flight-airport {
    font-size: 0.9rem;
    color: #6c757d;
}

.flight-path {
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.flight-duration {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.flight-path-line {
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: relative;
    margin: 8px 0;
}

.flight-path-line::before,
.flight-path-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    top: 50%;
    transform: translateY(-50%);
}

.flight-path-line::before { left: 0; }
.flight-path-line::after { right: 0; background-color: var(--secondary); }

.flight-stops {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 500;
}

.flight-stops.has-stops {
    color: var(--warning);
}

.flight-price-section {
    text-align: right;
    min-width: 150px;
}

.flight-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.flight-price-note {
    font-size: 0.85rem;
    color: #6c757d;
}

.flight-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--light);
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.flight-expand-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

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

.flight-details-expanded {
    display: none;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background-color: #fafafa;
}

/* Checkout */
.breadcrumb-section {
    background-color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.checkout-container {
    padding: 30px 0 60px;
}

.checkout-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

.checkout-step {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 12px;
}

/* Summary Card */
.summary-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-complete {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    cursor: pointer;
}

.btn-complete:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.secure-badge {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.secure-badge i {
    color: var(--success);
}

/* Confirmation */
.confirmation-container {
    padding: 40px 0 60px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.booking-reference {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.btn-download {
    background-color: var(--primary);
    color: var(--white);
}

.confirmation-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.confirmation-card .card-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Set Price Modal */
.set-price-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.set-price-content {
    background-color: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.set-price-header {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.set-price-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.set-price-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.set-price-body {
    padding: 25px;
}

.set-price-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.price-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}

.price-input-group span {
    background-color: var(--light);
    padding: 12px 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.price-input-group input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.2rem;
    outline: none;
}

.btn-set-price {
    width: 100%;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.btn-set-price:hover {
    background-color: var(--secondary-dark);
}

.price-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.price-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #6c757d;
}

.price-info i {
    color: var(--success);
    margin-top: 3px;
}

/* Filters */
.filters-sidebar {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.filter-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 22px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .navbar-brand { font-size: 1.6rem; }
    .form-row { flex-direction: column; }
    .flight-card-main { flex-direction: column; align-items: flex-start; }
    .flight-price-section { text-align: left; width: 100%; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e9ecef; }
    .action-buttons { width: 100%; flex-direction: column; }
    .action-buttons .btn { width: 100%; }
}
