/* ========================================
   MODERN RESERVATION STYLES
   ======================================== */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
}

/* Section Title Styles */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title h2 i {
    color: #FFFFFF!important;
    font-size: 2.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Modern Card Styles */
.modern-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* No Departure Card */
.no-departure {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.no-departure-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-departure h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-departure p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Departure Card Styles */
.departure-card {
    background: #ffffff;
}

.card-header {
    background: linear-gradient(135deg, #5f59f3 0%, #3160fc 100%);
    color: white;
    padding: 1.5rem;
}

.route-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.route-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 1.5rem;
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #0f07d8;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.detail-item i {
    font-size: 1.5rem;
    color: #0800ff;
    width: 24px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size:  1.2rem;
    color: #001aff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.5rem;
    color: #000000;
    font-weight: 600;
}

.card-footer {
    padding: 1.5rem;
    background: #ffffff;
    border-top: 1px solid #ffffff;
}

.reservation-form {
    display: flex;
    justify-content: center;
}

.btn-reserve {
    background: linear-gradient(90deg, #4866fe 0%, #2200ff 100%);
    color: #fff !important;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: 
        background 0.25s cubic-bezier(.4,0,.2,1),
        box-shadow 0.25s cubic-bezier(.4,0,.2,1),
        transform 0.15s cubic-bezier(.4,0,.2,1);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 8px 24px 0 rgba(255, 152, 0, 0.18), 0 1.5px 4px 0 rgba(0,0,0,0.08);
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}
.btn-reserve::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(.4,0,.2,1), height 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.btn-reserve:hover::after {
    width: 250%;
    height: 250%;
}
.btn-reserve span, .btn-reserve i {
    position: relative;
    z-index: 1;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 7, 216, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #0f07d8 100%);
}

.btn-reserve:active {
    transform: translateY(0);
}

.btn-reserve i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title h2 i {
        font-size: 1.8rem;
    }

    .route-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .route-title {
        font-size: 1.2rem;
        min-width: auto;
    }

    .trip-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-item {
        padding: 0.75rem;
    }

    .btn-reserve {
        width: 100%;
        padding: 1.25rem 2rem;
    }

    .modern-card {
        margin-bottom: 1rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.75rem;
    }

    .no-departure {
        padding: 2rem 1rem;
    }

    .no-departure-icon {
        font-size: 3rem;
    }

    .no-departure h3 {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation for card entrance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card {
    animation: slideInUp 0.6s ease-out;
}

.modern-card:nth-child(2) {
    animation-delay: 0.1s;
}

.modern-card:nth-child(3) {
    animation-delay: 0.2s;
}

.modern-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-reserve {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn-reserve:focus {
    outline: 2px solid #0f07d8;
    outline-offset: 2px;
}

.detail-item:focus-within {
    background: #edf2f7;
    border-left-color: #1e40af;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }

    .modern-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .detail-item {
        background: #4a5568;
    }

    .detail-item:hover {
        background: #2d3748;
    }

    .detail-value {
        color: #e2e8f0;
    }

    .card-footer {
        background: #4a5568;
        border-top-color: #2d3748;
    }
}

/* Legacy styles cleanup - keeping only essential ones */
.text_info {
    color: #2d3748;
    font-size: 1.25rem;
    text-align: left;
    font-weight: 600;
}

@media (max-width: 760px) {
    .text_info {
        font-size: 1.125rem;
        text-align: center;
    }
}

/* Form styles */
.form-style-1 input[type="submit"],
.form-style-1 input[type="button"] {
    cursor: pointer;
}

#rad {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

label .radio-lab {
    margin-right: 15px;
    line-height: 32px;
}

input:checked {
    border: 6px solid black;
}

legend {
    color: white;
    background-color: #0f07d8;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 4px;
    border: 0;
    font-size: 14px;
}

.form-style-1 label {
    color: #2d3748;
    margin-right: 25px;
}

.padding-btn-traking-colis {
    padding: 9px 10px 9px 10px;
    margin-top: 34px;
}
