/* Maklumat Tempahan - All Unique Classes with asme-mt- prefix */

/* Container */
.asme-mt-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-mt-page-title {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    text-align: center;
    margin-bottom: 0px;
    width: 100%;
}

/* Two Column Wrapper */
.asme-mt-main-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
    align-items: flex-start;
}

.header-placeholder {
    height: 110px;
    /* Same height as header */
    width: 100%;
}

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #333;
    color: white;
}

/* LEFT COLUMN */
.asme-mt-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Package Card */
.asme-mt-package-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
    padding: 20px;
}

/* Package Header - Label, Title, and Duration in one row */
.asme-mt-package-header {
    margin-bottom: 20px;
    position: relative;
}

.asme-mt-package-header-left {
    flex: 1;
}

.asme-mt-package-label {
    display: block;
    font-size: 10px !important;
    color: #333;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.asme-mt-package-title {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333;
    margin: 0;
}

/* Package Duration Badge - Now in header */
.asme-mt-package-header .asme-mt-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;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1em;
}

/* Flight Info Grid */
.asme-mt-flight-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.asme-mt-info-item.border {
    border-right: 1px solid #e0e0e0;
    width: 95%;
}

.asme-mt-info-item.padding-bottom {
    padding-bottom: 15px;
}

.asme-mt-flight-info-grid:last-child {
    margin-bottom: 0;
}

.asme-mt-info-item {
    display: flex;
    flex-direction: column;
}

.asme-mt-info-label {
    display: block;
    font-size: 10px !important;
    color: #333;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.asme-mt-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 800;
    line-height: 1.7em;
}

/* Airline Logo */
.asme-mt-airline-logo {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Booking Form */
.asme-mt-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Passenger Cards */
.asme-mt-passenger-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.asme-mt-passenger-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0;
}

.asme-mt-passenger-card.asme-mt-additional {
    position: relative;
}

/* Remove Passenger Button - Highest Specificity to Override Elementor */
[type="button"].asme-mt-remove-passenger,
button[type="button"].asme-mt-remove-passenger,
button.asme-mt-remove-passenger {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: #dc3545 !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    border-style: solid !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: background 0.2s !important;
    padding: 0 0 3px 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    white-space: nowrap !important;
}

[type="button"].asme-mt-remove-passenger:hover,
button[type="button"].asme-mt-remove-passenger:hover,
button.asme-mt-remove-passenger:hover {
    background: #c82333 !important;
    background-color: #c82333 !important;
    transform: none !important;
}

/* Form Grid */
.asme-mt-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.asme-mt-form-grid:last-child {
    margin-bottom: 0;
}

/* Form Grid Two Columns (for primary contact fields) */
.asme-mt-form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 0;
}

/* Primary Contact Section */
.asme-mt-primary-contact-section {
    margin-bottom: 20px;
}

/* Separator Line */
.asme-mt-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* Form Group */
.asme-mt-form-group {
    display: flex;
    flex-direction: column;
}

/* Form Group Small (for GELARAN field) */
.asme-mt-form-group-small {
    display: flex;
    flex-direction: column;
    max-width: 150px;
}

.asme-mt-form-label {
    display: block;
    font-size: 11px;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Form Input - Higher Specificity to Override Elementor */
input.asme-mt-form-input,
input.asme-mt-form-input[type="text"],
input.asme-mt-form-input[type="email"],
input.asme-mt-form-input[type="tel"],
input.asme-mt-form-input[type="date"] {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #333 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    overflow: visible !important;
    font-weight: 400 !important;
}

input.asme-mt-form-input:focus,
input.asme-mt-form-input[type="text"]:focus,
input.asme-mt-form-input[type="email"]:focus,
input.asme-mt-form-input[type="tel"]:focus,
input.asme-mt-form-input[type="date"]:focus {
    outline: none !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* Form Select - Higher Specificity to Override Elementor */
select.asme-mt-form-select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #333 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    margin: 0 !important;
    overflow: visible !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

select.asme-mt-form-select:focus {
    outline: none !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* Hidden Input */
.asme-mt-hidden-input {
    display: none !important;
}

/* Add Passenger Section */
.asme-mt-add-passenger-section {
    text-align: center;
    margin: 20px 0;
}

/* Add Passenger Button - Highest Specificity to Override Elementor */
[type="button"].asme-mt-add-passenger-btn,
button[type="button"].asme-mt-add-passenger-btn,
button.asme-mt-add-passenger-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0ea5e9 !important;
    border: 2px dashed #0ea5e9 !important;
    border-style: dashed !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    margin: 0 !important;
    overflow: visible !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    white-space: nowrap !important;
}

[type="button"].asme-mt-add-passenger-btn:hover,
button[type="button"].asme-mt-add-passenger-btn:hover,
button.asme-mt-add-passenger-btn:hover {
    background: #f0f9ff !important;
    background-color: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    transform: none !important;
}

[type="button"].asme-mt-add-passenger-btn:active,
button[type="button"].asme-mt-add-passenger-btn:active,
button.asme-mt-add-passenger-btn:active {
    transform: scale(0.98) !important;
}

/* Button Icon & Text */
.asme-mt-btn-icon {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

.asme-mt-btn-text {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
}

/* RIGHT COLUMN: Price Summary */
.asme-mt-right-column {
    position: sticky;
    top: 140px;
}

.asme-mt-price-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
}

.asme-mt-package-duration {
    background: #f5f5f5;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    display: inline-block;
}

/* Price Summary */
.asme-mt-price-summary {
    width: 100%;
}

.asme-mt-price-item {
    margin-bottom: 8px;
    /* padding: 8px 0; */
    text-align: right;
}

.asme-mt-passenger-count {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

/* Total Price */
.asme-mt-total-price {
    /* margin: 20px 0; */
    padding: 0 0 15px 0;
    /* border-top: 1px solid #e0e0e0; */
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}

.asme-mt-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-mt-total-amount {
    font-size: 24px;
    font-weight: 800;
}

/* Deposit Info */
.asme-mt-deposit-info {
    margin: 20px 0;
    text-align: right;
}

.asme-mt-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-mt-deposit-amount {
    font-size: 24px;
    font-weight: 800;
}

/* Divider between deposit and payment sections */
.asme-mt-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 12px 0;
}

/* AMAUN BAYARAN section */
.asme-mt-payment-info {
    margin: 10px 0 20px 0;
    text-align: right;
}

.asme-mt-payment-label {
    display: block;
    color: #38bdf8;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2em;
}

/* Deposit Input Wrapper */
.asme-mt-deposit-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 10px 16px;
    gap: 8px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.asme-mt-deposit-input-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.asme-mt-deposit-currency {
    color: #0ea5e9;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.asme-mt-deposit-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-align: right !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.asme-mt-deposit-input::-webkit-outer-spin-button,
.asme-mt-deposit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.asme-mt-deposit-input::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* Min/Max Hint */
.asme-mt-deposit-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 4px;
}

.asme-mt-deposit-hint-min,
.asme-mt-deposit-hint-max {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
}

.asme-mt-deposit-hint-min {
    color: #f97316;
}

.asme-mt-deposit-hint-max {
    color: #22c55e;
}

/* Full Payment Toggle */
.asme-mt-full-payment-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    cursor: pointer;
    user-select: none;
}

.asme-mt-full-payment-toggle input[type="checkbox"] {
    display: none;
}

.asme-mt-toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: #ffffff;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 1px solid #0ea5e9;
}

.asme-mt-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #0ea5e9;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.asme-mt-full-payment-toggle input:checked + .asme-mt-toggle-slider {
    background: linear-gradient(135deg, #10b981, #22c55e);
    border-color: #10b981;
}

.asme-mt-full-payment-toggle input:checked + .asme-mt-toggle-slider::after {
    transform: translateX(18px);
    background: #ffffff;
}

.asme-mt-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.asme-mt-full-payment-toggle:has(input:checked) .asme-mt-toggle-label {
    color: #22c55e;
}

/* Submit Button - Highest Specificity to Override Elementor */
[type="submit"].asme-mt-submit-btn,
button[type="submit"].asme-mt-submit-btn,
button.asme-mt-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: 15px !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: capitalize !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-mt-submit-btn:hover,
button[type="submit"].asme-mt-submit-btn:hover,
button.asme-mt-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;
    border: none !important;
}

[type="submit"].asme-mt-submit-btn:active,
button[type="submit"].asme-mt-submit-btn:active,
button.asme-mt-submit-btn:active {
    transform: translateY(0) !important;
    border: none !important;
}

/* Promo Code Section */
.asme-mt-promo-section {
    margin-top: 20px;
    width: 100%;
}

.asme-mt-promo-input-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
}

.asme-mt-promo-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s;
    background: #ffffff;
    height: 48px;
    box-sizing: border-box;
}

.asme-mt-promo-input:focus {
    outline: none;
    border-color: #008EEC;
    box-shadow: 0 0 0 3px rgba(0, 142, 236, 0.1);
}

.asme-mt-promo-input::placeholder {
    color: #9ca3af;
}

.asme-mt-apply-promo-btn {
    background: #f59e0b !important;
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 5px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    white-space: nowrap !important;
    height: 40px;
    box-sizing: border-box;
}

.asme-mt-apply-promo-btn:hover {
    background: #d97706 !important;
    background-color: #d97706 !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px) !important;
}

.asme-mt-apply-promo-btn:active {
    transform: translateY(0) !important;
}

.asme-mt-promo-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.asme-mt-promo-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.asme-mt-promo-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Styling for the error message text */
label.error {
    color: red !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

.asme-mt-page-title-wrapper {
    display: flex;
    gap: 10px;
    padding: 40px 0px;
    align-items: center;
    position: relative;
    width: 100%;
}

.asme-mt-back-button {
    background: unset;
    display: flex;
    cursor: pointer;
    position: absolute;
}

.asme-mt-back-button>svg {
    width: 24px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .asme-mt-main-wrapper {
        grid-template-columns: 60% 35%;
        gap: 5%;
    }
}

@media (max-width: 992px) {
    .asme-mt-main-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asme-mt-left-column {
        position: static;
        order: 1;
    }

    .asme-mt-right-column {
        position: static;
        order: 2;
    }

    .asme-mt-price-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .asme-mt-passenger-card-title {
        width: 95%;
        font-size: 18px !important;
    }

    .asme-mt-page-title {
        font-size: 20px !important;
    }

    .asme-mt-flight-info-grid,
    .asme-mt-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .asme-mt-package-card,
    .asme-mt-passenger-card,
    .asme-mt-price-card {
        padding: 20px;
    }

    .asme-mt-page-title-wrapper {
        padding: 30px 0px;
    }

    .asme-mt-package-title {
        font-size: 18px !important;
    }

    .asme-mt-info-item.border {
        border-right: unset;
        border-bottom: 1px dashed #e0e0e0;
    }

    .asme-mt-info-value {
        font-size: 14px;
    }
}