/* ============================================================
   EP Devis – Frontend CSS
   ============================================================ */

.ep-quote-btn {
    display: inline-block;
    margin-top: 10px;
    background: #004990 !important;
    color: #fff !important;
    border-color: #004990 !important;
}
.ep-quote-btn:hover {
    background: #003570 !important;
}

/* Form wrapper */
.ep-quote-form-wrap {
    max-width: 680px;
    margin: 30px auto;
}
.ep-form-intro {
    background: #f0f6ff;
    border-left: 4px solid #004990;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

/* Field groups */
.ep-field-group {
    margin-bottom: 18px;
}
.ep-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.ep-field-group input:not([type="checkbox"]):not([type="file"]),
.ep-field-group textarea,
.ep-field-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.ep-field-group input:not([type="checkbox"]):not([type="file"]):focus,
.ep-field-group textarea:focus,
.ep-field-group select:focus {
    border-color: #004990;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,73,144,.1);
}

/* Custom file input */
.ep-file-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ep-file-wrap input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}
.ep-file-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.ep-file-btn:hover { background: #e0e0e0; }
.ep-file-name {
    font-size: 13px;
    color: #666;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.ep-field-group .required { color: #c00; }

.ep-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    cursor: pointer;
    margin-bottom: 0;
}
.ep-checkbox-label input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #aaa !important;
    border-radius: 3px !important;
    background: #fff !important;
    cursor: pointer;
    flex-shrink: 0;
}

/* Footer */
.ep-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.ep-submit-btn {
    background: #004990;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.ep-submit-btn:hover { background: #003570; }
.ep-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

.ep-spinner { color: #666; font-style: italic; }

/* Success / error messages */
.ep-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 20px;
}
.ep-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 14px 18px;
    border-radius: 4px;
}

/* My account quotes table */
.ep-quotes-table {
    width: 100%;
    border-collapse: collapse;
}
.ep-quotes-table th,
.ep-quotes-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
.ep-quotes-table th { font-weight: 600; background: #f5f5f5; }
.ep-quotes-table tr:hover td { background: #fafafa; }

/* Responsive */
@media (max-width: 600px) {
    .ep-quotes-table thead { display: none; }
    .ep-quotes-table tr { display: block; border-bottom: 2px solid #ddd; margin-bottom: 12px; }
    .ep-quotes-table td { display: flex; justify-content: space-between; padding: 8px 12px; }
    .ep-quotes-table td::before {
        content: attr(data-label);
        font-weight: 600;
    }
}
