/**
 * MTE Trip Booking - Styles
 * 
 * @package MTE_Trip_Booking
 * @author Santosh Baral <hello@techzeninc.com>
 * @copyright 2026 Techzen Corporation
 */

/* ================================
   CSS Variables (Design Tokens)
   ================================ */
:root {
    --mte-primary: #e74c3c;
    --mte-primary-dark: #c0392b;
    --mte-secondary: #2c3e50;
    --mte-accent: #3498db;
    --mte-success: #27ae60;
    --mte-warning: #f39c12;
    --mte-light: #ecf0f1;
    --mte-white: #ffffff;
    --mte-text: #2c3e50;
    --mte-text-light: #7f8c8d;
    --mte-border: #bdc3c7;
    --mte-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --mte-radius: 8px;
    --mte-transition: all 0.3s ease;
}

/* ================================
   Booking Buttons (on Trip Page)
   ================================ */
.mte-booking-buttons-container {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.mte-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--mte-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--mte-transition);
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--mte-shadow);
}

.mte-btn-icon {
    font-size: 18px;
}

.mte-btn-primary {
    background: linear-gradient(135deg, var(--mte-primary), var(--mte-primary-dark));
    color: var(--mte-white);
}

.mte-btn-primary:hover {
    background: linear-gradient(135deg, var(--mte-primary-dark), var(--mte-primary));
    color: var(--mte-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.3);
}

.mte-btn-secondary {
    background: var(--mte-white);
    color: var(--mte-secondary);
    border: 2px solid var(--mte-border);
}

.mte-btn-secondary:hover {
    border-color: var(--mte-primary);
    color: var(--mte-primary);
    transform: translateY(-2px);
}

/* ================================
   Booking Page Wrapper
   ================================ */
.mte-booking-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: var(--mte-white);
    padding: 0;
    box-shadow: var(--mte-shadow);
    border-radius: var(--mte-radius);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow: hidden;
}

/* Loading State */
.mte-loading {
    padding: 60px;
    text-align: center;
    font-size: 18px;
    color: var(--mte-text-light);
}

.mte-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid var(--mte-light);
    border-top-color: var(--mte-primary);
    border-radius: 50%;
    animation: mte-spin 0.8s linear infinite;
}

@keyframes mte-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.mte-error {
    padding: 40px;
    text-align: center;
    color: var(--mte-primary);
    background: #fff5f5;
    border-left: 4px solid var(--mte-primary);
}

/* ================================
   Tabs Navigation
   ================================ */
.mte-tabs-nav {
    display: flex;
    background: var(--mte-light);
    border-bottom: 1px solid var(--mte-border);
}

.mte-tab-trigger {
    flex: 1;
    padding: 18px 30px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--mte-text-light);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--mte-transition);
}

.mte-tab-trigger:hover {
    color: var(--mte-text);
    background: rgba(255, 255, 255, 0.5);
}

.mte-tab-trigger.active {
    color: var(--mte-primary);
    background: var(--mte-white);
    border-bottom-color: var(--mte-primary);
}

/* ================================
   Content Area
   ================================ */
.mte-content {
    padding: 30px;
}

/* Trip Header */
.mte-booking-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--mte-light);
}

.mte-trip-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--mte-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mte-trip-info {
    flex: 1;
}

.mte-trip-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--mte-secondary);
}

.mte-trip-excerpt {
    color: var(--mte-text-light);
    font-size: 14px;
    margin: 0 0 10px;
}

.mte-price-tag {
    font-size: 20px;
    color: var(--mte-primary);
    font-weight: 700;
}

.mte-price-tag small {
    font-size: 14px;
    font-weight: 400;
    color: var(--mte-text-light);
}

/* ================================
   Sections
   ================================ */
.mte-section {
    margin-bottom: 30px;
}

.mte-section h3 {
    font-size: 17px;
    margin: 0 0 15px;
    color: var(--mte-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mte-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--mte-primary);
    border-radius: 2px;
}

/* ================================
   Services/Extras
   ================================ */
.mte-service-item {
    margin-bottom: 12px;
    padding: 15px;
    background: var(--mte-light);
    border-radius: var(--mte-radius);
    transition: var(--mte-transition);
}

.mte-service-item:hover {
    background: #e8f4f8;
}

.mte-service-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.mte-service-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--mte-primary);
}

.mte-service-item .service-name {
    flex: 1;
}

.mte-service-item .service-price {
    color: var(--mte-success);
    font-weight: 600;
}

.mte-service-item .service-desc {
    margin: 8px 0 0 32px;
    font-size: 13px;
    color: var(--mte-text-light);
}

/* ================================
   Customer Info Form
   ================================ */
.mte-customer-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mte-customer-fields .full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .mte-customer-fields {
        grid-template-columns: 1fr;
    }

    .mte-customer-fields .full-width {
        grid-column: span 1;
    }
}

/* ================================
   Payment Options
   ================================ */
.mte-payment-options {
    display: grid;
    gap: 12px;
}

.mte-pay-option {
    display: block;
    border: 2px solid var(--mte-light);
    border-radius: var(--mte-radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: var(--mte-transition);
    position: relative;
}

.mte-pay-option:hover {
    border-color: var(--mte-border);
    background: #fafafa;
}

.mte-pay-option.selected,
.mte-pay-option:has(input:checked) {
    border-color: var(--mte-primary);
    background: #fff5f4;
}

.mte-pay-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mte-pay-option .opt-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mte-pay-option .opt-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--mte-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mte-transition);
}

.mte-pay-option:has(input:checked) .opt-radio {
    border-color: var(--mte-primary);
}

.mte-pay-option:has(input:checked) .opt-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--mte-primary);
    border-radius: 50%;
}

.mte-pay-option .opt-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--mte-secondary);
}

.mte-pay-option .opt-badge {
    margin-left: auto;
    background: var(--mte-success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mte-pay-option .opt-desc {
    margin: 10px 0 0 34px;
    font-size: 13px;
    color: var(--mte-text-light);
    line-height: 1.5;
}

/* ================================
   Price Summary Box
   ================================ */
.mte-summary-box {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 1px solid var(--mte-light);
    padding: 25px;
    border-radius: var(--mte-radius);
}

.mte-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--mte-text);
}

.mte-row.discount {
    color: var(--mte-success);
}

.mte-row.total {
    border-top: 2px solid var(--mte-light);
    margin-top: 12px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: var(--mte-secondary);
}

.mte-row.pay-now-row {
    background: var(--mte-primary);
    color: white;
    margin: 15px -25px -25px;
    padding: 18px 25px;
    border-radius: 0 0 var(--mte-radius) var(--mte-radius);
    font-size: 16px;
    font-weight: 600;
}

.pay-later-row {
    font-size: 13px;
    color: var(--mte-warning);
    border-top: 1px dashed var(--mte-border);
    margin-top: 10px;
    padding-top: 10px;
}

/* ================================
   Actions
   ================================ */
.mte-actions {
    margin-top: 25px;
    text-align: center;
}

button#mte-proceed-checkout {
    width: 100%;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--mte-primary), var(--mte-primary-dark));
    color: white;
    border: none;
    border-radius: var(--mte-radius);
    cursor: pointer;
    transition: var(--mte-transition);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

button#mte-proceed-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

button#mte-proceed-checkout:disabled,
button#mte-proceed-checkout.loading {
    background: var(--mte-text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mte-secure-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--mte-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ================================
   Form Elements
   ================================ */
.mte-form-group {
    margin-bottom: 0;
}

.mte-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--mte-secondary);
}

.mte-form-group label .required {
    color: var(--mte-primary);
}

.mte-form-group input,
.mte-form-group textarea,
.mte-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--mte-border);
    border-radius: var(--mte-radius);
    font-size: 15px;
    transition: var(--mte-transition);
    box-sizing: border-box;
}

.mte-form-group input:focus,
.mte-form-group textarea:focus,
.mte-form-group select:focus {
    outline: none;
    border-color: var(--mte-primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.mte-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================
   Inquiry Form
   ================================ */
#mte-inquiry-form .mte-form-group {
    margin-bottom: 18px;
}

button.mte-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--mte-secondary);
    color: white;
    border: none;
    border-radius: var(--mte-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mte-transition);
}

button.mte-submit-btn:hover {
    background: #1a252f;
}

button.mte-submit-btn:disabled {
    background: var(--mte-text-light);
    cursor: not-allowed;
}

/* ================================
   Success Message
   ================================ */
.mte-success-message {
    text-align: center;
    padding: 60px 40px;
}

.mte-success-message .success-icon {
    width: 80px;
    height: 80px;
    background: var(--mte-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

.mte-success-message h2 {
    margin: 0 0 15px;
    color: var(--mte-secondary);
}

.mte-success-message p {
    color: var(--mte-text-light);
    margin: 0 0 25px;
    font-size: 16px;
}

/* ================================
   Shortcode Variations
   ================================ */

/* Alignment variations */
.mte-align-center {
    justify-content: center;
}

.mte-align-right {
    justify-content: flex-end;
}

/* Style variations */
.mte-style-compact .mte-btn {
    padding: 10px 18px;
    font-size: 14px;
}

.mte-style-compact .mte-btn-icon {
    font-size: 14px;
}

.mte-style-minimal .mte-btn {
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: none;
}

.mte-style-minimal .mte-btn-icon {
    display: none;
}

/* ================================
   Service Quantity & Mandatory
   ================================ */

/* Service quantity input */
.service-qty-wrap {
    margin: 10px 0 0 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mte-text-light);
}

.service-qty-wrap label {
    font-weight: 500;
    margin: 0;
}

.mte-service-qty {
    width: 65px;
    padding: 6px 10px;
    border: 1px solid var(--mte-border);
    border-radius: 4px;
    font-size: 14px;
}

.mte-service-qty:focus {
    outline: none;
    border-color: var(--mte-primary);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

/* Mandatory service styling */
.mte-service-item.mte-service-mandatory {
    background: #e8f4e8;
    border-left: 3px solid var(--mte-success);
}

.mte-service-item label em {
    font-size: 11px;
    color: var(--mte-success);
    font-style: normal;
    font-weight: 600;
    margin-left: 5px;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .mte-booking-wrapper {
        margin: 20px 15px;
        border-radius: var(--mte-radius);
    }

    .mte-booking-header {
        flex-direction: column;
        text-align: center;
    }

    .mte-trip-thumb {
        width: 100%;
        height: 180px;
    }

    .mte-content {
        padding: 20px;
    }

    .mte-booking-buttons-container {
        flex-direction: column;
    }

    .mte-btn {
        width: 100%;
        justify-content: center;
    }

    .service-qty-wrap {
        margin-left: 0;
        margin-top: 12px;
    }
}