/* Quick Checkout Styles - Version Professionnelle */

.quick-checkout-section {
    background: #ffffff;
    padding: 40px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(91, 22, 71, 0.08);
    max-width: 600px;
    border: 1px solid #f0f0f0;
}

.quick-checkout-section h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.quick-checkout-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5B1647, #8B2167);
    border-radius: 2px;
}

.quick-checkout-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-row{
    float: none!important;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #5B1647;
    border-radius: 50%;
    display: inline-block;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: right;
    background: #fafafa;
    font-family: inherit;
}

.form-group input#qc-telephone {
    direction: ltr;
    text-align: left;
}

.form-group input#qc-telephone::placeholder {
    text-align: left;
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5B1647;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(91, 22, 71, 0.08);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #8B2167;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B1647' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e0e0e0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-checkout-total {
    width: 100%;
    background: linear-gradient(135deg, #5B1647 0%, #7a1d5a 100%);
    padding: 24px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(91, 22, 71, 0.2);
    direction: rtl;
}

.quick-checkout-total span:first-child {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
}

.quick-checkout-total .price {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-checkout-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #5B1647 0%, #7a1d5a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 22, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-checkout-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.quick-checkout-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 22, 71, 0.4);
}

.quick-checkout-form button[type="submit"]:hover::before {
    left: 100%;
}

.quick-checkout-form button[type="submit"]:active {
    transform: translateY(0);
}

.quick-checkout-form button[type="submit"]:disabled {
    background: linear-gradient(135deg, #999 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bouton Acheter Maintenant */
.buy-now-btn {
    background: linear-gradient(135deg, #5B1647 0%, #7a1d5a 100%) !important;
    color: #fff !important;
    margin-left: 10px;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    border: none !important;
    width: 150px!important;
    box-shadow: 0 4px 12px rgba(91, 22, 71, 0.25) !important;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #7a1d5a 0%, #5B1647 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(91, 22, 71, 0.35) !important;
}

.buy-now-btn:active {
    transform: translateY(0) !important;
}

/* Messages */
.qc-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    display: none;
    text-align: right;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qc-message.success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

.qc-message.success::before {
    content: '✓ ';
    font-weight: 700;
    font-size: 18px;
}

.qc-message.error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

.qc-message.error::before {
    content: '⚠ ';
    font-weight: 700;
    font-size: 18px;
}

/* Loading spinner */
.qc-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Effet d'erreur sur les champs */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .quick-checkout-section {
        padding: 30px 20px;
        margin: 40px 20px;
        border-radius: 10px;
    }
    
    .quick-checkout-section h2 {
        font-size: 24px;
    }
    
    .form-row {
        gap: 16px;
    }
    
    .buy-now-btn {
        width: 100%;
        margin: 10px 0 0 0 !important;
    }
    
    .quick-checkout-total {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .quick-checkout-total .price {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .quick-checkout-section {
        padding: 25px 15px;
        margin: 30px 15px;
    }
    
    .quick-checkout-section h2 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .quick-checkout-form button[type="submit"] {
        padding: 14px;
        font-size: 16px;
    }
}