/**
 * Amadex Booking Page Styles
 */

.amadex-booking-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f7fa;
}

/* .amadex-booking-container {
    background: #fff;
} */

.amadex-booking-header {
    padding-bottom: 10px;
    /* padding: 15px 20px; */
    /* border-bottom: 1px solid #e0e0e0; */
}

.amadex-go-back-btn {
    background: none;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.amadex-go-back-btn:hover {
    background: #007bff;
    color: #fff;
}

.amadex-booking-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    /* padding: 30px; */
}

/* Main Forms Column */
.amadex-booking-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.amadex-booking-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 10px;
}

.amadex-booking-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Flight Itinerary Styles */
.amadex-itinerary-section {
    margin-bottom: 30px;
}

.amadex-itinerary-label {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* NMI Collect.js Payment Fields */
.amadex-collect-field {
    min-height: 45px;
    width: 100%;
    transition: all 0.2s ease;
}

.amadex-collect-field iframe {
    width: 100% !important;
    min-height: 45px !important;
    border: none !important;
}

.amadex-collect-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.amadex-collect-inline .amadex-collect-field {
    flex: 1;
}

/* Payment Error Styling */
.amadex-payment-error {
    background: #fff0f0;
    border: 2px solid #d63638;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #d63638;
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.amadex-payment-error strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Loading State */
#amadex-confirm-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #999;
}

/* Secure Banner Enhancement */
.amadex-secure-banner {
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 163, 42, 0.3);
}

.amadex-secure-banner .secure-icon {
    font-size: 18px;
}

.amadex-itinerary-label::before {
    content: '✈';
    font-size: 24px;
    animation: fly 2s ease-in-out infinite;
}

.amadex-itinerary-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.amadex-itinerary-label:hover::after {
    left: 100%;
}

@keyframes fly {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(5px) rotate(-5deg);
    }
}

.amadex-segment-detail {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.amadex-segment-airline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.amadex-segment-airline img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.amadex-airline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-airline-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 15px;
}

.amadex-airline-code {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.amadex-segment-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amadex-segment-row {
    font-size: 14px;
    color: #666;
}

.amadex-segment-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.amadex-segment-dep,
.amadex-segment-arr {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.amadex-segment-time {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.amadex-segment-airport {
    font-size: 14px;
    color: #666;
}

.amadex-segment-date {
    font-size: 13px;
    color: #999;
}

.amadex-segment-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.amadex-duration-icon {
    font-size: 20px;
}

.amadex-duration-text {
    font-size: 12px;
    color: #666;
}

.amadex-stopover-banner {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    color: #1565c0;
}

/* Form Styles */
.amadex-important-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
}

.amadex-secure-banner {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.secure-icon {
    font-size: 18px;
    margin-right: 8px;
}

.amadex-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.amadex-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amadex-form-field.full-width {
    grid-column: 1 / -1;
}

.amadex-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.amadex-form-field input,
.amadex-form-field select {
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.amadex-form-field input:focus,
.amadex-form-field select:focus {
    outline: none;
    border-color: #007bff;
}

.required {
    color: #dc3545;
}

.amadex-form-inline {
    display: flex;
    gap: 10px;
}

.amadex-form-inline select {
    flex: 1;
}

.amadex-card-icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.amadex-card-icons img {
    width: 32px;
    height: auto;
}

.amadex-passenger-form {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.amadex-passenger-form h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
}

.amadex-policies-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.amadex-policies-content p {
    margin-bottom: 12px;
}

/* Confirm & Book Action */
.amadex-booking-action {
    text-align: center;
    padding: 30px 0;
}

.amadex-confirm-book-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 60px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.amadex-confirm-book-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.amadex-confirm-book-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.amadex-secure-text {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

/* Right Sidebar */
.amadex-booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amadex-price-details,
.amadex-booking-review {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.amadex-price-details h4,
.amadex-booking-review h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.amadex-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amadex-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.amadex-price-row.discount {
    color: #28a745;
}

.amadex-price-row.total {
    border-top: 2px solid #333;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16px;
}

.amadex-price-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Booking Timer */
.amadex-booking-timer {
    font-size: 48px;
    font-weight: 700;
    color: #dc3545;
    text-align: center;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.amadex-call-prompt {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 15px 0 10px 0;
}

.amadex-call-number {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
}

.amadex-call-number:hover {
    color: #0056b3;
}

.amadex-agent-profile {
    text-align: center;
    margin: 20px 0;
}

.amadex-agent-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.amadex-save-badge {
    background: #ffc107;
    color: #333;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
}

.amadex-call-service {
    display: block;
    text-align: center;
    color: #007bff;
    text-decoration: underline;
    font-size: 13px;
}

.amadex-call-service:hover {
    color: #0056b3;
}

/* Responsive */
@media (max-width: 992px) {
    .amadex-booking-content {
        grid-template-columns: 1fr;
    }

    .amadex-booking-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .amadex-form-row {
        grid-template-columns: 1fr;
    }

    .amadex-segment-route {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .amadex-booking-timer {
        font-size: 36px;
    }
}

/* Airline and Airport Codes */
.amadex-timeline-code {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #2c5282;
    border: 1px solid #cbd5e0;
    letter-spacing: 0.5px;
}

.amadex-segment-row .amadex-timeline-code {
    float: right;
    margin-left: 0;
}

.amadex-segment-dep .amadex-timeline-code,
.amadex-segment-arr .amadex-timeline-code {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}
