/**
 * Styles ChronoLoc Rental System
 * Version 3.0.0
 */

.rnb-pricing-plan-button{
	display:none;
}
.attributes .custom-block{
	font-size:15px;
	font-weight:bold;
	z-index:0;
}

/* Container principal */
.cloc-rental-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 20px 0;
}

.cart h5{
	padding-top : 0px !important;
	font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-time-picker{
	width : 50% !important;
	float:left;
}
.redq-quantity{
	clear:both;
}

.rnb-cart{
	display:block !important;
}
.payable-extras{
	 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 600px;
    margin: 20px 0;
	 background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
	clear:both;
}

/* Sections */
.cloc-section {
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.cloc-section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Prix */
.cloc-price-display {
    font-size: 28px;
    font-weight: 600;
    color: #6366f1;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f0f0ff 0%, #e7e9fc 100%);
    border-radius: 8px;
}

.cloc-price-unit {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

.cloc-section p:empty,
.cloc-section > p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Grille des durées */
.cloc-duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 15px;
}

.cloc-duration-card {
    position: relative;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    /*cursor: pointer;*/
    transition: all 0.3s ease;
}

/*.cloc-duration-card:hover {
    background: #f0f0ff;
    border-color: #6366f1;
    transform: translateY(-2px);
}*/

.cloc-duration-card.highlighted {
    background: linear-gradient(135deg, #6366f1 0%, #1e3c72 100%);
    color: white;
    border-color: #6366f1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.cloc-duration-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
}

.cloc-duration-price {
    font-size: 14px;
    font-weight: 500;
    color: #6366f1;
}

.cloc-duration-card.highlighted .cloc-duration-price {
    color: white;
    opacity: 0.95;
}

.cloc-duration-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: white;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Compteur de jours */
.cloc-days-display {
    margin-top: 15px;
}

.cloc-days-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px;
    background: #e7e9fc;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
}

.cloc-days-value {
    font-size: 20px;
    font-weight: 600;
    color: #6366f1;
}

/* Section Dates */
.cloc-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cloc-date-field {
    display: flex;
    flex-direction: column;
}

.cloc-date-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 8px;
}

.cloc-date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.cloc-date-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cloc-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Section Options */
.cloc-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cloc-option-card {
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.cloc-option-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.cloc-option-label {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.cloc-option-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.cloc-option-content {
    flex: 1;
}

.cloc-option-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.cloc-option-desc {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.cloc-option-price {
    font-size: 14px;
    font-weight: 500;
    color: #6366f1;
    margin-left: 12px;
}

/* Section Récapitulatif */
.cloc-summary-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.cloc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cloc-summary-row + .cloc-summary-row {
    border-top: 1px solid #e5e5e7;
}

.cloc-summary-label {
    font-size: 14px;
    color: #6c757d;
}

.cloc-summary-value {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.cloc-summary-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #6366f1;
}

.cloc-summary-total .cloc-summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.cloc-summary-total .cloc-summary-value {
    font-size: 20px;
    font-weight: 600;
    color: #6366f1;
}

/* Section Actions */
.cloc-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.cloc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.cloc-btn-secondary {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.cloc-btn-secondary:hover {
    background: #f0f0ff;
    transform: translateY(-1px);
}

.cloc-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.cloc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.cloc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cloc-btn-icon {
    font-size: 18px;
}

.cloc-actions-info {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .cloc-dates-grid {
        grid-template-columns: 1fr;
    }
    
    .cloc-duration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cloc-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .cloc-price-display {
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cloc-section {
    animation: fadeIn 0.4s ease-out;
}

/* États de chargement */
.cloc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.cloc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #6366f1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* Section Dates de location */
.cloc-dates-section, .cloc-section, .payable-extras {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 0px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.cloc-dates-section .cloc-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Wrapper pour les deux champs */
.cloc-dates-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Chaque champ de date */
.cloc-date-field {
    display: flex;
    flex-direction: column;
}

/* Labels */
.cloc-date-field .cloc-date-label,
.cloc-date-field h5 {
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
    margin-top: 0;
}

/* Wrapper de l'input avec icône */
.cloc-date-field .pick-up-date-picker,
.cloc-date-field .drop-off-date-picker,
.cloc-date-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Icône calendrier */
.cloc-date-field i.fa-calendar-alt,
.cloc-date-field i.fas.fa-calendar-alt {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007cba;
    z-index: 1;
    pointer-events: none;
}

/* Input de date */
.cloc-date-field input[type="text"],
.cloc-date-input {
    width: 100% !important;
    padding: 12px 15px 12px 45px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    background: white !important;
    cursor: pointer;
}

.cloc-date-field input[type="text"]:hover,
.cloc-date-input:hover {
    border-color: #007cba !important;
}

.cloc-date-field input[type="text"]:focus,
.cloc-date-input:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

/* Quand une date est sélectionnée */
.cloc-date-field input[type="text"]:not([value=""]),
.cloc-date-input.has-value {
    font-weight: 500;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .cloc-dates-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cloc-dates-section {
        padding: 20px;
    }
}

/* Cacher les modales de dates sur mobile si nécessaire */
#pickup-modal-body,
#dropoff-modal-body {
    /* Les modales RNB restent fonctionnelles mais cachées par défaut */
}