/* Section principale devis */
.wc-ctq-quote-section {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #0073aa;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    clear: both;
}

.wc-ctq-quote-section h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 20px;
    margin-bottom: 10px;
}

.wc-ctq-quote-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Champ email */
.wc-ctq-email-field {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.wc-ctq-email-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wc-ctq-email-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wc-ctq-email-field input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wc-ctq-email-field input[type="email"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.wc-ctq-email-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Bouton devis */
.wc-ctq-quote-button {
    background: linear-gradient(45deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    min-width: 200px;
    justify-content: center;
}

.wc-ctq-quote-button:hover:not(.disabled) {
    background: linear-gradient(45deg, #005a87, #004973);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.wc-ctq-quote-button.disabled {
    background: #999 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.wc-ctq-quote-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wc-ctq-quote-button .dashicons-update {
    animation: ctq-spin 1s linear infinite;
}

/* Loading */
.wc-ctq-loading {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wc-ctq-loading.show {
    display: flex;
}

.wc-ctq-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: ctq-spin 1s linear infinite;
}

.wc-ctq-loading-text {
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

/* Résultats */
.wc-ctq-result {
    margin-top: 15px;
    display: none;
}

.wc-ctq-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    text-align: center;
}

.wc-ctq-success .dashicons {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 5px;
}

.wc-ctq-success small {
    opacity: 0.8;
    font-size: 12px;
    margin-top: 5px;
}

.wc-ctq-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    text-align: center;
}

.wc-ctq-error .dashicons {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 5px;
}

@keyframes ctq-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile First */
@media (max-width: 999px) {
    .wc-ctq-quote-section {
        margin: 15px 0;
        padding: 20px 15px;
    }
    
    .wc-ctq-quote-section h3 {
        font-size: 16px;
    }
    
    .wc-ctq-quote-section p {
        font-size: 13px;
    }
    
    .wc-ctq-email-field {
        max-width: none;
    }
    
    .wc-ctq-email-field input[type="email"] {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 10px 12px;