/* Piano Devis Manager - Frontend Styles */

/* Devis Button */
.pdm-devis-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pdm-devis-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pdm-devis-button:active {
    transform: translateY(0);
}

/* Cart Recap */
.pdm-cart-recap {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pdm-cart-recap h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #d1b276;
    padding-bottom: 10px;
}

.pdm-cart-items {
    margin: 20px 0;
}

.pdm-cart-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #d1b276;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdm-cart-item-image {
    flex-shrink: 0;
}

.pdm-cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.pdm-cart-item-details {
    flex-grow: 1;
}

.pdm-cart-item-details h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.pdm-cart-item-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.pdm-cart-item-quantity,
.pdm-cart-item-price {
    color: #7f8c8d;
}

.pdm-cart-item-subtotal {
    color: #27ae60;
    font-weight: 600;
}

.pdm-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 18px;
}

.pdm-total-amount {
    color: #000000;
    font-weight: bold;
    font-size: 24px;
}

/* Devis Form */
.pdm-devis-form-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pdm-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .pdm-form-wrapper {
        grid-template-columns: 1fr;
    }
}

.pdm-cart-section,
.pdm-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdm-form-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 4px solid #d1b276;
    padding-bottom: 10px;
}

/* Style spécifique pour le titre "Vos informations" / "Demande un devis piano" */
.pdm-form-title {
    border-bottom: 1px solid #d1b276 !important;
    text-transform: none;
}

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

.pdm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .pdm-form-row {
        grid-template-columns: 1fr;
    }
}

.pdm-form-group {
    margin-bottom: 20px;
}

.pdm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

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

.pdm-form-group input[type="text"],
.pdm-form-group input[type="email"],
.pdm-form-group input[type="tel"],
.pdm-form-group textarea,
.pdm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.pdm-form-group input:focus,
.pdm-form-group textarea:focus,
.pdm-form-group select:focus {
    outline: none;
    border-color: #d1b276;
    box-shadow: 0 0 0 3px rgba(209, 178, 118, 0.1);
}

.pdm-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.pdm-floor-group {
    transition: opacity 0.3s ease;
}

.pdm-form-actions {
    margin-top: 30px;
}

.pdm-submit-button {
    width: 100%;
    padding: 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdm-submit-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pdm-submit-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.pdm-form-messages {
    margin-top: 20px;
}

.pdm-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pdm-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdm-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdm-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty Cart */
.pdm-empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #7f8c8d;
}

/* Loading Spinner */
.pdm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: pdm-spin 1s ease-in-out infinite;
}

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

/* Modal */
.pdm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.pdm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pdm-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pdm-modal-close:hover,
.pdm-modal-close:focus {
    color: #000;
}

/* Style pour le h2 dans div#demande-devis */
div#demande-devis h2::after {
    content: "";
    display: block;
    height: 6px;
    width: 240px;
    background: #d1b276;
    margin-top: 26px;
    margin-bottom: 20px;
}

#btn-demande-devis::after {display:none !important;}