/**
 * Rental System - Estilos CSS
 */

/* Contenedor principal */
.rental-calendar-container {
    padding: 0px;
    margin:  0;
    color: #000;
}

.rental-title {
    margin: 0 0 25px 0;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
}

.rental-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Tipo de alquiler */
.rental-type-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.rental-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.rental-type-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.rental-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rental-type-option:hover .option-content {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.rental-type-option input[type="radio"]:checked + .option-content {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.option-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.option-label {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-price {
    font-size: 1.3em;
    font-weight: 700;
}

/* Fechas */
.rental-dates-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.rental-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.date-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.label-icon {
    font-size: 1.2em;
}

.rental-date-input {
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.rental-date-input::placeholder {
}

.rental-date-input:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
}

/* Cantidad */
.rental-quantity-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rental-quantity-section h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #fff;
    background: rgba(255,255,255,0.2);
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.qty-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

#rental_quantity {
    width: 70px;
    text-align: center;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.stock-message {
    text-align: center;
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    font-weight: 600;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
}

/* Resumen */
.rental-summary {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.rental-summary h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.summary-label {
    font-weight: 600;
    opacity: 0.9;
}

.summary-value {
    font-weight: 700;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-top: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
}

.summary-total-price {
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .rental-calendar-container {
        padding: 20px;
    }
    
    .rental-type-options,
    .rental-dates-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .option-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .option-icon {
        font-size: 2em;
        margin-bottom: 0;
    }
}

/* Carrito */
.quantity {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-weight: 700;
}

/* Flatpickr custom colors */
.flatpickr-calendar {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
}

.flatpickr-day.selected {
    background: #667eea !important;
    border-color: #667eea !important;
}

.flatpickr-day.selected:hover {
    background: #764ba2 !important;
    border-color: #764ba2 !important;
}
