:root{
    --primary: #ff0000;
    --primary-light: #fc4a4a;
    --secondary:#d66c4f;
    --secondarybg:#fdf2e9;
    --goldbg-light:#e8d3b2;
    --gold-text:#DAA520;
    --gold-text-light:#f7bd2d;
    --blue-text:#0077FF;
    --blue-text-dark:#0055A4;
}


#swap-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 14px;
}

#swap-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 1px solid black;
    cursor: pointer;
    margin-top: 30px;
    margin-left: 110px;
}

#about {
    position: relative;
    z-index: 0;
}

#about::before {
    content: "";
    background: url('/img/bgtop.png') repeat-y center / cover;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.callbox {
    background-color: var(--primary); /* Цвет фона (красный) */
    color: #fff; /* Цвет текста (белый) */
    padding: 20px; /* Отступы внутри блока */
    border-radius: 10px; /* Закругление углов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень блока */
    text-align: center; /* Выравнивание текста по центру */
    margin-top: 10px;
}

.callbox h2 {
    color: var(--gold-text); /* Цвет заголовка (золотой) */
    font-size: 24px; /* Размер шрифта заголовка */
    margin-bottom: 10px; /* Отступ снизу для заголовка */
}

.callbox p {
    font-size: 18px; /* Размер шрифта текста */
    margin-bottom: 20px; /* Отступ снизу для текста */
}

.callbox a {
    color: var(--gold-text); /* Цвет текста кнопки (белый) */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    transition: background-color 0.3s; /* Плавное изменение цвета при наведении */
    font-weight: bold;
}

.callbox a:hover {
    color: var(--gold-text-light); /* Изменение цвета кнопки при наведении */
}

.callbox2 {
    background-color: var(--goldbg); /* Цвет фона (красный) */
    color: #fff; /* Цвет текста (белый) */
    padding: 20px; /* Отступы внутри блока */
    border-radius: 10px; /* Закругление углов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень блока */
    text-align: center; /* Выравнивание текста по центру */
    margin-top: 10px;
}

.callbox2 h2 {
    color: var(--primary); /* Цвет заголовка (золотой) */
    font-size: 24px; /* Размер шрифта заголовка */
    margin-bottom: 10px; /* Отступ снизу для заголовка */
}

.callbox2 p {
    font-size: 18px; /* Размер шрифта текста */
    margin-bottom: 20px; /* Отступ снизу для текста */
}

.callbox2 a {
    color: var(--primary); /* Цвет текста кнопки (белый) */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    transition: background-color 0.3s; /* Плавное изменение цвета при наведении */
    font-weight: bold;
}

.callbox2 a:hover {
    color: var(--primary-light); /* Изменение цвета кнопки при наведении */
}

.callbox3 {
    background-color: var(--blue-text-dark); /* Цвет фона (красный) */
    color: #fff; /* Цвет текста (белый) */
    padding: 20px; /* Отступы внутри блока */
    border-radius: 10px; /* Закругление углов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень блока */
    text-align: center; /* Выравнивание текста по центру */
    margin-top: 10px;
}

.callbox2 h2 {
    color: var(--primary); /* Цвет заголовка (золотой) */
    font-size: 24px; /* Размер шрифта заголовка */
    margin-bottom: 10px; /* Отступ снизу для заголовка */
}

.callbox2 p {
    font-size: 18px; /* Размер шрифта текста */
    margin-bottom: 20px; /* Отступ снизу для текста */
}

.callbox2 a {
    color: var(--primary); /* Цвет текста кнопки (белый) */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    transition: background-color 0.3s; /* Плавное изменение цвета при наведении */
    font-weight: bold;
}

.callbox2 a:hover {
    color: var(--primary-light); /* Изменение цвета кнопки при наведении */
}


.innerheader{
    background-color: red;
}

.errorform{
    border: 1px solid red;
}
.successform{
    border: 1px solid green;
}

.highlightform{
    border: 1px solid #0047AB;
}

.autocomplete-suggestions { border: 1px solid #999; background: #FFF; overflow: auto; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }
.autocomplete-group { padding: 2px 5px; }
.autocomplete-group strong { display: block; border-bottom: 1px solid #000; }

.hrilead {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #DAA520, transparent);
    margin: 20px 0;
}

.hrileadadm {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(1, 41, 112, 0.4), #012970, rgba(1, 41, 112, 0.4));
    margin: 20px 0;
}

.section-title p.f-gold{
    color:var(--gold-text);
}

.f-gold{
    color:var(--gold-text);
}

.section-title p.f-blue{
    color:var(--blue-text);
}

.f-blue{
    color:var(--blue-text);
}

.input-group-text-mandatory{
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: red;
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.info a{
    font-size: 1.2em;
}

input[readonly] {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #555;
    cursor: not-allowed;
}

input[readonly]:hover {
    border-color: #888;
}

.btn-ilead{
    border: 1px solid var(--gold-text);
    border-radius: 5px;
    background-color: var(--gold-text-light);
    color: black;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding:0.25rem;
}

.btn-ilead:hover, .btn-ilead:focus{

    border-radius: 5px;
    background-color: #f9c84e;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;

}

table.moderntable {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-collapse: collapse;
}

table.moderntable th, table.moderntable td {
    padding: 8px;
    text-align: left;
}

table.moderntable tr:nth-child(even) {
    background-color: #f2f2f2;
}

table.moderntable tr:hover {
    background-color: #e2e2e2;
}

div.search .search-input{
    font-size:14px;
}

.editinlinecontrol{
    display: none;
}

.istatusbar{
    background: #E5E4E2;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    border:1px solid #7393B3
}

.istatusbar i.fa-circle-dot{
    color:#3F00FF;
}

.card-title-ilead {
    padding: 5px;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: "Montserrat", sans-serif;
}

#commentssectiontask{
    margin-top: 10px;
}

.commentintask{
    margin-top: 5px;
    padding: 10px 10px 5px 15px;
    border-top:1px solid black;
    border-top:1px solid black;
}

.ihidden{
    display: none;
}

#editexediv, #editduedatediv, #tbodyform_edit, #tnameform_edit{
    display: none;
}

.b{
    font-weight: bold;
}

.f-red{
    color: #D2042D;
}

.switches{
    font-size: 1rem;
    background: white;
    padding:3px;
    border-radius: 5px;
}

.divnicegroup{
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.375rem;
}

.divnicegroup-item{
    padding: 10px 10px;
    color: #212529;
    text-decoration: none;
    background-color: white;
    border: 1px solid #dee2e6;
}
.divnicegroup-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.divnicegroup-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.btn-tiny{
    padding:0.15rem 0.3rem;
    font-size: 0.8rem;
    border-radius: 5px;
}

.srvlayer .icon-box{
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 16px;
}

.srvlayer .icon-box i{
    font-size: 16px;
    padding-right: 5px;
    line-height: 1;
}


.divgroup-item{
    padding: 5px 10px;
    color: #212529;
    text-decoration: none;
    background-color: white;
    border: 1px solid #dee2e6;
}

.divgroup-fill{
    padding: 20px;
    color: #212529;
    text-decoration: none;
    background-color: whitesmoke;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

span.smallgrey{
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
}

.card-image{
    background-color: white;
}

.card-text{
    font-size: 15px;
}

.card-text p{
    margin-bottom: 0px;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container and is cropped as necessary */
    border-radius: unset;
}

.commentheader{
    border-bottom: 1px dashed black;
    padding-bottom: 10px;
}

/*Телефоны*/
@media (max-width: 991px) {
    .mtr-0 {
        margin-top: 0 !important;
    }

    .mtr-1 {
        margin-top: 0.25rem !important;
    }

    .mtr-2 {
        margin-top: 0.5rem !important;
    }

    .mtr-3 {
        margin-top: 1rem !important;
    }

    .mtr-4 {
        margin-top: 1.5rem !important;
    }

    .mtr-5 {
        margin-top: 3rem !important;
    }
    .switches{
        font-size: 0.8rem;

    }
}

/*Вагон*/
.train-wagon-container {
    overflow-x: auto;
    padding-bottom: 20px;
}
.train-wagon {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 1000px; /* Adjust based on your cabin count and minimum width */
}
.front-wagon {
    flex: 0 0 10%;
    background-color: #f8f9fa;
    border-left: 5px solid green;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid #ccc;
    flex-direction: row;
    height: auto;
    border-radius: 10px;
}
.front-wagon > div {
    margin: 20px 10px; /* Horizontal spacing between items */
}


.end-wagon {
    flex: 0 0 10%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ccc;
    flex-direction: column;
    height: auto;
    border-radius: 10px;
}

.train-wagon-container .main-section {
    width: 100%;
}
.main-cabins {
    display: flex;
    flex: 1;
}
.cabin {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc;
    border-radius: 10px;
    min-height: 120px;
    position: relative;
    padding: 10px;
    cursor: default; /* Cabin itself is not clickable */
}

.cabin.coupe::after {
    content: '';
    position: absolute;
    bottom: 0px; /* Adjust if necessary for spacing from bottom */
    left: 50%;
    transform: translateX(-50%); /* Center the line horizontally */
    width: 30%; /* Adjust the width of the line */
    height: 6px; /* Thickness of the line */
    background-color: #addfad; /* Color of the line */
    border-radius: 2px; /* Optional: Rounded edges of the line */
}

.cabin:last-child {
    border-right: none;
}
.cabin:hover {
    background-color: #e9ecef;
}
.cabin a {
    position: absolute;
    width: 20%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}
.cabin a:nth-child(1) {
    top: 5%;
    left: 10%;
    align-items: flex-start;
    justify-content: center;
}
.cabin a:nth-child(2) {
    top: 5%;
    left: 70%;
    align-items: flex-start;
    justify-content: center;
}
.cabin a:nth-child(3) {
    bottom: 5%;
    left: 10%;
    align-items: flex-end;
    justify-content: center;
}
.cabin a:nth-child(4) {
    bottom: 5%;
    left: 70%;
    align-items: flex-end;
    justify-content: center;
}

.corridor{
    height: 25px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
    flex: 1;
}

.corridor.coupe {
    height: 25px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    flex: 1;
}
.small-cabins {
    display: flex;
    flex: 1;
}
.small-cabin {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default; /* Cabin itself is not clickable */
    border-right: 1px solid #ccc;
}
.small-cabin:last-child {
    border-right: none;
}
.small-cabin:hover {
    background-color: #e9ecef;
}

.small-cabin a:nth-child(1) {
    margin-left: 5px;
}
.small-cabin a:nth-child(2) {
    margin-right: 5px;
}

.seat-icon {
    font-size: 2em;
    color: #007bff;
}

.btn-seat{
    padding: 2px 2px;
    font-size: 0.875rem;
    border-radius: 5px;
    min-width: 20px;
}

.btn-seat.disabled,
.btn-seat.disabled:hover,
.btn-seat.disabled:focus {
    cursor: not-allowed;
    opacity: 0.65; /* Makes it look disabled */
    pointer-events: none; /* Prevents clicking */
}

.btn-seat-small{
    padding: 2px 15px;
    font-size: 0.875rem;
    border-radius: 5px;
}

.seatselected{
    background-color:var(--secondary) !important;
    color: white;
}

.flip-horizontal {
    transform: scaleX(-1); /* Flip horizontally */
}

.flip-vertical {
    transform: scaleY(-1); /* Flip vertically */
}

.upperseat{
    border-top: 4px solid orange;

}

.lowerseat{
    border-bottom: 4px solid green;
}

.leginfo{
    display: none;
}

.carinflex{
    border: 1px solid #103E5DFF;
    border-radius: 0 10px 10px 0;
    background-color: #3498db;
    min-width: 110px;
    text-align: center;
}

.notavl {
    pointer-events: none; /* Отключает клики */
    color: gray !important; /* Делаем текст серым */
    background-color: #e0e0e0 !important; /* Светло-серый фон */
    border-color: #b0b0b0 !important; /* Серый бордер */
    cursor: not-allowed; /* Показывает запрет */
}

/* Non-clickable train engine */
.trhead {
    background-color: #088F8F;
    color: white;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
}


.trcar{
    border: 1px solid #103E5DFF;
    border-radius: 0 10px 10px 0;
    background-color: #3498db;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    color:white;
    flex-direction: column;

}

.hidden{
    display: none;
}

#scheduledatespick {
    width: 100%; /* Make the input field responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    font-size: 12px;
}

/* Adjust the datepicker size */
.ui-datepicker {
    font-size: 1rem; /* Adjust font size for better readability on smaller screens */
}

ul.routeul{
    list-style: none;
    padding-left: 0px;
}

.routeul li{
    border-bottom: 1px solid black;
    padding-top: 5px;
    padding-bottom: 5px;
}


/*Responsive table*/
table.resp {
    border: 1px solid #ddd;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;

}

table.resp tbody,
table.resp tfoot,
table.resp tr,
table.resp td,
table.resp th {
    border-width: 0;
}

table.resp thead{
    border: 1px solid #ddd;
}

table.resp tr {
    border: 1px solid #ddd;
    padding: .35em;

}

table.resp th,
table.resp td {
    padding: .625em;
    text-align: left;
    border-width: 0;
}

table.resp th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
    background-color: #f8f8f8;
    border-width: 0;
}


@media screen and (max-width: 900px) {
    table.resp {
        border: 1px solid #ddd;
    }

    table.resp thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table.resp tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table.resp td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    table.resp td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table.resp td:last-child {
        border-bottom: 0;
    }
}
/*Responsive table end*/

/*Search transport*/

section#searchtr {
    padding-top: 5px;
}

.bc-searctransport h3{
    font-size: 1.3rem;
    color: var(--secondary);
}

.bc-searctransport .active{
    background: var(--secondarybg);
}

.bc-searctransport .bc-item{
    padding: 15px;
}

.transportsearchdata h4{
    font-size: 1.2rem;
    color: var(--secondary);
}

/*Места в поезде, список вагонов с местами*/

.train-seats-table-container {
    overflow-x: auto;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.train-seats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    border-radius: 12px;
    overflow: hidden;
}

.train-seats-table th,
.train-seats-table td {
    border: 1px solid #e0e0e0;
    padding: 14px;
    text-align: left;
    font-size: 16px;
}

.train-seats-table th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

.train-seats-table tr:nth-child(even) {
    background: #f4f8ff;
}

.train-seats-table tr:hover {
    background: #eef5ff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .train-seats-table {
        min-width: unset;
        width: 100%;
    }

    .train-seats-table thead {
        display: none;
    }

    .train-seats-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
        background: white;
        padding: 12px;
    }

    .train-seats-table tr.trhide {
        display: none;
     }

    .train-seats-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

    .train-seats-table td:last-child {
        border-bottom: none;
    }

    .train-seats-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary);
        flex: 1;
    }
}

.clicktrain td {
    cursor: pointer; /* Изменяет курсор на указатель */
}

.clicktrain:hover td {
    background-color: #f0f0f0; /* Лёгкая подсветка при наведении */
    font-weight: bold;
}

.trhide{
    display: none;
}

.f-orange{
    color: var(--primary-light);
}

.flatbox {
    padding: 1.5rem;
    min-height: 70px;
    font-size: 1.1rem;
    text-align: left;
    margin: 5px 0;
    border: 2px solid #e0e0e0; /* Softer border */
    border-radius: 8px; /* Slight rounding for smooth edges */
    background: #ffffff; /* Clean white background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: all 0.3s ease-in-out;
}

.flatbox:hover {
    border-color: #d6d6d6; /* Slightly darker on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.oneticket{
    font-size: 1rem;
}

.tripinfo h3{
    font-size: 1rem;
    font-weight: bold;
}

.progress-container {
    display: none; /* initially hidden */
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}