/* Semak Tempahan - Prefixed with asme-st- */

.asme-st-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Page Title */
.asme-st-page-title {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    text-align: center;
    margin-bottom: 0px;
    width: 100%;
}

.asme-st-page-title-wrapper {
    display: flex;
    gap: 10px;
    padding: 40px 0px;
    align-items: center;
    position: relative;
    width: 100%;
}

.asme-st-back-button {
    background: unset;
    display: flex;
    cursor: pointer;
    position: absolute;
    border: none;
}

.asme-st-back-button>svg {
    width: 24px;
    height: auto;
}

/* Two Column Wrapper */
.asme-st-main-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT COLUMN */
.asme-st-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Package Card */
.asme-st-package-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* Package Header - Label, Title, and Duration in one row */
.asme-st-package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.asme-st-package-header-left {
    flex: 1;
}

.asme-st-package-label {
    display: block;
    font-size: 10px;
    color: #333;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.asme-st-package-title {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333;
    margin: 0;
}

/* Package Duration Badge - Now in header */
.asme-st-package-header .asme-st-package-duration {
    background: #E5E7EB;
    color: #333;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1em;
}

/* Flight Info Grid */
.asme-st-flight-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.asme-st-info-item.border {
    border-right: 1px solid #e0e0e0;
    width: 95%;
}

.asme-st-info-item.padding-bottom {
    padding-bottom: 15px;
}

.asme-st-flight-info-grid:last-child {
    margin-bottom: 0;
}

.asme-st-info-item {
    display: flex;
    flex-direction: column;
}

.asme-st-info-label {
    display: block;
    font-size: 10px;
    color: #333;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.asme-st-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Airline Logo */
.asme-st-airline-logo {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.asme-st-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* .asme-st-package-duration {
    background: #007cba;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.asme-st-price-summary {
    text-align: right;
} */

/* .asme-st-price-item {
    margin-bottom: 5px;
    color: #666;
}

.asme-st-total-price {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
} */

/* .asme-st-deposit-info {
    margin-top: 15px;
} */

/* .asme-st-deposit-label {
    display: block;
    color: #007cba;
    font-size: 12px;
    margin-bottom: 5px;
} */

/* .asme-st-deposit-amount {
    font-size: 18px;
    font-weight: bold;
    color: #333;
} */

.asme-st-flight-details-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.asme-st-flight-details-card h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 900;
}

.asme-st-info-item label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2em;
}

.asme-st-info-item div {
    font-size: 16px;
    color: #333;
    font-weight: 800;
    line-height: 1.7em;
}

.asme-st-passengers-section {}

.asme-st-passengers-section h3 {
    color: #333;
    font-size: 20px !important;
    margin-bottom: 10px;
    font-weight: 700 !important;
}

.asme-st-package-card {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.asme-st-passenger-display-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 20px;
    margin-bottom: 15px;
}

.asme-st-passenger-card-title {
    font-size: 16px;
    font-weight: 900;
    color: #333;
    margin: 0 0 15px 0;
}

.asme-st-primary-contact-section {
    margin-bottom: 15px;
}

.asme-st-passenger-info-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.asme-st-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.asme-st-passenger-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.asme-st-passenger-info-grid:last-child {
    margin-bottom: 0;
}

.asme-st-info-item-small {
    max-width: 150px;
}

.asme-st-terms-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.asme-st-terms-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 700;
}

.asme-st-terms-section h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: bold;
}

/* Scrollable terms content */
.asme-st-terms-scrollable {
    max-height: 450px; /* Fixed height for scrollable area */
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    background: #fafafa;
}

.asme-st-terms-scrollable::-webkit-scrollbar {
    width: 8px;
}

.asme-st-terms-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.asme-st-terms-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.asme-st-terms-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.asme-st-terms-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

/* Fixed footer section */
.asme-st-terms-footer {
    flex-shrink: 0; /* Don't shrink the footer */
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    background: white;
}

.asme-st-terms-footer h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: bold;
}

.asme-st-terms-footer a {
    display: inline-block;
    margin-bottom: 15px;
    color: #007cba;
    text-decoration: underline;
    font-size: 16px;
}

.asme-st-terms-checkbox {
    margin-top: 0;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.asme-st-terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.asme-st-terms-checkbox label {
    font-size: 14px;
    color: #007cba;
    cursor: pointer;
    line-height: 1.4;
}

.asme-st-form-actions {
    text-align: center;
    margin-top: 40px;
}

/* .asme-st-submit-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    transition: background 0.2s;
}

.asme-st-submit-btn:hover:not(:disabled) {
    background: #005a8b;
}

.asme-st-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
} */

/* RIGHT COLUMN: Price Summary */
.asme-st-right-column {
    position: sticky;
    top: 140px;
}

.asme-st-price-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
    padding: 25px;
    width: 100%;
}

.asme-st-package-duration {
    background: #f5f5f5;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
}

/* Price Summary */
.asme-st-price-summary {
    width: 100%;
}

.asme-st-price-item {
    margin-bottom: 8px;
    /* padding: 8px 0; */
    text-align: right;
}

.asme-st-passenger-count {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 900;
}

/* Total Price */
.asme-st-total-price {
    /* margin: 20px 0; */
    padding: 15px 0;
    /* border-top: 1px solid #e0e0e0; */
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}

.asme-st-total-label {
    display: block;
    font-size: 13px;
    color: #0ea5e9;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2em;
}

.asme-st-total-amount {
    font-size: 24px;
    font-weight: 800;
}

/* Deposit Info */
.asme-st-deposit-info {
    margin: 20px 0;
    text-align: right;
}

.asme-st-deposit-label {
    display: block;
    color: #0ea5e9;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2em;
}

.asme-st-deposit-amount {
    font-size: 24px;
    font-weight: 800;
}

/* Submit Button - Highest Specificity to Override Elementor */
[type="submit"].asme-st-submit-btn,
button[type="submit"].asme-st-submit-btn,
button.asme-st-submit-btn {
    background: #008EEC !important;
    background-color: #008EEC !important;
    color: #ffffff !important;
    border: none !important;
    border-style: none !important;
    padding: 15px 24px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    width: 100% !important;
    transition: all 0.2s !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    white-space: nowrap !important;
}

[type="submit"].asme-st-submit-btn:hover,
button[type="submit"].asme-st-submit-btn:hover,
button.asme-st-submit-btn:hover {
    background: #0284c7 !important;
    background-color: #0284c7 !important;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3) !important;
    transform: translateY(-1px) !important;
}

[type="submit"].asme-st-submit-btn:active,
button[type="submit"].asme-st-submit-btn:active,
button.asme-st-submit-btn:active {
    transform: translateY(0) !important;
}

/* Styling for the error message text */
label.error {
    color: red !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

.asme-st-passenger-info-grid .asme-st-info-item div {
    font-weight: 700;
}

@media (max-width: 768px) {
    .asme-st-booking-header {
        flex-direction: column;
        gap: 20px;
    }

    .asme-st-flight-info-grid,
    .asme-st-passenger-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .asme-st-terms-checkbox {
        flex-direction: column;
        gap: 10px;
    }

    .asme-st-page-title {
        font-size: 20px !important;
    }

    .asme-st-package-card,
    .asme-st-passenger-card,
    .asme-st-price-card {
        padding: 20px;
    }

    .asme-st-page-title-wrapper {
        padding: 30px 0px;
    }

    .asme-st-package-title {
        font-size: 18px !important;
    }

    .asme-st-info-item.border {
        border-right: unset;
        border-bottom: 1px dashed #e0e0e0;
    }

    .asme-st-passengers-section h3 {
        font-size: 18px !important;
    }

    .asme-st-info-item div {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .asme-st-main-wrapper {
        grid-template-columns: 60% 35%;
        gap: 5%;
    }
}

@media (max-width: 992px) {
    .asme-st-main-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asme-st-left-column {
        position: static;
        order: 1;
    }

    .asme-st-right-column {
        position: static;
        order: 2;
    }

    .asme-st-price-card {
        width: 100%;
    }
}