/* Product Aggregator Frontend Styles */

.pa-journey-form-container {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pa-journey-form-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid #e1e5e9;
}

.pa-form-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.pa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pa-form-field {
    display: flex;
    flex-direction: column;
}

.pa-field-label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.pa-date-input,
.pa-select-input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.pa-date-input:focus,
.pa-select-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pa-pax-control {
    display: flex;
    align-items: center;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pa-pax-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 48px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    transition: background-color 0.2s ease;
}

.pa-pax-btn:hover {
    background: #e9ecef;
}

.pa-pax-btn:active {
    background: #dee2e6;
}

.pa-pax-input {
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    width: 60px;
    height: 48px;
    background: #fff;
}

.pa-pax-input:focus {
    outline: none;
}

.pa-field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.pa-field-error.show {
    display: block;
}

.pa-form-actions {
    text-align: center;
    margin-top: 30px;
}

.pa-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    min-width: 200px;
}

.pa-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.pa-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pa-btn-loading {
    display: none;
}

.pa-submit-btn.loading .pa-btn-text {
    display: none;
}

.pa-submit-btn.loading .pa-btn-loading {
    display: inline;
}

/* Modal Styles */
.pa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pa-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e1e5e9;
}

.pa-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.pa-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-modal-close:hover {
    background: #f8f9fa;
    color: #7f8c8d;
}

.pa-modal-body {
    padding: 30px;
}

/* Journey Summary */
.pa-journey-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.pa-journey-summary h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.pa-journey-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pa-journey-item {
    color: #495057;
    font-weight: 500;
}

.pa-journey-separator {
    color: #95a5a6;
}

.pa-journey-dates {
    color: #6c757d;
    font-size: 14px;
}

/* Bundle Options */
.pa-bundle-options h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.pa-fallback-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

.pa-bundles {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.pa-bundle-card {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pa-bundle-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.pa-bundle-card.pa-bundle-popular {
    border-color: #f39c12;
    position: relative;
}

.pa-bundle-card.pa-bundle-popular::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.pa-bundle-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.pa-bundle-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pa-bundle-label input[type="radio"]:checked + .pa-bundle-content {
    background: #f8f9ff;
    border-color: #3498db;
}

.pa-bundle-content {
    padding: 20px;
    transition: all 0.2s ease;
}

.pa-bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pa-bundle-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.pa-bundle-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pa-save-badge {
    background: #e74c3c;
    color: white;
}

.pa-popular-badge {
    background: #f39c12;
    color: white;
}

.pa-bundle-image {
    margin-bottom: 15px;
}

.pa-bundle-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.pa-bundle-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.pa-bundle-pricing {
    margin-bottom: 10px;
}

.pa-bundle-savings {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.pa-bundle-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pa-current-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.pa-original-price {
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
}

.pa-bundle-stock {
    font-size: 12px;
}

.pa-stock-available {
    color: #27ae60;
}

.pa-stock-unavailable {
    color: #e74c3c;
}

/* Modal Actions */
.pa-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.pa-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.pa-btn-primary {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.pa-btn-primary:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.pa-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.pa-btn-secondary:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.pa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pa-journey-form-card {
        padding: 20px;
        margin: 10px;
    }

    .pa-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pa-modal {
        padding: 10px;
    }

    .pa-modal-content {
        max-height: 95vh;
    }

    .pa-modal-header,
    .pa-modal-body {
        padding: 20px;
    }

    .pa-bundle-header {
        flex-direction: column;
        gap: 10px;
    }

    .pa-modal-actions {
        flex-direction: column;
    }

    .pa-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pa-form-title {
        font-size: 20px;
    }

    .pa-journey-details {
        flex-direction: column;
        gap: 5px;
    }

    .pa-journey-separator {
        display: none;
    }
}