/**
 * Styles pour les options d'enlèvement
 */

/* Section poids du colis */
.tcc-package-weight-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.tcc-package-weight-section h3 {
    margin: 0 0 15px 0;
    color: #007cba;
    font-size: 18px;
}

.tcc-weight-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcc-weight-input label {
    font-weight: 600;
    color: #333;
}

.tcc-weight-input input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    max-width: 200px;
}

.tcc-weight-input input:focus {
    border-color: #007cba;
    outline: none;
}

.tcc-weight-input small {
    color: #666;
    font-style: italic;
}

/* Sections d'options d'enlèvement */
.tcc-pickup-options-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

.tcc-pickup-options-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

/* Options individuelles */
.tcc-pickup-option {
    margin-bottom: 15px;
}

.tcc-pickup-option input[type="radio"] {
    display: none;
}

.tcc-option-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.tcc-option-card:hover {
    border-color: #007cba;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.tcc-pickup-option input[type="radio"]:checked + .tcc-option-card {
    border-color: #007cba;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
}

.tcc-pickup-option input[type="radio"]:checked + .tcc-option-card .option-price {
    color: #fff;
    font-weight: bold;
}

.option-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.option-content {
    flex: 1;
}

.option-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.option-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.8;
}

.option-price {
    font-size: 16px;
    font-weight: bold;
    color: #007cba;
    background: #e8f4f8;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Input pour nombre d'étages */
.tcc-floors-input {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.tcc-floors-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tcc-floors-input input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100px;
    transition: border-color 0.3s ease;
}

.tcc-floors-input input:focus {
    border-color: #007cba;
    outline: none;
}

/* Récapitulatif des options */
.tcc-pickup-summary {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7dd 100%);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.tcc-pickup-summary h4 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 16px;
}

.pickup-cost-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(21, 87, 36, 0.1);
}

.pickup-cost-details:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 16px;
}

.cost-label {
    color: #155724;
}

.cost-value {
    color: #155724;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .tcc-option-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .option-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tcc-weight-input input {
        max-width: 100%;
    }
    
    .pickup-cost-details {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Animation d'apparition */
.tcc-pickup-options-section {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les différents types de colis */
#small-package-options {
    border-left: 4px solid #28a745;
}

#large-package-options {
    border-left: 4px solid #dc3545;
}

#small-package-options h3 {
    color: #28a745;
}

#large-package-options h3 {
    color: #dc3545;
}

/* États de validation */
.tcc-pickup-option.error .tcc-option-card {
    border-color: #dc3545;
    background: #f8d7da;
}

.tcc-pickup-option.success .tcc-option-card {
    border-color: #28a745;
    background: #d4edda;
}
