/**
 * ECM Paiement Sécurisé - Styles Frontend
 * Plugin: paiement-compta-ecm
 * Extracted from inline <style> without modification
 */

/* Reset et styles de base */
.ecm-payment-container * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.ecm-payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

.ecm-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ecm-logo {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.ecm-subtitle {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ecm-trust-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
}

.ecm-form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.ecm-form-section:hover {
    transform: translateY(-5px);
}

.ecm-section-title {
    font-size: 1.5em;
    color: #ff6b35;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecm-section-icon {
    font-size: 1.3em;
}

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

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

.ecm-form-group input, 
.ecm-form-group select, 
.ecm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.ecm-form-group input:focus, 
.ecm-form-group select:focus, 
.ecm-form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.ecm-intervention-options {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.ecm-intervention-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.ecm-intervention-option:hover {
    border-color: #ff6b35;
    background: #fff5f2;
    transform: scale(1.02);
}

.ecm-intervention-option.selected {
    border-color: #ff6b35;
    background: #fff5f2;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.ecm-intervention-option input[type="radio"] {
    width: auto;
    margin-right: 15px;
    transform: scale(1.2);
}

.ecm-intervention-info {
    flex: 1;
}

.ecm-intervention-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.ecm-intervention-desc {
    color: #666;
    font-size: 0.9em;
}

.ecm-intervention-price {
    font-weight: bold;
    color: #ff6b35;
    font-size: 1.1em;
}

.ecm-custom-intervention {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 2px solid #87ceeb;
}

.ecm-custom-intervention.show {
    display: block;
    animation: ecmSlideDown 0.3s ease;
}

.ecm-currency-input {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    background: white;
}

.ecm-currency-input:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.ecm-currency-input input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    margin: 0;
}

.ecm-currency-input input:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.ecm-currency-symbol {
    padding: 12px;
    color: #666;
    font-weight: bold;
    background: #f8f9fa;
    border-left: 1px solid #e0e0e0;
}

@keyframes ecmSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

.ecm-payment-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.ecm-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ecm-total-amount {
    font-size: 1.5em;
    font-weight: bold;
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    margin-top: 15px;
}

.ecm-payment-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 50px;
}

.ecm-payment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.ecm-payment-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ecm-security-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

.ecm-security-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
}

.ecm-security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.ecm-security-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.ecm-security-icon.visa {
    background: linear-gradient(135deg, #1a1f71 0%, #0f3460 100%);
    min-width: 50px;
}

.ecm-security-icon.mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
    min-width: 70px;
}

.ecm-security-icon.ssl {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    min-width: 45px;
}

.ecm-security-icon.cb {
    background: linear-gradient(135deg, #0e4194 0%, #1e5aa8 100%);
    min-width: 40px;
}

.ecm-confirmation-page {
    display: none;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ecm-confirmation-page.show {
    display: block;
    animation: ecmFadeIn 0.5s ease;
}

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

.ecm-success-icon {
    font-size: 4em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.ecm-confirmation-title {
    font-size: 2em;
    color: #ff6b35;
    margin-bottom: 20px;
}

.ecm-confirmation-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.ecm-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ecm-invoice-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.ecm-new-booking-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.ecm-new-booking-btn:hover {
    background: #e55a2b;
}

/* Checkbox montant personnalisé */
label[for="ecm-custom-amount-checkbox"]:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#ecm-custom-amount-checkbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid #ff6b35;
    border-radius: 5px;
    display: grid;
    place-content: center;
    margin-right: 15px !important;
    margin-left: 5px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ecm-custom-amount-checkbox:checked {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

#ecm-custom-amount-checkbox:checked::before {
    content: "✓";
    font-size: 14px;
    color: white;
    font-weight: bold;
}

#ecm-custom-amount-checkbox:hover {
    border-color: #e55a2b;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* ============================================= */
/* Responsive Design - Tablettes                 */
/* ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .ecm-payment-container {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        min-height: 100vh;
    }
    
    .ecm-header {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .ecm-logo {
        font-size: 3.5em;
        font-weight: bold;
    }
    
    .ecm-subtitle {
        font-size: 1.6em;
        font-weight: 600;
    }
    
    .ecm-trust-badge {
        font-size: 1.3em;
        padding: 12px 24px;
        font-weight: 600;
    }
    
    .ecm-form-section {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .ecm-section-title {
        font-size: 2.2em;
        font-weight: bold;
        margin-bottom: 25px;
    }
    
    .ecm-form-group label {
        font-size: 1.4em;
        font-weight: bold;
        margin-bottom: 12px;
    }
    
    .ecm-form-group input, 
    .ecm-form-group select, 
    .ecm-form-group textarea {
        padding: 18px;
        font-size: 1.3em;
        font-weight: 500;
        line-height: 1.5;
        border-width: 3px;
    }
    
    .ecm-intervention-option {
        padding: 25px;
        margin-bottom: 15px;
        border-width: 3px;
    }
    
    .ecm-intervention-title {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 8px;
    }
    
    .ecm-intervention-desc {
        font-size: 1.2em;
        font-weight: 500;
        margin-top: 8px;
        line-height: 1.4;
    }
    
    .ecm-intervention-price {
        font-size: 1.6em;
        font-weight: bold;
    }
    
    .ecm-payment-summary {
        padding: 30px;
        margin-bottom: 25px;
    }
    
    .ecm-summary-row {
        font-size: 1.4em;
        font-weight: 600;
        margin-bottom: 18px;
    }
    
    .ecm-total-amount {
        font-size: 2.2em;
        font-weight: bold;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .ecm-payment-button {
        padding: 24px;
        font-size: 1.6em;
        font-weight: bold;
        min-height: 70px;
        letter-spacing: 2px;
    }
    
    .ecm-currency-input input {
        padding: 18px;
        font-size: 1.3em;
        font-weight: 600;
    }
    
    .ecm-currency-symbol {
        padding: 18px;
        font-size: 1.3em;
        font-weight: bold;
    }
    
    .ecm-security-info p {
        font-size: 1.2em;
        font-weight: 600;
    }
    
    .ecm-security-icon {
        font-size: 1em;
        font-weight: bold;
        padding: 10px 16px;
        height: 38px;
    }
    
    .ecm-confirmation-title {
        font-size: 3em;
        font-weight: bold;
    }
    
    .ecm-confirmation-details {
        padding: 30px;
        font-size: 1.3em;
    }
    
    .ecm-detail-row {
        font-size: 1.4em;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

/* ============================================= */
/* Responsive Design - Mobiles                   */
/* ============================================= */
@media (max-width: 768px) {
    .ecm-payment-container {
        padding: 8px;
        margin: 0;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
    }
    
    .ecm-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .ecm-logo {
        font-size: 2.5em;
        font-weight: bold;
    }
    
    .ecm-subtitle {
        font-size: 1.3em;
        font-weight: 600;
    }
    
    .ecm-trust-badge {
        font-size: 1.1em;
        padding: 10px 18px;
        font-weight: 600;
    }
    
    .ecm-form-section {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .ecm-section-title {
        font-size: 1.8em;
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    .ecm-form-group label {
        font-size: 1.2em;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    .ecm-intervention-option {
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 12px;
        border-width: 2px;
    }
    
    .ecm-intervention-option .ecm-intervention-info {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .ecm-intervention-option input[type="radio"] {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 20px;
        height: 20px;
        margin: 0;
    }
    
    .ecm-intervention-title {
        font-size: 1.2em;
        font-weight: bold;
        margin-bottom: 6px;
        padding-right: 30px;
    }
    
    .ecm-intervention-desc {
        font-size: 1em;
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .ecm-intervention-price {
        font-size: 1.4em;
        font-weight: bold;
        color: #ff6b35;
        text-align: right;
        margin-top: 5px;
    }
    
    .ecm-payment-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .ecm-summary-row {
        font-size: 1.1em;
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    .ecm-total-amount {
        font-size: 1.6em;
        font-weight: bold;
        padding-top: 15px;
        margin-top: 15px;
    }
    
    .ecm-payment-button {
        padding: 20px;
        font-size: 1.3em;
        font-weight: bold;
        min-height: 60px;
        letter-spacing: 1px;
    }
    
    .ecm-form-group input, 
    .ecm-form-group select, 
    .ecm-form-group textarea {
        padding: 16px;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
        border-width: 2px;
    }
    
    .ecm-currency-input input {
        padding: 16px;
        font-size: 18px;
        font-weight: 600;
    }
    
    .ecm-currency-symbol {
        padding: 16px;
        font-size: 18px;
        font-weight: bold;
    }
    
    .ecm-security-info p {
        font-size: 1em;
        font-weight: 600;
    }
    
    .ecm-security-icons {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .ecm-security-icon {
        font-size: 0.8em;
        font-weight: bold;
        padding: 6px 10px;
        min-width: auto;
    }
    
    .ecm-confirmation-title {
        font-size: 2.2em;
        font-weight: bold;
    }
    
    .ecm-confirmation-details {
        padding: 20px;
        font-size: 1.1em;
    }
    
    .ecm-detail-row {
        font-size: 1.1em;
        font-weight: 600;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    #ecm-custom-amount-checkbox {
        width: 24px !important;
        height: 24px !important;
    }
    
    label[for="ecm-custom-amount-checkbox"] span {
        font-size: 1.05em !important;
    }
}

/* ============================================= */
/* Responsive Design - Petits mobiles            */
/* ============================================= */
@media (max-width: 480px) {
    .ecm-payment-container {
        padding: 5px;
    }
    
    .ecm-header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .ecm-logo {
        font-size: 2.2em;
    }
    
    .ecm-subtitle {
        font-size: 1.1em;
    }
    
    .ecm-form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .ecm-section-title {
        font-size: 1.6em;
    }
    
    .ecm-intervention-option {
        padding: 15px;
    }
    
    .ecm-intervention-title {
        font-size: 1.1em;
    }
    
    .ecm-intervention-desc {
        font-size: 0.95em;
    }
    
    .ecm-intervention-price {
        font-size: 1.2em;
    }
    
    .ecm-payment-button {
        padding: 18px;
        font-size: 1.2em;
        min-height: 55px;
    }
}
