/* Mesure Afrique - Estimation Rapide Styles */

.mesure-estimation-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    border: 1px solid #f3f4f6;
}

.mesure-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mesure-form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.mesure-form-header p {
    color: #6b7280;
    font-size: 1rem;
}

.mesure-form-group {
    margin-bottom: 1.5rem;
}

.mesure-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.mesure-form-group select,
.mesure-form-group input[type="number"] {
    width: 100%;
    padding: 0.5rem 1rem;
    height: 52px !important;
    min-height: 52px;
    line-height: 1.5;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mesure-form-group select:focus,
.mesure-form-group input[type="number"]:focus {
    outline: none;
    border-color: #ef4444; /* Red accent */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: #ffffff;
}

.mesure-parametres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mesure-agreement-group {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background-color: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

/* Custom Checkbox */
.mesure-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    color: #374151;
    line-height: 1.4;
}

.mesure-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mesure-checkbox-container:hover input ~ .checkmark {
    background-color: #f3f4f6;
}

.mesure-checkbox-container input:checked ~ .checkmark {
    background-color: #ef4444;
    border-color: #ef4444;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.mesure-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.mesure-checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mesure-form-actions {
    display: flex;
    justify-content: center;
}

.mesure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.mesure-btn-primary {
    background-color: #ef4444; /* Brand Red */
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.mesure-btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -2px rgba(239, 68, 68, 0.4);
}

.mesure-btn-secondary {
    background-color: #111827; /* Dark slate */
    color: #ffffff;
}

.mesure-btn-secondary:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
}

.mesure-btn-outline {
    background-color: transparent;
    color: #111827;
    border: 2px solid #e5e7eb;
}

.mesure-btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* Result Box */
.mesure-result-box {
    animation: fadeIn 0.5s ease-out;
}

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

.mesure-result-box h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

.mesure-result-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.mesure-result-details p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
}

.mesure-result-details strong {
    color: #475569;
}

.mesure-result-highlight {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.mesure-result-highlight h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.mesure-volume-value {
    font-size: 3rem;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mesure-volume-value span {
    font-size: 4rem;
    color: #ffffff;
}

.mesure-materials-box {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.mesure-materials-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #be185d;
    font-size: 1.1rem;
}

.mesure-materials-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.mesure-materials-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #f9a8d4;
    display: flex;
    justify-content: space-between;
    color: #831843;
}

.mesure-materials-list li:last-child {
    border-bottom: none;
}

.mesure-materials-note {
    font-size: 0.85rem;
    color: #9d174d;
    margin-bottom: 0;
    font-style: italic;
}

/* Qty Frais highlight variant */
.mesure-result-highlight-frais {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 100%);
    box-shadow: 0 10px 25px rgba(12, 74, 110, 0.2);
}

/* Normes Reference Box */
.mesure-normes-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.mesure-normes-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0369a1;
    font-size: 1.1rem;
}

.mesure-normes-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.mesure-normes-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #7dd3fc;
    color: #0c4a6e;
    font-size: 0.9rem;
}

.mesure-normes-list li:last-child {
    border-bottom: none;
}

.mesure-normes-note {
    font-size: 0.85rem;
    color: #0369a1;
    margin-bottom: 0;
    font-style: italic;
}

.mesure-result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
    .mesure-estimation-container {
        padding: 1.5rem;
    }
    
    .mesure-parametres-grid {
        grid-template-columns: 1fr;
    }
    
    .mesure-result-actions {
        flex-direction: column;
    }
    
    .mesure-btn {
        width: 100%;
    }
    
    .mesure-volume-value {
        font-size: 2rem;
    }
    
    .mesure-volume-value span {
        font-size: 3rem;
    }
}
