﻿.main-container {
    display: flex;
    width: 100%;    
    max-width: 1200px;
    padding: 30px 0px 50px 0px;
    align-items: center;
    border-radius: 5px;
}

.left-col-container {
    display: flex;
    width: 780px;
    max-width: 780px;
    padding: 30px 0px;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 30px;
}

.main-container .content-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0 0 20px 0;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    border-radius: 5px;
    background: #FFF;
    max-width: none;
}

.main-container .routes-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 730px !important;
    height: auto;
    padding-top: 30px;
}

.main-container .summary-column {
    display: flex;
    width: 410px !important;
    height: auto;
    align-self: stretch;
    padding: 30px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
}

.summary-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    border-radius: 4px;    
    gap: 10px;
    position: sticky;
    top: calc(var(--large-header) + 20px);
}

.kratish-card {
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 4px;
    outline: 1px solid #999999;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

/* Title */
.kratish-title-row {
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.kratish-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #000426;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

/* Intro */
.kratish-intro-row {
    align-self: stretch;
    padding-bottom: 12px;
    overflow: hidden;
    display: flex;
    gap: 10px;
}

.kratish-intro-text {
    align-self: stretch;
    color: #010425;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

/* Section */
.kratish-section {
    align-self: stretch;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.kratish-divider-row {
    align-self: stretch;
    border-top: 1px solid #FFDE00;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.kratish-divider-spacer {
    flex: 1 1 0;
    height: 27px;
}

/* Label + help */
.kratish-label-row {
    display: flex;
    width: 100%;
    height: 34px;
    padding: 0px 0px 12px 0px;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.kratish-label {
    display: flex;
    justify-content: center;
    color: #010425;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.15px;
}

.kratish-help {
    display: flex;
    justify-content: center;
}

.kratish-help-paren {
    color: #2E5994;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

.kratish-help-link {
    color: #2E5994;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    line-height: 22px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
}

/* Input */
.kratish-input-row,
.smsnumber-input-row{
    display: flex;
    width: 100%;
    height: 81px;
    padding: 0 0 16px 0;
}

.kratish-input-row > div {
    width: 100%;
}

.input-code-row {
    display: flex;
    width: 100%;
    padding: 12px 0;
}

.input-code-text {
    overflow: hidden;
    color: #010425;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.15px;
}

.smsnumber-input {
    width: 250px;
    height: 55px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 12px;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}


.kratish-input {
width: 100%;
max-width: 390px;
box-sizing: border-box;
height: 55px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 12px;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    color: #333333;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

    .kratish-input:focus,
    .smsnumber-input:focus{
        border-color: #FFDE00;
        box-shadow: 0 0 0 2px rgba(255, 222, 0, 0.3);
    }

/* Captcha container */
.captcha-row {
    display: flex;
    width: 100%;
    height: 94px;
    flex-direction: row;
    padding: 0 0 16px 0;
}

/* Next button */
.button-next-row,
.button-send-row{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}


.button-next,
.button-sendsms {
    width: 100%;
    min-width: 250px;
    max-width: 250px;
    height: 55px;
    padding: 0 20px;
    background: #FFDE00;
    border-radius: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}


    .button-next:default,
    .button-sendsms:default{
        outline: none;
        border: none;
    }

    .button-next:focus-visible,
    .button-sendsms:focus-visible{
        outline: none;
    }

    .button-next:hover,
    .button-sendsms:hover{
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25);
        background: #e6c900;
    }


    .button-next:active {
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25);
        background: #e6c900;
    }

    .button-next:disabled,
    .button-sendsms:disabled {
        background: #FFDE00;
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

.kratish-next-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #010524;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.15px;
    word-wrap: break-word;
}

form {
    width: 100% !important;
    max-width: 100% !important;
}

#saveselectedItin {
    display: flex;
    flex-direction: column;
}

/* ── Select-action: booking info row ── */
.kratish-booking-info-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 0.15px;
    overflow: hidden;
    width: 100%;
    flex-wrap: wrap;
}

.kratish-booking-info-label {
    color: #010425;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.kratish-booking-info-value {
    color: #2E5994;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Select-action: checkbox list ── */
.kratish-checkbox-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.kratish-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    width: 100%;
}

.kratish-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}

.kratish-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    flex-shrink: 0;
}

.kratish-checkbox-input {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: auto !important;
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    border: 1px solid #666666 !important;
    background: white !important;
    padding: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    pointer-events: auto !important;
    z-index: 1;
}

.kratish-checkbox-input:focus-visible {
    outline: 2px solid #FFDE00;
    outline-offset: 1px;
}

.kratish-checkbox-text {
    color: #4D4D4D;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

/* ── ChangeTicketToOpen: per-trip sections ── */
.cto-trip-section {
    width: 100%;
}

.cto-trip-section--separated {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #FFDE00;
}

.cto-trip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.cto-trip-direction {
    color: #010425;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cto-trip-route {
    color: #2E5994;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.15px;
    white-space: nowrap;
    vertical-align: middle;
}

.cto-trip-date {
    color: #2E5994;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.15px;
}

/* ── Ticket icon inside checkbox item ── */
.cto-ticket-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cto-ticket-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Ticket name + type inside kratish-checkbox-text ── */
.cto-ticket-name {
    color: var(--UI-gray-70, #4D4D4D);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.cto-ticket-type {
    color: var(--UI-gray-70, #4D4D4D);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin-left: 4px;
}

/* ── ChangeBookingTicketDetails: entity blocks ── */
.ctd-entity-block {
    width: 100%;
    padding-bottom: 16px;
}

.ctd-entity-block--separated {
    border-top: 1px solid #cccccc;
    padding-top: 16px;
}

/* Header row: icon + "Επιβάτης N" label + name/type info */
.ctd-entity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    width: 100%;
}

.ctd-entity-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ctd-entity-icon {
    width: 20px;
    height: 20px;
}

/* Groups label + info so info wraps below label (not below the icon) */
.ctd-entity-name-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
    min-width: 0;
    flex: 1 1 0;
}

.ctd-entity-label {
    color: #010425;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ctd-entity-info {
    color: #2E5994;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    min-width: 0;
    word-break: break-word;
}

/* Fields row: dropdowns/inputs side by side with 40px gap */
.ctd-fields-row {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 81px;
    padding: 12px 0;
    overflow: visible;
}

/* Widen OuterBox to 250px inside a ctd-field */
.ctd-field .OuterBox {
    max-width: 250px;
    width: 250px;
}

/* Plate number text input – sits inside OuterBox/dt-option-box */
.ctd-plate-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    letter-spacing: 0.15px;
    width: 100%;
    padding: 0;
}

.ctd-plate-input::placeholder {
    color: #999999;
    font-weight: 400;
}

.ctd-plate-input:focus {
    outline: none;
}

/* Vehicle input box: suppress the dropdown arrow */
.ctd-text-input-box .Passenger-Arrow {
    display: none;
}

.cb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.cb-modal-overlay.is-open {
    display: flex;
}

.cb-modal {
    background: #ffffff;
    border: 1px solid #bbbcbe;
    border-radius: 5px;
    padding: 10px 10px 20px 10px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 0 10px;
}

.cb-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.15px;
    line-height: 24px;
    margin: 0;
}

.cb-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
}

.cb-modal-close:hover circle {
    stroke: #010524;
}

.cb-modal-close:focus-visible {
    outline: 2px solid #FFDE00;
    outline-offset: 2px;
    border-radius: 50%;
}

.cb-modal-body {
    font-size: 20px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    margin: 0;
    padding: 0 10px;
}

.cb-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cb-modal-btn-cancel {
    width: 150px;
    height: 55px;
    border: 1px solid #293a4b;
    border-radius: 5px;
    background: none;
    color: #010524;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cb-modal-btn-cancel:hover {
    background: rgba(41, 58, 75, 0.05);
}

.cb-modal-btn-confirm {
    width: 150px;
    height: 55px;
    background: #ffde00;
    border: 1px solid #d9bb16;
    border-radius: 5px;
    color: #010524;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cb-modal-btn-confirm:hover {
    background: #e6c900;
}

/* ── ChangeBookingSendMail: email input box (from Step3.css) ── */

.reservation-icon {
    position: relative;
    width: 20px;
    height: 20px;
    top: -10px;
    left: 37px;
    background: #FFF;
}

.reservation-icon img {
    background-color: #fff;
    width: 18px;
    height: 18px;
}

/* Floating icon anchored at top-left of its parent box */
.CellInputIcon {
    width: 20px;
    height: 20px;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    position: absolute;
    left: 17px;
    top: -10px;
    background-color: #fff;
}

/* Email input container */
.csm-email-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 260px;
    height: 55px;
    width: 100%;
    max-width: 390px;
    align-items: flex-start;
    border-radius: 4px;
    border: 1px solid #B3B3B3;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

/* Stretches the input to fill the box */
.Contact-info-email-text {
    height: 100%;
    width: 100%;
    display: flex;
}

/* The actual text input */
.input-contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border: 0;
    outline: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0.15px;
    padding: 15px 5px 10px 5px;
    background: transparent;
}

/* Mail icon */
.input-box-mail-icon {
    background-image: url('../../images/Shared/mail-icon.svg');
    background-repeat: no-repeat;
    background-position: 4px -6px;
    width: 40px;
    height: 24px;
    display: flex;
}

/* ── ChangeBookingSendMail – email field (OuterBox pattern) ── */

/* "Email" label above the box */
.csm-email-label {
    color: #010425;
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 12px;
}

/* Widen the OuterBox to match the Figma 390px spec */
.OuterBox.csm-email-box {
    max-width: 390px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 38px;
}

/* Floating icon size override for the 32px mail icon */
.csm-mail-icon {
    width: 32px;
    height: 32px;
    padding: 2px;
}

/* Actual email input field */
.csm-email-input {
    flex: 1;
    width: 100%;
    height:55px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.CellInputIcon {
    align-items: center;
    display: inline-flex;
    left: 12px;
    top: -10px;
    width: 30px;
    background-color: #fff;
    padding: 0 5px;
}

.ship-icon {
    background-image: url('../../../images/Agents/people_filled_icon.svg');
    background-size: cover;
    width: 20px;
    height: 20px;
    display: flex;
}

.lock-icon {
    background-image: url('../../../images/Agents/lock_person.svg');
    background-size: cover;
    width: 20px;
    height: 20px;
    display: flex;
}

.button-sendsms-row {
    display: flex;
    width: 100%;
    height: 55px;
    align-items: flex-start;
}
.sendsmsrow {
    display: flex;
    width: 100%;
    height: 55px;
    align-items: flex-start;
}

.button-sendsms--sent {
    width: 250px;
    height: 55px;
    max-width: 250px;
    background: #FFDE00;
    cursor: default;
    pointer-events: none;
}

    .button-sendsms--sent:hover {
        box-shadow: none;
        background: #FFDE00;
    }

    .button-sendsms--sent .sendsms-check-icon {
        display: inline-block;
        width: 24px;
        height: 24px;
        background-image: url('../../../images/Agents/tickIcon.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 8px;
    display: block;
}

/* Button loading animation – sequential vertical bars */
@keyframes bookingBarPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
    50%       { opacity: 1;    transform: scaleY(1); }
}

button.btn-loading {
    position: relative;
    pointer-events: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-loading-bars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-loading-bars > span {
    display: inline-block;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.25;
    transform-origin: center;
    animation: bookingBarPulse 0.9s ease-in-out infinite;
}

.btn-loading-bars > span:nth-child(1) { animation-delay: 0s; }
.btn-loading-bars > span:nth-child(2) { animation-delay: 0.2s; }
.btn-loading-bars > span:nth-child(3) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   MEDIA QUERIES
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 992px) and (max-width: 1199px) {
    .main-container .routes-column,
    .main-container .summary-column {
        width: 80% !important;
        align-self: center;
        padding-top: 0px;
    }

    .main-container .content-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .main-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-container .routes-column,
    .main-container .summary-column {
        width: 100% !important;
        padding-top: 0px;   
    }

    .main-container .content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 0px;
    }

    .left-col-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .button-next-row {
        width: 100% !important;
        max-width: 100% !important;
    }

    .kratish-input-row,
    .smsnumber-input-row {
        width: 100% !important;
        max-width: 100% !important;
    }

    .kratish-booking-info-value {
        white-space: normal;
    }

    .Contact-info-email-box {
        min-width: 100%;
        max-width: 100%;
    }

    .OuterBox.csm-email-box {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .ctd-fields-row {
        flex-wrap: wrap;
        height: auto;
        gap: 20px;
    }

    .ctd-field .OuterBox {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    #site-content .container {
        padding: 0px !important;
    }

    .container .main-container {
        padding: 0px !important;
    }

    .main-container > .left-col-container {
        padding: 0px 0px 16px;
    }

    .kratish-card {
        border: none;
        border-radius: 0px;
        outline: none;
        padding: 12px 8px;
    }

    .kratish-input,
    .smsnumber-input {
        width: 100%;
        max-width: 100%;
        padding: 15px 17px 10px;
    }

    .smsnumber-input-row {
        justify-content: center;
    }

    .smsnumber-input-row > div {
        width: 100%;
    }

    .kratish-card,
    .button-next-row,
    .kratish-section,
    .kratish-input-row,
    .captcha-row,
    .sendsmsrow,
    .smsnumber-input {
        align-items: center;
        justify-content: center;
    }

    .kratish-intro-text {
        align-self: center;
        text-align: center;
    }

    .button-next,
    .button-sendsms,
    .button-sendsms--sent {
        width: 178px;
        min-width: 178px;
        max-width: 178px;
    }

    form {
        align-items: center;
    }

    .ctd-fields {
        width: 100%;
    }

    .ctd-entity-icon-wrap {
        display: none;
    }

    .ctd-entity-name-group {
        flex-direction: row;
        border-bottom: 1px solid var(--UI-gray-20, #CCC);
    }

    .ctd-entity-label,
    .ctd-entity-info,
    .csm-email-input,
    .cto-trip-direction,
    .cto-trip-route {
        font-size: 16px;
    }

    .lastone{
        padding-bottom: 26px;
    }

    #saveselectedItin .button-next-row {
        order: 1;
    }

    .summary-box {
        padding: 0;
    }
}
