/* Configurateur de piscine - Styles front-end */

.piscine-configurator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.piscine-configurator-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.piscine-configurator-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Formulaire de configuration */
.piscine-config-form {
    flex: 1;
    min-width: 0;
}

.pool-config-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.config-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.config-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.config-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #2c3e50;
    font-weight: 600;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    overflow: hidden;
}

.form-field label .slider-value {
    float: right;
    font-weight: 600;
    color: #4A90E2;
    font-size: 1.1em;
}

.form-field select,
.form-field input[type="text"],
.form-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-field select:focus,
.form-field input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Styles pour les sliders (barres de curseur) */
.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 15px 0;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    background: #357ABD;
    transform: scale(1.1);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.slider-input::-moz-range-thumb:hover {
    background: #357ABD;
    transform: scale(1.1);
}

.slider-input:focus {
    outline: none;
}

.slider-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.slider-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: -5px;
    margin-bottom: 5px;
}

.depth-options {
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label span {
    user-select: none;
}

.pool-depth-custom {
    margin-top: 10px;
}

.shell-color-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shell-color-wrapper select {
    flex: 1;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: inline-block;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

/* Aperçu visuel */
.piscine-config-preview {
    flex: 1;
    min-width: 0;
}

.pool-preview-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    padding: 16px;
}

.pool-view-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e8f5e9;
}

.pool-view-wrapper .pool-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Récapitulatif */
.pool-summary {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.pool-summary-line {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pool-summary-line:last-child {
    margin-bottom: 0;
}

.pool-summary-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pool-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pool-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e3f2fd;
    border-radius: 20px;
    font-size: 13px;
    color: #1976d2;
}

/* Responsive */
@media (max-width: 991px) {
    .piscine-configurator-container {
        flex-direction: column;
    }
    
    .piscine-config-preview {
        order: -1;
    }
    
    .pool-view-wrapper {
        padding-top: 50%;
    }
}

@media (max-width: 767px) {
    .piscine-configurator-wrapper {
        padding: 10px;
    }
    
    .piscine-configurator-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .pool-config-form {
        padding: 15px;
    }
    
    .config-block {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .config-block h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
}

/* Bouton demande de devis */
.pool-quote-request {
    margin-top: 20px;
    text-align: center;
}

.btn-quote-request {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-quote-request:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2a5f94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.btn-quote-request:active {
    transform: translateY(0);
}

/* Modale */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.quote-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.quote-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.quote-modal-close:hover {
    color: #333;
}

.quote-modal-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8em;
}

.quote-form {
    margin-top: 20px;
}

.form-messages {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group .required {
    color: #e74c3c;
}

.quote-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.quote-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.quote-input.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.form-actions {
    margin-top: 25px;
    text-align: center;
}

.btn-submit-quote {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-submit-quote:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2a5f94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.btn-submit-quote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive modale */
@media (max-width: 767px) {
    .quote-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quote-modal-content h2 {
        font-size: 1.5em;
    }
}

