/* Professional Payment Section Styles */

/* Payment Container */
.payment-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Payment Header */
.payment-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.payment-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-header h2 i {
    color: var(--primary, #f7b731);
    font-size: 1.8rem;
}

.payment-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Booking Summary Card */
.booking-summary-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.booking-summary-card:hover {
    border-color: var(--primary, #f7b731);
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.1);
}

.summary-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-header h3 i {
    color: var(--primary, #f7b731);
}

.summary-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.summary-toggle.open {
    transform: rotate(180deg);
}

.summary-content {
    padding: 2rem;
}

.booking-details-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary, #f7b731);
}

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
    font-size: 0.95rem;
}

/* Price Breakdown */
.price-breakdown {
    border-top: 2px solid #e9ecef;
    padding-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.price-row.total {
    border-top: 2px solid var(--primary, #f7b731);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary, #f7b731);
}

/* Payment Methods Section */
.payment-methods-section {
    margin-bottom: 2.5rem;
}

.payment-section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
    justify-content: center;
}

.payment-section-title i {
    color: var(--primary, #f7b731);
}

.payment-methods-grid {
    display: grid;
    gap: 1.5rem;
}

/* Payment Method Cards */
.payment-method-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.payment-method-card:hover {
    border-color: var(--primary, #f7b731);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(247, 183, 49, 0.2);
}

.payment-method-card.selected {
    border-color: var(--primary, #f7b731);
    box-shadow: 0 0 0 4px rgba(247, 183, 49, 0.1);
}

.payment-method-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary, #f7b731) 0%, #ffd571 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.payment-method-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.payment-method-badge {
    margin-left: auto;
}

.popular-badge, .secure-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secure-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Enhanced styling for primary payment method (Pay to Driver) */
.cash-card {
    border: 3px solid #ffc107 !important; /* PayPal yellow */
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3) !important; /* PayPal yellow shadow */
    position: relative;
    order: -1; /* Ensure it appears first in flexbox */
}

.cash-card::before {
    content: '⭐ RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #ffc107; /* PayPal yellow */
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

.cash-card .payment-method-header {
    background: linear-gradient(135deg, #ffc107, #e35522); /* PayPal yellow gradient */
    color: white;
}

.cash-card .payment-method-icon i {
    color: white;
    font-size: 24px;
}

.cash-card .payment-method-info h4,
.cash-card .payment-method-info p {
    color: white;
}

/* PayPal card styling adjustments */
.paypal-card {
    border: 2px solid #e9ecef;
}

.paypal-card:hover {
    border-color: #0070ba;
    box-shadow: 0 4px 16px rgba(0, 112, 186, 0.15);
}

/* Payment Method Content */
.payment-method-content {
    padding: 2rem;
}

.payment-benefits {
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.benefit i {
    color: #28a745;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.benefit span {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Enhanced PayPal Button Styling */
.paypal-button-wrapper {
    position: relative;
    min-height: 50px;
}

.paypal-button-wrapper .paypal-buttons {
    border-radius: 12px;
    overflow: hidden;
}

/* PayPal specific styling improvements */
#paypal-button-container {
    min-height: 80px;
    padding: 10px 0;
}

/* Ensure PayPal buttons display properly */
#paypal-button-container iframe {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* PayPal button loading state */
.paypal-button-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.paypal-button-wrapper.loading::after {
    content: 'Loading payment options...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced pay later button */
.pay-later-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #e35522 100%); /* PayPal yellow gradient */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 2rem; /* Increased padding for better button appearance */
    font-size: 1.3rem; /* Increased font size for better visibility */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3); /* PayPal yellow shadow */
    min-height: 60px; /* Minimum height to ensure button presence */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
}

.pay-later-btn:hover {
    background: linear-gradient(135deg, #e35522 0%, #ffc107 100%); /* Reversed PayPal yellow gradient */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4); /* Enhanced PayPal yellow shadow */
}

.pay-later-btn:active {
    transform: translateY(0);
}

.pay-later-btn i {
    font-size: 1.5rem; /* Increased icon size */
}

.pay-later-btn .button-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem; /* Increased price text size */
    font-weight: 800;
}

/* Security Section */
.security-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.security-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.security-badge:hover {
    transform: translateY(-2px);
}

.security-badge i {
    color: #28a745;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.security-badge span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Payment Guarantee */
.payment-guarantee {
    background: white;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
}

.guarantee-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.guarantee-content i {
    color: #28a745;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.guarantee-text h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
}

.guarantee-text p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Payment Footer */
.payment-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.payment-terms {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.payment-terms a {
    color: var(--primary, #f7b731);
    text-decoration: none;
    font-weight: 600;
}

.payment-terms a:hover {
    text-decoration: underline;
}

.payment-support p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
}

.payment-support a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.payment-support a:hover {
    text-decoration: underline;
}

/* Error State */
.booking-error {
        text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    }
    
.booking-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.booking-error p {
    margin: 0;
    font-weight: 600;
}

/* Loading States */
.pay-later-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.pay-later-btn.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Enhanced payment benefits styling */
.payment-benefits {
    display: grid;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: #f8fffe;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.payment-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}

.payment-benefits .benefit i {
    color: #28a745;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* PayPal specific benefits */
.paypal-card .payment-benefits {
    border-left-color: #0070ba;
}

.paypal-card .payment-benefits .benefit i {
    color: #0070ba;
}

/* Payment method selection states */
.payment-method-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

.payment-method-card.paypal-card.selected {
    border-color: #0070ba;
    background: #f5f9ff;
    box-shadow: 0 4px 20px rgba(0, 112, 186, 0.2);
}

/* Error states */
.payment-method-card.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.payment-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

/* Success states */
.payment-success-message {
    color: #155724;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

/* Alternative payment notice */
.payment-alternative-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.payment-alternative-notice i {
    color: #f39c12;
    margin-right: 8px;
}

/* Offline Booking Confirmation Styles */
.offline-confirmation {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.offline-confirmation .confirmation-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.offline-confirmation .confirmation-header h2 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 10px;
}

.offline-confirmation .confirmation-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.offline-confirmation .booking-details {
    margin-bottom: 30px;
}

.offline-confirmation .booking-details h3 {
    color: #495057;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offline-confirmation .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.offline-confirmation .detail-label {
    font-weight: 600;
    color: #495057;
}

.offline-confirmation .detail-value {
    color: #6c757d;
    font-weight: 500;
}

.offline-actions {
    text-align: center;
}

.offline-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.offline-notice i {
    color: #0066cc;
    font-size: 18px;
    margin-top: 2px;
}

.offline-notice p {
    color: #004080;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.contact-options {
    margin-bottom: 25px;
}

.contact-options h4 {
    color: #495057;
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 0 5px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.contact-btn.whatsapp {
    background: #25d366;
}

.contact-btn.whatsapp:hover {
    background: #1da851;
}

.new-booking-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.new-booking-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive offline confirmation */
@media (max-width: 768px) {
    .offline-confirmation {
        margin: 10px;
        padding: 20px;
    }
    
    .offline-confirmation .confirmation-header h2 {
        font-size: 20px;
    }
    
    .offline-confirmation .confirmation-header p {
        font-size: 14px;
    }
    
    .contact-btn {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .offline-confirmation .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
} 

/* Responsive Design */
@media (max-width: 768px) {
    .payment-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .payment-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .summary-content {
        padding: 1.5rem;
    }
    
    .payment-method-header {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .payment-method-content {
        padding: 1.5rem;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
    }
    
    .pay-later-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .payment-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .payment-header h2 {
        font-size: 1.4rem;
    }
    
    .detail-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: center;
    }
    
    .pay-later-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Professional Booking Confirmation Styles */

.professional-confirmation {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.professional-confirmation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f7b731 0%, #ffd571 50%, #f7b731 100%);
}

/* Confirmation Header */
.confirmation-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.confirmation-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #34495e;
}

.company-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.company-logo {
    max-height: 80px;
    width: auto;
    border-radius: 12px;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.company-info {
    text-align: left;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #f7b731;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.company-tagline {
    font-size: 1.1rem;
    color: #ecf0f1;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.confirmation-status {
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: confirmationPulse 2s ease-in-out infinite;
}

@keyframes confirmationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.status-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.status-subtitle {
    font-size: 1.2rem;
    color: #ecf0f1;
    margin: 0;
    opacity: 0.9;
}

/* Reference Section */
.reference-section {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.reference-card {
    background: white;
    border: 3px solid #f7b731;
    border-radius: 16px;
    padding: 2rem;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.2);
    position: relative;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #f7b731, #ffd571, #f7b731);
    border-radius: 16px;
    z-index: -1;
}

.reference-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.reference-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.reference-date {
    font-size: 0.95rem;
    color: #495057;
    margin-top: 1rem;
    font-style: italic;
}

/* Section Styling */
.service-details,
.customer-details,
.schedule-details,
.payment-details,
.important-info,
.company-contact {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.service-details h3,
.customer-details h3,
.schedule-details h3,
.payment-details h3,
.important-info h3,
.company-contact h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid #f7b731;
    padding-bottom: 1rem;
}

.service-details h3 i,
.customer-details h3 i,
.schedule-details h3 i,
.payment-details h3 i,
.important-info h3 i,
.company-contact h3 i {
    color: #f7b731;
    font-size: 1.3rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #f7b731 0%, #ffd571 100%);
}

.detail-card:hover {
    border-color: #f7b731;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.15);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f7b731 0%, #ffd571 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.3);
}

.pickup-icon {
    color: #28a745 !important;
}

.destination-icon {
    color: #dc3545 !important;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.price-card {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.price-card::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.price-card .detail-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.price-value {
    color: #28a745;
    font-size: 1.4rem;
    font-weight: 800;
}

/* Customer Grid */
.customer-grid,
.schedule-grid,
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.customer-item,
.schedule-item,
.payment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-label,
.schedule-label,
.payment-label {
    font-weight: 600;
    color: #495057;
}

.customer-value,
.schedule-value,
.payment-value {
    font-weight: 500;
    color: #2c3e50;
}

.payment-value.status-completed {
    color: #28a745;
    font-weight: 700;
}

.payment-value.status-pending {
    color: #ffc107;
    font-weight: 700;
}

/* Important Info */
.info-list {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.info-item i {
    color: #17a2b8;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #f7b731;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f7b731 0%, #ffd571 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.3);
}

.contact-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
}

.contact-value a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #f7b731;
}

/* Action Buttons */
.confirmation-actions {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn,
.print-btn,
.new-booking-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.print-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.print-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.new-booking-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.new-booking-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.download-btn:disabled,
.print-btn:disabled,
.new-booking-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.confirmation-footer {
    padding: 2rem;
    text-align: center;
    background: #2c3e50;
    color: white;
}

.confirmation-footer p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design for Confirmation */
@media (max-width: 768px) {
    .professional-confirmation {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .confirmation-header {
        padding: 2rem 1.5rem;
    }
    
    .company-branding {
        flex-direction: column;
        gap: 1rem;
    }
    
    .company-info {
        text-align: center;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .status-title {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn,
    .print-btn,
    .new-booking-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .confirmation-header {
        padding: 1.5rem 1rem;
    }
    
    .company-name {
        font-size: 1.6rem;
    }
    
    .company-tagline {
        font-size: 1rem;
    }
    
    .status-title {
        font-size: 1.6rem;
    }
    
    .reference-number {
        font-size: 1.5rem;
    }
    
    .service-details,
    .customer-details,
    .schedule-details,
    .payment-details,
    .important-info,
    .company-contact {
        padding: 1.5rem 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .customer-item,
    .schedule-item,
    .payment-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    /* Print-specific styles for professional confirmation */
    body * {
        visibility: hidden;
    }
    
    .professional-confirmation,
    .professional-confirmation * {
        visibility: visible;
    }
    
    .professional-confirmation {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
        background: white !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        color: #000 !important;
    }
    
    .confirmation-actions {
        display: none !important;
    }
    
    .confirmation-header {
        text-align: center !important;
        margin-bottom: 30px !important;
        border-bottom: 3px solid #000 !important;
        padding-bottom: 20px !important;
        page-break-inside: avoid;
    }
    
    .company-logo {
        max-height: 60px !important;
        margin-bottom: 10px !important;
    }
    
    .company-name {
        color: #000 !important;
        font-size: 24px !important;
        font-weight: bold !important;
        margin: 10px 0 !important;
    }
    
    .company-tagline {
        color: #333 !important;
        font-size: 16px !important;
    }
    
    .status-icon {
        font-size: 36px !important;
        color: #000 !important;
        margin: 20px 0 !important;
    }
    
    .status-title {
        color: #000 !important;
        font-size: 28px !important;
        margin: 10px 0 !important;
    }
    
    .reference-section {
        margin: 30px 0 !important;
        text-align: center !important;
        page-break-inside: avoid;
    }
    
    .reference-card {
        background: #f8f8f8 !important;
        padding: 20px !important;
        border-radius: 10px !important;
        border-left: 5px solid #000 !important;
    }
    
    .reference-number {
        font-size: 20px !important;
        font-weight: bold !important;
        color: #000 !important;
    }
    
    .details-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    .detail-card {
        background: #f8f8f8 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        border-left: 4px solid #000 !important;
        break-inside: avoid;
    }
    
    .detail-label {
        font-weight: bold !important;
        color: #333 !important;
        font-size: 12px !important;
    }
    
    .detail-value {
        color: #000 !important;
        font-size: 14px !important;
        margin-top: 5px !important;
    }
    
    .price-value {
        color: #000 !important;
        font-weight: bold !important;
        font-size: 16px !important;
    }
    
    .contact-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        page-break-inside: avoid;
    }
    
    .contact-item {
        background: #f8f8f8 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    
    h3 {
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px !important;
        margin-top: 30px !important;
        page-break-after: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .customer-grid, .payment-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .customer-item, .payment-item {
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px !important;
        background: #f8f8f8 !important;
        border-radius: 5px !important;
        break-inside: avoid;
    }
    
    .info-list {
        display: grid !important;
        gap: 10px !important;
    }
    
    .info-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px !important;
        background: #f8f8f8 !important;
        border-radius: 5px !important;
        break-inside: avoid;
    }
    
    .confirmation-footer {
        margin-top: 40px !important;
        text-align: center !important;
        border-top: 2px solid #000 !important;
        padding-top: 20px !important;
        page-break-inside: avoid;
    }
    
    /* Ensure all icons are visible */
    i, .fas, .fab {
        color: #000 !important;
        font-style: normal !important;
    }
    
    /* Hide any overlays or modals */
    .modal, .overlay, .popup {
        display: none !important;
    }
} 