.frb-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.frb-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.frb-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: rgba(0,0,0,0.7);
}

.frb-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    border-radius: 0;
    font-size: 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.frb-tab:last-child {
    border-right: none;
}

.frb-tab.active {
    background: rgba(0,0,0,0.8);
}

#frb-form {
    background: rgba(255,255,255,0.95);
    padding: 20px;
}

.frb-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.frb-field {
    margin-bottom: 0;
}

.frb-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

.frb-field input,
.frb-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.frb-submit {
    padding: 12px 30px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
    align-self: end;
}

.frb-submit:hover {
    background: #b71c1c;
}

/* Grid spécifique pour VENDRE (4 champs + bouton) */
.frb-vendre {
    grid-template-columns: repeat(2, 1fr) repeat(2, 120px) auto;
}

/* Grid spécifique pour ACHETER (5 champs + bouton) */
.frb-acheter {
    grid-template-columns: repeat(2, 1fr) repeat(3, 120px) auto;
}

#frb-message {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
}

.success { 
    color: green;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
}

.error { 
    color: red;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .frb-vendre,
    .frb-acheter {
        grid-template-columns: 1fr;
    }
    
    .frb-submit {
        width: 100%;
        margin-top: 10px;
    }
    
    .frb-tab {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .frb-vendre {
        grid-template-columns: repeat(2, 1fr) 120px auto;
    }
    
    .frb-acheter {
        grid-template-columns: repeat(3, 1fr) 120px auto;
    }
}
