/* Professional Transport Manager - Public Styles */

/* Return to services button */
.ptm-btn-return {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #dcdcde;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ptm-btn-return:hover {
    background: #e9e9ea;
    border-color: #c3c4c7;
    color: #1d2327;
}

.ptm-btn-return .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Service Selector */
.ptm-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ptm-service-selector {
    margin-bottom: 40px;
    text-align: center;
}

.ptm-service-selector h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.ptm-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ptm-service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ptm-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ptm-service-card .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.ptm-service-card h3 {
    font-size: 22px;
    margin: 15px 0 10px;
    color: white;
}

.ptm-service-card p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Form Container */
.ptm-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.ptm-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Multi-step Form */
.ptm-form-step {
    display: none;
}

.ptm-form-step.ptm-step-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ptm-form-step h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #444;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Groups */
.ptm-form-group {
    margin-bottom: 25px;
}

.ptm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.ptm-form-group input[type="text"],
.ptm-form-group input[type="email"],
.ptm-form-group input[type="tel"],
.ptm-form-group input[type="number"],
.ptm-form-group input[type="date"],
.ptm-form-group input[type="time"],
.ptm-form-group input[type="datetime-local"],
.ptm-form-group select,
.ptm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ptm-form-group input:focus,
.ptm-form-group select:focus,
.ptm-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ptm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Vehicle Options */
.ptm-vehicle-options {
    display: grid;
    gap: 15px;
}

.ptm-vehicle-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ptm-vehicle-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.ptm-vehicle-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.ptm-vehicle-option input[type="radio"]:checked + .option-content {
    color: #667eea;
}

.ptm-vehicle-option .option-content {
    flex: 1;
}

.ptm-vehicle-option strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.ptm-vehicle-option span {
    font-size: 13px;
    color: #777;
}

/* 3-Tier Vehicle System */
.ptm-vehicle-option .option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.ptm-vehicle-option .vehicle-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.ptm-vehicle-option .vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ptm-vehicle-option .vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptm-vehicle-option .tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    width: fit-content;
}

.tier-badge-3 {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
}

.tier-badge-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tier-badge-1 {
    background: #e0e0e0;
    color: #666;
}

.ptm-vehicle-option .category-label {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.ptm-vehicle-option .capacity {
    font-size: 13px;
    color: #777;
}

/* Tier-specific card borders */
.ptm-tier-3.ptm-vehicle-option {
    border-color: #ffd700;
    background: #fffef8;
}

.ptm-tier-3.ptm-vehicle-option:hover {
    border-color: #ffa500;
    background: #fffdf0;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.ptm-tier-2.ptm-vehicle-option {
    border-color: #d0d0e0;
}

.ptm-tier-2.ptm-vehicle-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.ptm-tier-1.ptm-vehicle-option {
    border-color: #e0e0e0;
    opacity: 0.9;
}

.ptm-tier-1.ptm-vehicle-option:hover {
    border-color: #999;
    background: #f9f9f9;
}

/* Price Display */
.ptm-price-display {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.ptm-price-display h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.price-breakdown {
    margin-bottom: 20px;
}

.price-details {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.total-price span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.price-amount {
    font-size: 28px;
    color: #667eea;
    font-weight: bold;
}

/* Buttons */
.ptm-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.ptm-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ptm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ptm-btn-next,
.ptm-btn-calculate,
.ptm-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.ptm-btn-prev {
    background: #f0f0f0;
    color: #666;
}

.ptm-btn-quote {
    background: #9C27B0;
    color: white;
}

.ptm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ptm-btn-check-availability {
    background: #2196F3;
    color: white;
    flex: 1;
}

/* Available Vehicles */
.ptm-available-vehicles {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Loading States */
.ptm-loading {
    text-align: center;
    padding: 30px;
}

.ptm-loading:after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ptm-service-grid {
        grid-template-columns: 1fr;
    }
    
    .ptm-form-container {
        padding: 25px;
    }
    
    .ptm-form-row {
        grid-template-columns: 1fr;
    }
    
    .ptm-form-actions {
        flex-direction: column;
    }
    
    .price-amount {
        font-size: 24px;
    }
}

/* Success Message */
.ptm-success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.ptm-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* Vehicle Cards Grid */
.ptm-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ptm-vehicle-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ptm-vehicle-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.ptm-vehicle-image {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ptm-vehicle-image svg {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.ptm-vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptm-vehicle-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.ptm-vehicle-capacity {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ptm-capacity-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.ptm-capacity-item svg {
    width: 16px;
    height: 16px;
}

.ptm-vehicle-pricing {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ptm-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.ptm-price-row:last-child {
    margin-bottom: 0;
}

.ptm-price-total {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid #ddd;
    font-size: 16px;
    color: #333;
}

.ptm-btn-select-vehicle {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.ptm-btn-select-vehicle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ptm-btn-select-vehicle:active {
    transform: translateY(0);
}

/* Availability Notice */
.ptm-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ptm-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ptm-notice p {
    margin: 5px 0;
}

.ptm-notice p:first-child {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .ptm-vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .ptm-vehicle-capacity {
        flex-direction: column;
        gap: 8px;
    }
}
