/**
 * CaribeZyne Concierge Frontend Styles
 */

/* Add to Itinerary Button */
.cz-add-to-itinerary-container {
    margin: 15px 0;
}

.cz-add-to-itinerary-container button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cz-add-to-itinerary-container button:hover:not(:disabled) {
    background: #005a87;
}

.cz-add-to-itinerary-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cz-add-to-itinerary-container .cz-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.cz-add-to-itinerary-container .cz-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cz-add-to-itinerary-container .cz-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Booking Form */
.cz-booking-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.cz-booking-form-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.cz-form-row {
    margin-bottom: 15px;
}

.cz-form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.cz-form-row input,
.cz-form-row textarea,
.cz-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.cz-form-row input:focus,
.cz-form-row textarea:focus,
.cz-form-row select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.cz-form-row button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.cz-form-row button:hover {
    background: #005a87;
}

.cz-form-row button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Itinerary List */
.cz-itinerary-list {
    margin: 20px 0;
}

.cz-itinerary-item {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cz-itinerary-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.cz-itinerary-item h4 a {
    text-decoration: none;
    color: #0073aa;
}

.cz-itinerary-item h4 a:hover {
    text-decoration: underline;
}

.cz-itinerary-status .status-draft {
    color: #666;
}

.cz-itinerary-status .status-cz_pending_payment {
    color: #856404;
}

.cz-itinerary-status .status-cz_in_progress {
    color: #0c5460;
}

.cz-itinerary-status .status-cz_completed {
    color: #155724;
}

.cz-itinerary-status .status-cz_canceled {
    color: #721c24;
}

.cz-itinerary-status .status-cz_refunded {
    color: #856404;
}

.cz-itinerary-items-count {
    font-weight: bold;
    color: #555;
}

.cz-itinerary-date {
    color: #999;
    font-size: 12px;
}

/* Wallet Balance */
.cz-wallet-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    font-weight: bold;
}

.cz-wallet-label {
    color: #555;
}

.cz-wallet-amount {
    color: #0073aa;
    font-size: 1.1em;
}

/* My Account Sections */
.cz-my-account-section {
    margin: 20px 0;
}

.cz-wallet-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cz-wallet-balance .balance-amount {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
}

.cz-wallet-actions .button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.cz-wallet-actions .button:hover {
    background: #005a87;
    color: white;
}

/* Transaction Table */
.cz-wallet-balance .credit {
    color: #28a745;
    font-weight: bold;
}

.cz-wallet-balance .debit {
    color: #dc3545;
    font-weight: bold;
}

/* Login Required Messages */
.cz-login-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.cz-no-itineraries {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cz-booking-form-container {
        padding: 15px;
    }
    
    .cz-wallet-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cz-form-row input,
    .cz-form-row textarea,
    .cz-form-row select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
