﻿:root {
    --primary: #b58861;
    --primary-red: var(--theme-color);
    --primary-dark: #010101;
    --error: var(--error-color);
    --light-gray: var(--main-color);
    --text-primary: var(--heading-color);
    --text-secondary: var(--para-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.app-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, var(--light-gray) 100%);
    z-index: -1;
}

.transport-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 900px; /* Increased from 500px */
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

    .transport-card:hover {
/*        transform: translateY(-5px);*/
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

.card-header {
    background: var(--primary);
    color: #fff;
    padding: 35px 30px; /* Increased padding */
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .card-header::before {
        content: '';
        position: absolute;
        bottom: -60px;
        right: -60px;
        width: 180px;
        height: 180px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

.header-content {
    position: relative;
    z-index: 2;
}

.header-text h3 {
    /*font-size: 2.5rem;*/ /* Slightly larger */
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}

.header-text p {
    /*font-size: 1.1rem;*/ /* Slightly larger */
    opacity: 0.9;
    margin-bottom: 0;
}

.airport-name {
    /*font-size: 1.2rem;*/ /* Slightly larger */
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
}

.form-section {
    padding: 35px 30px; /* Increased padding */
    display: none;
}

    .form-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

.section-title {
    /*font-size: 1.5rem;*/ /* Larger section titles */
    margin-bottom: 30px; /* More spacing */
    color: var(--theme-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

    .section-title span {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 32px; /* Larger circle */
        height: 32px;
        background: var(--primary-dark);
        color: #fff;
        border-radius: 50%;
        margin-right: 15px;
        font-size: 1rem; /* Larger number */
        font-weight: 500;
    }

.big-label {
/*    font-size: 2rem;*/
    font-weight: 600;
    color: var(--primary-dark);
}

.input-group {
    display: flex;
    gap: 20px; /* More spacing between inputs */
    margin-bottom: 25px;
}

.half-width {
    flex: 1;
    min-width: 0;
}

.input-group .floating-input {
    margin-bottom: 0;
}

.floating-input {
    position: relative;
    margin-bottom: 25px; /* More spacing */
}

    .floating-input input,
    .floating-input select,
    .floating-input textarea {
        width: 100%;
        padding: 18px 20px; /* Larger inputs */
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 10px; /* Slightly rounder */
        /*font-size: 1.1rem;*/ /* Larger text */
        transition: all 0.3s ease;
        background-color: #fff;
        color: var(--text-primary);
    }

    .floating-input textarea {
        min-height: 100px; /* Taller textarea */
        resize: vertical;
    }

    .floating-input label {
        position: absolute;
        top: -10px;
        left: 12px;
        /*font-size: 1rem;*/ /* Slightly larger */
        color: #5e5e62;
        background: #fff;
        padding: 0 6px;
        font-weight: 500;
        pointer-events: none;
        z-index: 2;
    }

    .floating-input input:focus,
    .floating-input select:focus,
    .floating-input textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
    }

/*.select-input::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
    pointer-events: none;
}*/

.next-btn, .submit-btn, .back-btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    padding: 18px 30px; /* Larger buttons */
    border-radius: 10px;
    /*font-size: 1.2rem;*/ /* Larger text */
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

    .next-btn:hover,
    .submit-btn:hover,
    .back-btn:hover {
        background: #fff;
        color: var(--primary);
        border: 1px solid var(--primary);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.ticket-actions {
    display: flex;
    justify-content: center;
    /*padding: 0 25px;*/
    padding-bottom: 10px;
}

    .ticket-actions .next-btn {
        max-width: 350px; /* Wider button */
        width: 100%;
    }

.button-group {
    display: flex;
    gap: 20px; /* More spacing */
    margin-top: 25px;
}

    .button-group .submit-btn,
    .button-group .back-btn {
        flex: 1;
    }

.arrow-icon {
    display: inline-block;
    width: 12px; /* Slightly larger */
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 12px;
    border-width: 2px;
}

/* Add to your CSS file */
.section-title i {
    margin-right: 10px;
/*    color: var(--primary);*/
}

.floating-input label i {
    margin-right: 5px;
}

.next-btn:hover .arrow-icon,
.submit-btn:hover .arrow-icon {
    border-color: var(--primary);
}

.back-btn .arrow-icon {
    transform: rotate(-135deg);
    border-color: #fff;
    margin-left: 0;
    margin-right: 12px;
}

.back-btn:hover .arrow-icon {
    border-color: var(--primary);
}

.card-footer {
    padding: 20px 30px; /* More padding */
    background: rgba(0, 0, 0, 0.03);
    text-align: center;
    /*font-size: 1rem;*/ /* Larger text */
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.validation-error {
    display: block;
    color: var(--error);
    /*font-size: 0.9rem;*/ /* Slightly larger */
    margin-top: 6px;
    font-weight: 500;
}

/* Schedule Table Styles */
.schedule-title {
    /*font-size: 1.3rem;*/ /* Larger */
    margin: 25px 0 15px; /* More spacing */
    color: var(--primary-dark);
    font-weight: 600;
}

.schedule-table {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

    .schedule-table table {
        width: 100%;
        border-collapse: collapse;
        text-align: center;
    }

    .schedule-table th {
        background-color: var(--primary);
        color: white;
        padding: 15px; /* More padding */
        /*font-size: 1rem;*/ /* Larger text */
        font-weight: 600;
        text-align: center;
    }

    .schedule-table td {
        padding: 15px; /* More padding */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /*font-size: 1rem;*/ /* Larger text */
    }

    .schedule-table tr:nth-child(even) {
        background-color: rgba(0, 0, 0, 0.02);
    }

    .schedule-table tr:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

.selected-row {
    background-color: #e1f5fe !important;
    font-weight: bold;
}

.ticket-container {
    /*max-width: 600px;*/ /* Larger */
    /*margin: 35px auto;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);*/
    padding: 25px;
    text-align: center;
}

    .ticket-container img {
        width: 220px;
        height: 220px;
        margin-top: 20px;
    }

/*    Start of companion*/

/* Add/Remove Passenger Buttons */
.add-more-btn, .remove-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
/*    font-size: 1rem;*/
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
}

.add-more-btn {
    background: var(--primary);
    border: 1px solid var(--primary);
}

.remove-btn {
    background: #fff;
    color: var(--error);
    border: 1px solid var(--error);
}

.add-more-btn:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.remove-btn:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-passenger-section {
    margin-top: 20px;
}

.companion-fields {
    position: relative;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.companion-title {
    color: var(--primary-dark);
    margin-bottom: 20px;
/*    font-size: 1.2rem;*/
    font-weight: 600;
}


/*end of  Companion*/


.clickable-row {
    cursor: pointer;
}

.required {
    color: red;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile styles (unchanged) */
@media (max-width: 576px) {
    .app-container {
        padding: 15px;
        align-items: flex-start;
    }

    .header-text p {
        /*font-size: 0.9rem;*/ /* Slightly larger */
    }

    .airport-name {
/*        font-size: 0.7rem;*/
    }

    .transport-card {
        margin-top: 20px;
        max-width: 100%; /* Full width on mobile */
        border-radius: 12px;
    }

    .card-header {
        padding: 25px 20px;
    }

    .header-text h3 {
/*        font-size: 1.8rem;*/
    }

    .form-section {
        padding: 25px 20px;
    }

    .section-title {
/*        font-size: 1.3rem;*/
        margin-bottom: 25px;
    }

        .section-title span {
            width: 28px;
            height: 28px;
/*            font-size: 0.9rem;*/
        }

    .input-group {
        flex-direction: column;
        gap: 20px;
    }

    .half-width {
        width: 100%;
    }

    .floating-input input,
    .floating-input select,
    .floating-input textarea {
        padding: 16px 15px;
/*        font-size: 1rem;*/
    }

    .button-group {
/*        flex-direction: column-reverse;*/
        gap: 10px;
    }

        .button-group .submit-btn,
        .button-group .back-btn {
            width: 100%;
            flex: auto;
            padding: 16px 25px;
/*            font-size: 1.1rem;*/
        }

    .schedule-table {
        display: block;
        overflow-x: auto;
    }

        .schedule-table th,
        .schedule-table td {
            padding: 12px 10px;
/*            font-size: 0.9rem;*/
        }

    .confirmation-box {
        max-width: 100%;
        margin: 25px 0;
        padding: 20px;
    }
}

/* Additional media query for medium screens (tablets) */
@media (min-width: 577px) and (max-width: 992px) {
    .transport-card {
        max-width: 600px; /* Slightly smaller than desktop */
    }

    .card-header {
        padding: 30px 25px;
    }

    .form-section {
        padding: 30px 25px;
    }

    .ticket-actions {
        padding-bottom: 0;
    }
}
@media (max-width: 576px) {

    .button-group .submit-btn,
    .button-group .back-btn {
        /* This will override the global button padding and font-size. */
        padding: 12px 20px; /* A smaller padding */
        font-size: 1rem; /* A smaller font size */
        width: auto; /* Allow buttons to size based on content */
        flex: 1; /* Makes them share the space equally */
    }

    .button-group {
        margin-top: 5px;
    }

    /* You can add more styles here for small screens */
}