/**
 * Daily Rent Car Booking Styles
 *
 * @package Kumrat_Tourism_OS
 */

/* Daily Rent Form Container */
.pdp-daily-rent-form {
    font-family: inherit;
}

/* Car Info Section */
.pdp-car-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #1e5c45 0%, #2d8a65 100%);
    border-radius: 12px;
    color: #fff;
}

.pdp-car-info .pdp-info-item {
    text-align: center;
}

.pdp-car-info .pdp-info-item span {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.pdp-car-info .pdp-info-item strong {
    display: block;
    font-size: 14px;
}

/* Section Titles */
.pdp-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DateTime Section */
.pdp-datetime-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pdp-datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.pdp-dt-box {
    display: flex;
    flex-direction: column;
}

.pdp-dt-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.pdp-dt-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
}

.pdp-dt-input:focus {
    border-color: #1e5c45;
    outline: none;
}

/* Total Days Display */
.pdp-total-days {
    background: #1e5c45;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* Destinations Section */
.pdp-destinations-section {
    margin-bottom: 20px;
}

.pdp-destinations-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.pdp-destinations-input:focus {
    border-color: #1e5c45;
    outline: none;
}

/* Driver Charges Section */
.pdp-driver-charges {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pdp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.pdp-radio-label:hover {
    border-color: #1e5c45;
}

.pdp-radio-label input[type="radio"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1e5c45;
}

.pdp-radio-label input[type="radio"]:checked + .pdp-radio-text {
    color: #1e5c45;
}

.pdp-radio-label:has(input[type="radio"]:checked) {
    border-color: #1e5c45;
    background: #f0f9f6;
}

.pdp-radio-text {
    display: flex;
    flex-direction: column;
}

.pdp-radio-text strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.pdp-radio-text small {
    font-size: 12px;
    color: #666;
}

/* Terms Notice */
.pdp-terms-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pdp-notice-text {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* Price Summary */
.pdp-price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pdp-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-break-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.pdp-break-item:last-child {
    border-bottom: none;
}

.pdp-total-row {
    background: #1e5c45;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.pdp-total-row span {
    color: #fff !important;
}

/* Book Button */
.pdp-book-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1e5c45 0%, #2d8a65 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pdp-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 92, 69, 0.3);
}

.pdp-book-text {
    font-size: 16px;
}

.pdp-book-price {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

/* Charges Note */
.pdp-charges-note {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

/* Contact Info */
.pdp-contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.pdp-contact-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .pdp-car-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pdp-datetime-row {
        grid-template-columns: 1fr;
    }
    
    .pdp-radio-label {
        padding: 12px;
    }
    
    .pdp-book-btn {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pdp-book-text,
    .pdp-book-price {
        width: 100%;
    }
}

/* Driver charge row animation */
.pdp-driver-charge-row {
    transition: all 0.3s ease;
}

.pdp-driver-charge-row[style*="display: none"] {
    display: none !important;
}

.pdp-driver-charge-row[style*="display: flex"] {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
